nltk.test package¶
Subpackages¶
- nltk.test.unit package
- Subpackages
- nltk.test.unit.lm package
- nltk.test.unit.translate package
- Submodules
- nltk.test.unit.translate.test_bleu module
- nltk.test.unit.translate.test_gdfa module
- nltk.test.unit.translate.test_ibm1 module
- nltk.test.unit.translate.test_ibm2 module
- nltk.test.unit.translate.test_ibm3 module
- nltk.test.unit.translate.test_ibm4 module
- nltk.test.unit.translate.test_ibm5 module
- nltk.test.unit.translate.test_ibm_model module
- nltk.test.unit.translate.test_nist module
- nltk.test.unit.translate.test_stack_decoder module
- Module contents
- Submodules
- nltk.test.unit.test_2x_compat module
- nltk.test.unit.test_aline module
- nltk.test.unit.test_brill module
- nltk.test.unit.test_chunk module
- nltk.test.unit.test_classify module
- nltk.test.unit.test_collocations module
- nltk.test.unit.test_concordance module
- nltk.test.unit.test_corenlp module
- nltk.test.unit.test_corpora module
- nltk.test.unit.test_corpus_views module
- nltk.test.unit.test_data module
- nltk.test.unit.test_disagreement module
- nltk.test.unit.test_hmm module
- nltk.test.unit.test_json2csv_corpus module
- nltk.test.unit.test_naivebayes module
- nltk.test.unit.test_pos_tag module
- nltk.test.unit.test_rte_classify module
- nltk.test.unit.test_seekable_unicode_stream_reader module
- nltk.test.unit.test_senna module
- nltk.test.unit.test_stem module
- nltk.test.unit.test_tag module
- nltk.test.unit.test_tgrep module
- nltk.test.unit.test_tokenize module
- nltk.test.unit.test_twitter_auth module
- nltk.test.unit.test_wordnet module
- nltk.test.unit.utils module
- Module contents
- 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.corpus_fixt module¶
nltk.test.doctest_nose_plugin module¶
-
class
nltk.test.doctest_nose_plugin.
DoctestFix
[source]¶ Bases:
nltk.test.doctest_nose_plugin.DoctestPluginHelper
,nose.plugins.doctests.Doctest
-
class
nltk.test.doctest_nose_plugin.
DoctestPluginHelper
[source]¶ Bases:
object
This mixin adds print_function future import to all test cases.
- It also adds support for:
‘#doctest +ALLOW_UNICODE’ option that makes DocTestCase think u’foo’ == ‘foo’.
‘#doctest doctestencoding=utf-8’ option that changes the encoding of doctest files
-
OPTION_BY_NAME
= ('doctestencoding',)¶
nltk.test.gluesemantics_malt_fixt module¶
nltk.test.runtests module¶
nltk.test.translate_fixt module¶
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