Entries from 2013-05-04 to 1 day

Vocabulary resources 2

Continuing O'Reilly's textbook chapter 2.4.2: >>> entries = nltk.corpus.cmudict.entries() >>> len(entries) 133737 >>> for entry in entries[39943:39951]: ... print entry ... ('explorer', ['IH0', 'K', 'S', 'P', 'L', 'AO1', 'R', 'ER0']) ('exp…

Vocabulary resources

Continuing O'Reilly's textbook chapter 2.4.1:Created this code then save under the name unusual_words.py. def unusual_words(text): import nltk from nltk.corpus import words text_vocab = set(w.lower() for w in text if w.isalpha()) english_v…