X hits on this document

Powerpoint document

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

135 views

0 shares

0 downloads

0 comments

39 / 47

Example (continued)

# How does initial letter affect word length?      for token in tokens:                                     outcome = len(token.type())

  ...            condition = token.type()[0].lower()            ...           cfdist[condition].inc(outcome)

What are the condition and the outcome?

Document info
Document views135
Page views135
Page last viewedFri Dec 09 14:32:49 UTC 2016
Pages47
Paragraphs392
Words1978

Comments