nltk.test.unit.test_chunk module

class nltk.test.unit.test_chunk.TestChunkRule[source]

Bases: unittest.case.TestCase

test_tag_pattern2re_pattern_quantifier()[source]

Test for bug https://github.com/nltk/nltk/issues/1597

Ensures that curly bracket quantifiers can be used inside a chunk rule. This type of quantifier has been used for the supplementary example in https://www.nltk.org/book/ch07.html#exploring-text-corpora.