nltk / nltk_book

NLTK Book
http://www.nltk.org/book
403 stars 143 forks source link

Fixed tags for the graphical condordance #252

Open MrSampson opened 2 years ago

MrSampson commented 2 years ago

The tags for the graphical concordance example were incorrect.

tomaarsen commented 2 years ago

I believe this is a proper change. I can't find any situation where e.g. N N N N finds a result, but NOUN NOUN NOUN NOUN has many results in many corpora. Likewise with the 2 other changes. I can't officially review this, but I'd approve this if I could.

This can easily be verified with

>>> import nltk
>>> nltk.app.concordance()

and then filling in e.g. N N N N and NOUN NOUN NOUN NOUN.

Paging @stevenbird