How to print 2-ngrams in LimeTextExplainer

I try to explain the importance of a sentence using the following pipeline with LimeTextExplainer from LIME package.

Pipeline(steps=[('vect', CountVectorizer()),
                ('tfidf', TfidfTransformer()),
                ('clf', LogisticRegression())])

When I try to explain a sentence using the code below, the importance of the single words is shown, while I want pairs

explainer.explain_instance(text, cls.predict_proba, num_features=7)
exp.show_in_notebook(text=False)

Is it possible to display the importance of pairs of words?

Topic lime nlp python

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.