--- language: - en - zh - ja - ko - fr - de - es - it - pt - nl - ru - uk - pl - ar - fa - ur - hi - bn - th - vi - id - tl - sw - tr license: other license_name: public-domain-with-attribution license_link: https://huggingface.co/datasets/Diplaysbook/Mini-llm-base/blob/main/LICENSE-NOTES.md task_categories: - text-generation tags: - pretraining - public-domain - historical - textbooks - multilingual size_categories: - 1M.jsonl` — **24 languages, 1,108,218 word forms** (~50k per language): ```json {"word": "good", "rank": 118, "count": 1234567, "per_million": 6421.3} ``` Two merged frequency sources: OpenSubtitles 2018 via `hermitdave/FrequencyWords` (CC BY-SA 4.0, weight 0.6) and Leipzig Corpora Collection news 2020 (CC BY 4.0, weight 0.4). Cleaned for script, punctuation, digits, duplicates; Japanese >=2 characters, Thai >=3 characters. ### `concepts` `data/lexicon/concepts.jsonl` — **110,148 concepts x 24 languages**. Concept IDs are Princeton WordNet synset offsets, so the same ID is the same concept in every language; synonyms are joined by `;`. Each row carries a `sources` object: ```json {"concept": "02139199-n", "langs": 4, "en": "bat;chiropteran", "ru": "летучая мышь", "uk": "кажан", "ja": "コウモリ;蝙蝠", "sources": {"en": "wordnet", "ru": "wordnet", "uk": "wordnet", "ja": "wordnet"}} ``` `sources` values: | value | languages | nature | |---|---|---| | `wordnet` | en es fr id it ja nl pl pt th zh ru uk fa | sense-level alignment (WordNet synsets / ILI) | | `wiktionary` | ko hi bn ur tr vi tl sw | word-level translations from English Wiktionary | | `mixed` | de ar | WordNet lemmas + Wiktionary translations | Per-language row counts are in `metadata/concept_sources.tsv`. ### `dictionary` `data/lexicon/dictionary.jsonl` — the curated **912-concept x 24-language** dictionary (21,888 rows), each entry with a definition written in the target language itself: ```json {"concept_id": "001", "headword": "好", "lang": "en", "word": "good", "reading": "", "definition": "adjective: of high quality or satisfactory. Example: This book is good."} ``` ## Lexicon issues 1. Wordlists come from subtitles and news: spoken-language bias, names and interjections are over-represented. They are **not** official national word lists. 2. The 8 `wiktionary` languages are word-level translations, not sense-aligned — expect some wrong-sense words; use only `wordnet` rows for strict evaluation. 3. No POS, IPA or inflection tables in `wordlists` / `concepts`. 4. Urdu (21k), Hindi (29k), Tagalog (33k) and Swahili (29k) are below the 50k cap because both sources are shorter for them. ## Loading ```python from datasets import load_dataset # corpus ds = load_dataset("Diplaysbook/Mini-llm-base", "academic", split="train", streaming=True) for row in ds.take(3): print(row["lang"], row["discipline"], row["text"][:120]) # lexicon wl = load_dataset("Diplaysbook/Mini-llm-base", "wordlists", split="train", streaming=True) cs = load_dataset("Diplaysbook/Mini-llm-base", "concepts", split="train", streaming=True) dd = load_dataset("Diplaysbook/Mini-llm-base", "dictionary", split="train", streaming=True) ``` ## Licence **Corpus:** source texts are public domain (published ≤1928 in the US / copyright expired in Japan). Wikisource transcriptions are CC BY-SA 4.0 — attribution to Wikisource is required when redistributing those parts. See `LICENSE-NOTES.md`. **Lexicon:** wordlists are CC BY-SA 4.0 (FrequencyWords) and CC BY 4.0 (Leipzig); concepts come from OMW / WordNet projects under their respective CC BY / CC BY-SA licences plus Wiktionary translations (CC BY-SA); the curated 912-concept dictionary is original work of this project. See `LICENSE-NOTES-LEXICON.md`. ## Citation ```bibtex @misc{pd_multilingual_corpus, title = {Public-Domain Multilingual Base Corpus (1850–1928)}, year = {2025}, note = {Assembled from Project Gutenberg, Internet Archive, Wikisource and NDL} } ```