July 2018
Beginner to intermediate
406 pages
9h 55m
English
NLTK is a simple pip install nltk away.
To check whether your installation was successful, open a Python interpreter and type:
>>> import nltk
NLTK comes with different stemmers. This is necessary, because every language has a different set of rules for stemming. For English, we can take SnowballStemmer:
>>> import nltk.stem
>>> s = nltk.stem.SnowballStemmer('english')
>>> s.stem("graphics")
'graphic'
>>> s.stem("imaging")
'imag'
>>> s.stem("image")
'imag'Read now
Unlock full access