I've been trying to follow an NLP notebook, and they use:
from sklearn.feature_extraction import stop_words
However, this is throwing the following error:
ImportError: cannot import name 'stop_words' from 'sklearn.feature_extraction'
My guess is that stop_words is not (or maybe no longer) part of the 'feature_extraction' part of sklearn, but I might be wrong. I have seen some articles that used sklearn.feature_extraction.stop_words, but at the same time I see places which have used 'text' in place of 'feature_extraction'.
Am I misunderstanding something? sklearn is definitely up to date (version 0.24) and I import something from sklearn.manifold earlier in the notebook.
Thanks for your help!