interpret-text icon indicating copy to clipboard operation
interpret-text copied to clipboard

Issue with text_classification_classical_text_explainer.ipynb

Open fatosismali opened this issue 2 years ago • 3 comments

When executing the following cell: classifier, best_params = explainer.fit(X_train, y_train)

It results with the following error: ValueError: empty vocabulary; perhaps the documents only contain stop words

Using the same data set as in the example notebook - haven't changed anything in the code.

fatosismali avatar Nov 24 '21 11:11 fatosismali

I had a similar issue, using an older version of spacy (2.3.7) package on pypi fixed it, looks like the tokenizer code needs to be updated to latest spacy

imatiach-msft avatar Feb 02 '22 14:02 imatiach-msft

see related issue: https://github.com/interpretml/interpret-text/issues/176

imatiach-msft avatar Feb 02 '22 14:02 imatiach-msft

Hi... Is the issue solved? Am facing the same error ValueError: empty vocabulary; perhaps the documents only contain stop words. When trying to use explainer.fit(text_train, y_train_encoded) for classification.

Kushalamummigatti avatar Nov 29 '22 11:11 Kushalamummigatti