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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wikiwords-0.5.tar.gz
(2.2 MB
view details)
File details
Details for the file wikiwords-0.5.tar.gz.
File metadata
- Download URL: wikiwords-0.5.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7f62511b9800927a9a4ad68d2dc3851ebe9dac0a3d32bf06bd2b64a50175d8e
|
|
| MD5 |
586ac1bb19045f3681f6986998294059
|
|
| BLAKE2b-256 |
5b118656fe13dddd394c3fff4bbfce72593914e7a50ba2451fc18e6279c11317
|