Join GitHub today
CHUNK_TAG_PATTERN does not allow curly bracket quantifiers for tags #1597
Running the supplementary example from http://www.nltk.org/book/ch07.html#exploring-text-corpora ("your turn" section)
yields a ValueError:
This is because nltk.chunk.CHUNK_TAG_PATTERN does not permit curly brackets. Simple workaround is setting:
which might be a viable fix as well.