X hits on this document

Powerpoint document

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

164 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 views164
Page views164
Page last viewedThu Jan 19 11:50:41 UTC 2017
Pages47
Paragraphs392
Words1978

Comments