I ran the code
import nltk
from nltk.stem import PorterStemmer
from nltk.tokenize import word_tokenize
nltk.download('punkt')
If I run my code, I see the following:
File “sklearn/utils/murmurhash.pyx”, line 1, in init sklearn.utils.murmurhash
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
I tried to create a new environment. I think there’s a problem with compatibility between versions. Right now, I have numpy 1.22, scipy 1.8, and scikit-learn 1.0.2.
New contributor
Heidi Tam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.