X hits on this document

Powerpoint document

Python for NLP and the Natural Language Toolkit - page 34 / 47

189 views

0 shares

0 downloads

0 comments

34 / 47

Complex Word Length Example

# define vowels as "a", "e", "i", "o", and "u"   >>> VOWELS = ('a', 'e', 'i', 'o', 'u')                   freq_dist = FreqDist()                              >>> for token in tokens:                                 if token.type()[-1].lower() in VOWELS:                ... freq_dist.inc(len(token.type()))

What is the condition?                            

Document info
Document views189
Page views189
Page last viewedMon Jan 23 21:12:29 UTC 2017
Pages47
Paragraphs392
Words1978

Comments