X hits on this document

Powerpoint document

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

110 views

0 shares

0 downloads

0 comments

29 / 47

Frequency Distributions

A frequency distribution records the number of times each outcome of an experiment has occurred

>>> freq_dist = FreqDist()                     for token in document:                        freq_dist.inc(token.type())

Constructor, then initialization by storing experimental outcomes

Document info
Document views110
Page views110
Page last viewedSat Dec 03 17:51:41 UTC 2016
Pages47
Paragraphs392
Words1978

Comments