Sunday 6 September 2015

Know your python-nltk

NLTK - Natural Language Toolkit it is a platform to create python programs that process our natural language. NLTK is free, opensource and it is available for Windows, Mac OS X, and Linux.

Install python-nltk :
$sudo apt-get install python-nltk

To know where does you installed :
$python >>>
import nltk >>>
nltk.__path__

To know where does the NLTK data located:
>>>nltk.data.path

To know the version of NLTK you are running:
$python
>>>nltk.__version__

OR
$python -c 'import nltk; print(nltk.__version__)'
OR
$pip freeze | grep nltk

No comments:

Post a Comment