Skip to main content

Frequency of words in the English 2012 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

Metadata

Release files for wikiwords 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wikiwords 0.5
File Size Uploaded Provenance Actions
wikiwords-0.5.tar.gz 2.2 MB Without provenance Details for wikiwords-0.5.tar.gz

Release files / wikiwords-0.5.tar.gz

Download URL wikiwords-0.5.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
b7f62511b9800927a9a4ad68d2dc3851ebe9dac0a3d32bf06bd2b64a50175d8e
BLAKE2b-256 checksum
How to use checksums
5b118656fe13dddd394c3fff4bbfce72593914e7a50ba2451fc18e6279c11317
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for wikiwords 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page