Learning about Natural Language Tool Kit (NLTK) from tests by David Arroyo Menéndez'


Keywords
nltk, dame, natural, language, tests, development
License
Other
Install
pip install damenltk==0.1.6.post6

Documentation

Table of Contents

Learning about Natural Language Tool Kit (NLTK) from tests

A first version can be found in: https://github.com/Lingwars/GAPLEN

Thanks to GAPLEN by the shared time.

Learning NLTK from Tests by David Arroyo Menéndez

Check Test

  • Execute all tests:

    $ nosetests3 tests

  • Execute one file:

    $ nosetests3 tests/test_basics.py

  • Execute one test:

    nosetests3 test/test_syn.py:TddInPythonExample.test_syn_returns_correct_result

Pypi

  • To install from local:

$ pip install -e .

  • To install create tar.gz in dist directory:

$ python3 setup.py register sdist

  • To upload to pypi:

$ twine upload dist/damenltk-0.1.tar.gz

  • You can install from Internet in a python virtual environment to check:

$ python3 -m venv /tmp/dn $ cd /tmp/dn $ source bin/activate $ pip3 install damenltk