Python, Stemmer Not Found
Solution 1:
Most probably it is nltk , you can install it using :
pip install nltk
change import stemmer
to import nltk.stem as stemmer
And run the code. Please do take note this code is in Python 2.7 and will not run if u have Python3
Solution 2:
Stemmer is a package that can be installed through pip as PyStemmer. It's only used in a very-rough "is real word" filter.
pip install PyStemmer
There might be a few other issues with this build right now.
Solution 3:
Use:
pip install stemmer
in command prompt, if that is not working please follow as below.
First, manually download the text mining package from: https://pypi.python.org/pypi/textmining/1.0
Unzip it (unzip textmining-1.0.zip) you will get a folder with name textmining-1.0
type
conda info
in anconda prompt then see this directory active env location : C:\ProgramData\Anaconda3Copy and paste unzipped textmining-1.0 folder in this directory
Convert the folder to python 3: to do this copy below code paste it in anaconda prompt and run
2to3 --output-dir=textmining-1.0_v3 -W -n textmining-1.0
After converting the folder to python 3 RENAME the textmining-1.0 to textmining-1.0_v3
Finally install the same by typing below code in anaconda prompt
cd textmining-1.0_v3
as below
C:\Users\user>cd textmining-1.0_v3
type this code python setup.py install as below
C:\Users\user \textmining-1.0_v3>python setup.py install
Now succesfully you will get rid off error
Post a Comment for "Python, Stemmer Not Found"