This dataset is a VocabRadar project — the vocabulary radar. The VocabRadar browser extension marks up the words you do not know yet while you watch videos or browse the web: definitions in place, translation, bilingual subtitles and annotated subtitles. Whatever you watched can go on to vocabradar.com, which turns it into related exercises and games so the words actually stick.
Three-tier multi-language word-frequency lists in wordfreq cBpack band format, built independently (no merging) from three sources:
Data is not included in this repository. Build outputs live in data_small/ data_middle/ data_large/ (gitignored); the release package lives in ../hf-upload/VocabFreq and is published as the HF dataset vocabradar/VocabFreq.
这项工作是 VocabRadar(词汇雷达)的工作:VocabRadar 浏览器扩展 让你在看视频、刷网页时把还不认识的生词就地标注出来 —— 释义、翻译、双语字幕、注释字幕; 看过的内容还能送到 vocabradar.com,自动生成相关习题与游戏,把词真正记住。
三档词频表,三个来源各自成表、互不合并:小档 HF 清洗版 vocabradar/wordfreq(43 语)、 中档 omarkamali/wikipedia-monthly 维基百科 top100k(347 语,剔除 simple)、大档 Unicode UniLex(1000 语)。 数据不纳入本仓库——构建产物在 data_small/ data_middle/ data_large/ (已 gitignore);发布包在 ../hf-upload/VocabFreq,已推送为 HF 数据集 vocabradar/VocabFreq。
The runtime package (import vocabfreq, distribution name vocabfreq) only needs msgpack. The data is not shipped with the package: on first use it is downloaded from the HF dataset vocabradar/VocabFreq — default mirror https://hf-mirror.com (override with HF_ENDPOINT; on failure it falls back to https://huggingface.co automatically), cached in ~/.vocabfreq (override with VOCABFREQ_DATA or set_data_dir). load(lang) fetches just that language (all tiers that have it); vocabfreq.download() prefetches everything. Every file is byte-size and SHA-256 verified against the dataset's files.json, so downloads are resumable and repeatable.
pip install vocabfreq # or: pip install -e . from the repo >>> import vocabfreq >>> vocabfreq.word_frequency('的', 'zh') # auto-tier: small → middle → large 0.0617 >>> vocabfreq.top_n_list('en', 3) ['the', 'to', 'and'] >>> wf = vocabfreq.load('fr') # default small tier (43 langs) >>> wf = vocabfreq.load('aai', wordlist='large') # UniLex tier (1000 langs) >>> wf.slice(100, 200) # band slicing: cb in [100, 200) -> (word, freq) >>> wf.words(0, 100) # words only, freq >= 1e-1 >>> wf.frequency('le'); len(wf); wf[120:130] Command line (after install, or python -m vocabfreq):
vocabfreq # download all languages (three tiers) vocabfreq en zh de # download selected languages (all tiers that have them) vocabfreq --endpoint https://huggingface.co API: download(langs=None, data_dir=None, endpoint=None), word_frequency(word, lang), top_n_list(lang, n), iter_wordlist(lang), get_frequency_dict(lang, min_cb, max_cb), slice_words(lang, min_cb, max_cb), available_languages(tier='small'), load(lang, wordlist='small') -> BandList (.slice / .words / .top_n / .frequency / bands[i:j]).
scripts/build_datas.py # three sources → per-language TSV (word \t coverage) in data_ / scripts/publish_datas.py # TSV → cBpack msgpack.gz release in ../hf-upload/VocabFreq (+ README / meta.json / files.json) Legacy FineWeb2-tokenize pipeline kept under scripts/ (tokenize_one.py, build_wordfreq.py, publish_data.py) and scripts/dev/ (one-off audit scripts with hardcoded local paths).
scripts/ build_datas.py + publish_datas.py (current pipeline); legacy scripts scripts/dev/ one-off audit / threshold-sweep scripts (hardcoded local paths) vocabfreq/ runtime package (pip installable: `import vocabfreq`) tests/ package smoke tests docs/ plan.md (design), resource.md (source inventory) data_small/ built TSVs, small tier (gitignored) data_middle/ built TSVs, middle tier (gitignored) data_large/ built TSVs, large tier (gitignored) reports/ build reports (stats.json, per-tier CSVs) Data format Each file data_ / _ .msgpack.gz is a wordfreq cBpack: a gzipped MessagePack array [header, band_0, …, band_600], where band b holds the words whose coverage rounds to 10^(−b/100) (centibel b) and the header is {"format": "cB", "version": 1}. Files are readable with wordfreq.read_cBpack. Only words with coverage ≥ 1e-6 (cB ≤ 600) are kept, so each list has 601 bands. Cleaning rules (unparsable / invalid / duplicate / below_threshold) and per-language stats are in the dataset meta.json; every file is listed with size + SHA-256 in files.json.
Code links point to the msgpack.gz file on HF (https://huggingface.co/datasets/vocabradar/VocabFreq).
data_small/small_ .msgpack.gz: wordfreq cBpack (coverage = 10^(-cB/100), kept if >= 1e-6 i.e. cB <= 600). Sorted by cumulative coverage; float is the top word's coverage.
data_middle/middle_ .msgpack.gz: wordfreq cBpack (coverage = 10^(-cB/100), kept if >= 1e-6 i.e. cB <= 600). Sorted by cumulative coverage; float is the top word's coverage.
data_large/large_ .msgpack.gz: wordfreq cBpack (coverage = 10^(-cB/100), kept if >= 1e-6 i.e. cB <= 600). Sorted by cumulative coverage; float is the top word's coverage.
Code: MIT (see LICENSE). Dataset licenses differ per tier: wordfreq small — MIT; Wikipedia middle — CC BY-SA 3.0 / GFDL; UniLex large — Unicode DFS-2016. See the HF dataset card for details.
word frequency wordlist nlp vocabulary msgpack
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.
Nov 22, 2026 2 release files No provenance




