skip to navigation
skip to content

Not Logged In

wikiwords 0.5

Word frequencies in 2012 English Wikipedia

This Python module can be used to quickly retrieve absolute word frequency for English language, as used in Wikipedia articles as of year 2012.

Author: Paweł Foremski <pjf@iitis.pl>, IITiS PAN http://www.iitis.pl

Usage

>>> import wikiwords
>>> wikiwords.freq("monty")
6.348454761413523e-06
>>> wikiwords.occ("python")
18972
>>> wikiwords.freq("no such word", lambda x: 1./len(x))
0.08333333333333333

Installation

$ sudo pip install wikiwords
 
File Type Py Version Uploaded on Size
wikiwords-0.5.tar.gz (md5) Source 2012-11-26 2MB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 26 downloads in the last week
  • 151 downloads in the last month