It's time to understand how processor reading works by looking at the source code in nltk.corpus and then looking at the enclosures (located in / home / [user] / nltk_data / corpora / names - this will probably be in "My Documents for XP" and somewhere in User for Win7 users).
The structure of the enclosure and its associated function will give a good idea of โโhow to use the various enclosures available in NLTK.
In my case, I looked at the name variable in the nltk.corpus source code and was interested in the WordListCorpusReader function, since the name corpus is just a list of words.
source share