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)