nltk.test.unit.test_concordance module

nltk.test.unit.test_concordance.stdout_redirect(where)[source]
class nltk.test.unit.test_concordance.TestConcordance[source]

Bases: unittest.case.TestCase

Text constructed using: https://www.nltk.org/book/ch01.html

classmethod setUpClass()[source]
classmethod tearDownClass()[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_concordance_list()[source]
test_concordance_width()[source]
test_concordance_lines()[source]
test_concordance_print()[source]