nltk.test package

Subpackages

Submodules

nltk.test.all module

Test suite that runs all NLTK tests.

This module, nltk.test.all, is named as the NLTK test_suite in the project’s setup-eggs.py file. Here, we create a test suite that runs all of our doctests, and return it for processing by the setuptools test harness.

nltk.test.all.additional_tests()[source]

nltk.test.childes_fixt module

nltk.test.childes_fixt.setup_module(module)[source]

nltk.test.classify_fixt module

nltk.test.classify_fixt.setup_module(module)[source]

nltk.test.corpus_fixt module

nltk.test.discourse_fixt module

nltk.test.discourse_fixt.setup_module(module)[source]

nltk.test.gensim_fixt module

nltk.test.gensim_fixt.setup_module(module)[source]

nltk.test.gluesemantics_malt_fixt module

nltk.test.gluesemantics_malt_fixt.setup_module(module)[source]

nltk.test.inference_fixt module

nltk.test.inference_fixt.setup_module(module)[source]

nltk.test.nonmonotonic_fixt module

nltk.test.nonmonotonic_fixt.setup_module(module)[source]

nltk.test.portuguese_en_fixt module

nltk.test.portuguese_en_fixt.setup_module(module)[source]

nltk.test.probability_fixt module

nltk.test.probability_fixt.setup_module(module)[source]

nltk.test.runtests module

nltk.test.segmentation_fixt module

nltk.test.segmentation_fixt.setup_module(module)[source]

nltk.test.semantics_fixt module

nltk.test.semantics_fixt.setup_module(module)[source]

nltk.test.translate_fixt module

nltk.test.wordnet_fixt module

nltk.test.wordnet_fixt.teardown_module(module=None)[source]

Module contents

Unit tests for the NLTK modules. These tests are intended to ensure that source code changes don’t accidentally introduce bugs. For instructions, please see:

../../web/dev/local_testing.rst

https://github.com/nltk/nltk/blob/develop/web/dev/local_testing.rst