Skip to main content

Word frequencies in 2012 English Wikipedia

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.5

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)

Uploaded Source

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

Hashes for wikiwords-0.5.tar.gz
Algorithm Hash digest
SHA256 b7f62511b9800927a9a4ad68d2dc3851ebe9dac0a3d32bf06bd2b64a50175d8e
MD5 586ac1bb19045f3681f6986998294059
BLAKE2b-256 5b118656fe13dddd394c3fff4bbfce72593914e7a50ba2451fc18e6279c11317

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page