X hits on this document

Powerpoint document

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

114 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 views114
Page views114
Page last viewedMon Dec 05 07:04:50 UTC 2016
Pages47
Paragraphs392
Words1978

Comments