nltk.test.unit.lm.test_vocabulary module

class nltk.test.unit.lm.test_vocabulary.NgramModelVocabularyTests[source]

Bases: TestCase

tests Vocabulary Class

classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

test_truthiness()[source]
test_cutoff_value_set_correctly()[source]
test_unable_to_change_cutoff()[source]
test_cutoff_setter_checks_value()[source]
test_counts_set_correctly()[source]
test_membership_check_respects_cutoff()[source]
test_vocab_len_respects_cutoff()[source]
test_vocab_iter_respects_cutoff()[source]
test_update_empty_vocab()[source]
test_lookup()[source]
test_lookup_iterables()[source]
test_lookup_empty_iterables()[source]
test_lookup_recursive()[source]
test_lookup_None()[source]
test_lookup_int()[source]
test_lookup_empty_str()[source]
test_eqality()[source]
test_str()[source]
test_creation_with_counter()[source]
test_len_is_constant()[source]