Pclanglais commited on
Commit
a7a8049
·
verified ·
1 Parent(s): 37737d2

upload README.md

Browse files
Files changed (1) hide show
  1. README.md +57 -57
README.md CHANGED
@@ -10,6 +10,7 @@ task_categories:
10
  tags:
11
  - language-identification
12
  - common-corpus
 
13
  pretty_name: CommonLingua-Train
14
  ---
15
 
@@ -18,70 +19,73 @@ pretty_name: CommonLingua-Train
18
  The training data for [PleIAs/CommonLingua](https://huggingface.co/PleIAs/CommonLingua) — a byte-level language identification model for 334 languages. **2.48 M paragraphs**, sourced exclusively from open-licensed and public-domain corpora.
19
 
20
  | | |
 
 
 
 
 
 
 
21
  ## Files
22
 
23
  | File | Rows | Size | Description |
24
  |---|---:|---:|---|
25
- | `train.parquet` | 2,482,568 | 1.31 GB | Full provenance schema (12 columns) |
26
- | `val.parquet` | ~270 k | 144 MB | Validation split, same schema |
27
- | `train_text_lang.parquet` | 2,482,568 | 1.14 GB | Training-time projection (`text`, `lang`) |
28
- | `val_text_lang.parquet` | ~270 k | 125 MB | Same projection for val |
29
-
30
- The provenance files are the **canonical artefact**. The two-column projections are convenience copies for users who only want to retrain a classifier and don't care about source / license / metadata; they were derived from the provenance files at the moment training launched.
31
 
32
- ## Schema (provenance files)
33
 
34
  | Column | Type | Description |
35
  |---|---|---|
36
- | `text` | string | Paragraph text, raw UTF-8 (truncated to 512 bytes by the trainer) |
37
- | `lang` | string | ISO 639-3 label (the training target) |
38
- | `language_method` | string | How `lang` was assigned: `metadata` / `LLM` / `consensus` / `provenance` / `journal_provenance` / `manual_latex` |
39
- | `source` | string | Top-level source identifier (e.g. `Wikipedia`, `Pralekha`, `VOA_Africa`) |
40
- | `identifier` | string | Item-level identifier within the source (URL / DOI / shelfmark / file id), nullable |
41
- | `title` | string | Item title, nullable |
42
- | `collection` | string | Sub-collection within the source (e.g. `Voice of America`, `Comprehensive Edition of Tocharian Manuscripts`) |
43
- | `license` | string | Per-row license string |
44
- | `open_type` | string | `public_domain`, `cc_by`, `cc_by_sa`, etc. |
45
- | `creator` | string | Author / organisation, nullable |
46
- | `date` | string | Publication / extraction date, nullable |
47
- | `section_name` | string | Sub-section within the document (e.g. Wikipedia article section), nullable |
48
 
49
  ## Source attribution
50
 
 
 
51
  | Source | Rows | License | Notes |
52
  |---|---:|---|---|
53
- | Wikipedia (raw) | 2,093,518 | CC-BY-SA 4.0 | Per-article text, sampled across language editions |
54
- | Wikipedia_Gemini_verified | 93,988 | CC-BY-SA 4.0 | Targeted resample with Gemini per-row verification of contaminated classes |
55
- | Wikipedia_resample_Gemini | 67,731 | CC-BY-SA 4.0 | Class-balanced resample, Gemini-verified |
56
- | Wikipedia_resample | 67,624 | CC-BY-SA 4.0 | Class-balanced resample (consensus method) |
57
- | Pralekha | 27,042 | CC-BY-SA 4.0 | Indic-language paragraphs |
58
- | VOA Africa | 24,341 | Public Domain (US Federal) | Voice of America Africa-language broadcasts |
59
- | Common Corpus 1 v3 adversarial | 17,953 | per-source (CC) | Hand-picked adversarial paragraphs from Common Corpus |
60
- | Cultural Heritage | 16,381 | Public Domain / per-collection | Digitised cultural-heritage archives |
61
- | Perseus PROIEL | 11,638 | CC-BY-SA 4.0 | Classical languages (Latin, Ancient Greek, Old Church Slavonic, Gothic, …) |
62
- | OpenAlex (Malaysian journals) | 10,000 | per-journal (mostly CC-BY) | Indonesian/Malay disambiguation data, journal-name provenance |
63
- | OpenAlex (Indonesian journals) | 10,000 | per-journal (mostly CC-BY) | Companion to the above |
64
- | OpenPecha / Ambuda | 8,317 | Public Domain / CC | Tibetan, Sanskrit |
65
- | Common Corpus 1 Haiku v5 | 7,497 | per-source (CC) | Haiku-validated minority-language paragraphs |
66
- | OpenAlex (African academic) | 6,193 | per-journal | African academic publishing, English-heavy filtered out |
67
- | WaxalNLP ASR | 5,373 | CC-BY-SA 4.0 | West African ASR transcripts |
68
- | eBible (Public Domain) | 4,877 | Public Domain | Bible translations, public-domain editions only |
69
- | OpenAlex English | 2,705 | per-journal | English baseline from academic publishing |
70
- | Project Ben-Yehuda (Hebrew) | 2,701 | Public Domain | Hebrew literature corpus |
71
- | French Research HAL | 1,575 | per-license | French academic abstracts |
72
- | Sefaria Tanakh | 947 | Public Domain | Hebrew religious corpus |
73
- | Krike-Krake (Barat 1977) | 744 | Public Domain | Tachelhit/Berber documentation |
74
- | OpenAlex LaTeX | 500 | n/a | Manually labelled `__NOT_LANGUAGE__` (LaTeX source) |
75
- | US-PD-Newspapers | 348 | Public Domain | Long-tail language samples |
76
- | Common Corpus Adversarial | 243 | per-source | |
77
- | Geste | 202 | Public Domain | Old French |
78
- | English-PD | 108 | Public Domain | |
79
- | German-PD | 8 | Public Domain | |
80
- | French-PD-Newspapers | 6 | Public Domain | |
81
- | French-PD-Books | 6 | Public Domain | |
82
- | Italian-PD | 2 | Public Domain | |
83
-
84
- Our largest source is Wikipedia. The long tail (~7 %) is what makes coverage of low-resource and ancient languages possible.
85
 
86
  ## Reproducing the model
87
 
@@ -94,14 +98,10 @@ val = pq.read_table("val.parquet", columns=["text", "lang"])
94
 
95
  ## License & responsible use
96
 
97
- CommonLingua-Train aggregates 30 sources whose licenses range from **public domain** (most newspaper / heritage / Bible / classical-philology corpora) to **CC-BY-SA 4.0** (Wikipedia and most aggregated corpora). Some OpenAlex rows inherit the journal's per-publication license — most are CC-BY but please consult the `license` and `open_type` columns of each row before redistributing.
98
 
99
  If you redistribute derived versions, please keep the per-row `license`, `creator`, and `identifier` columns intact for downstream attribution.
100
 
101
- ## History
102
-
103
- This dataset is the v7.2.1 iteration. Earlier iterations (v6.3.x) carried collection-level labels at face value, which led to mislabelled African-language data (Wax̌alNLP collections under `kik`/`mas`/`sog`/etc.). The v7 line dropped those classes outright and re-validated the rest with Gemini 2.5 Flash. The current dataset retains only ~5 k rows from the original WaxalNLP collection, after that cleanup.
104
-
105
  ## Citation
106
 
107
  ```bibtex
@@ -111,4 +111,4 @@ This dataset is the v7.2.1 iteration. Earlier iterations (v6.3.x) carried collec
111
  year = {2026},
112
  url = {https://huggingface.co/datasets/PleIAs/CommonLingua-Train}
113
  }
114
- ```
 
10
  tags:
11
  - language-identification
12
  - common-corpus
13
+ - african-languages
14
  pretty_name: CommonLingua-Train
15
  ---
16
 
 
19
  The training data for [PleIAs/CommonLingua](https://huggingface.co/PleIAs/CommonLingua) — a byte-level language identification model for 334 languages. **2.48 M paragraphs**, sourced exclusively from open-licensed and public-domain corpora.
20
 
21
  | | |
22
+ |---|---|
23
+ | **Train rows** | 2,482,568 |
24
+ | **Val rows** | 272,875 |
25
+ | **Languages** | 334 (ISO 639-3) |
26
+ | **Format** | Apache Parquet (zstd-compressed) |
27
+ | **License** | Per-source (see attribution table) |
28
+
29
  ## Files
30
 
31
  | File | Rows | Size | Description |
32
  |---|---:|---:|---|
33
+ | `train.parquet` | 2,482,568 | 1.08 GB | Provenance schema (10 columns) |
34
+ | `val.parquet` | 272,875 | 119 MB | Same schema |
 
 
 
 
35
 
36
+ ## Schema
37
 
38
  | Column | Type | Description |
39
  |---|---|---|
40
+ | `text` | string | Paragraph text, raw UTF-8 (truncated to 512 bytes by the trainer) |
41
+ | `lang` | string | ISO 639-3 label (the training target) |
42
+ | `source` | string | Top-level source name (e.g. `Wikipedia`, `Pralekha`, `OpenAlex`) |
43
+ | `identifier` | string | Item-level identifier (URL / DOI / shelfmark / file id), nullable |
44
+ | `title` | string | Item title, nullable |
45
+ | `collection` | string | Sub-collection within the source, nullable |
46
+ | `license` | string | Per-row license string |
47
+ | `open_type` | string | `public_domain`, `cc_by`, `cc_by_sa`, etc. |
48
+ | `creator` | string | Author / organisation, nullable |
49
+ | `date` | string | Publication / extraction date, nullable |
 
 
50
 
51
  ## Source attribution
52
 
53
+ Wikipedia provides the bulk (≈ 94 %); the long tail is filled by [Common Corpus](https://huggingface.co/datasets/PleIAs/common_corpus) collections and a handful of dedicated minority-language corpora.
54
+
55
  | Source | Rows | License | Notes |
56
  |---|---:|---|---|
57
+ | Wikipedia | 2,323,301 | CC-BY-SA 4.0 | Per-article paragraphs across 300+ language editions |
58
+ | OpenAlex | 29,733 | per-journal | Mostly CC-BY academic content (Indonesian/Malaysian, African, English) |
59
+ | Pralekha | 27,076 | CC-BY-SA 4.0 | Indic-language paragraphs |
60
+ | VOA Africa | 24,341 | Public Domain (US Federal) | Voice of America Africa-language broadcasts |
61
+ | Cultural Heritage | 16,381 | per-collection | Digitised heritage archives (Tocharian, Larth Etruscan, ePSD2/CDLI, Thesaurus Linguae Aegyptiae) |
62
+ | Perseus | 11,638 | CC-BY-SA 4.0 | Classical languages (Latin, Ancient Greek, Old Church Slavonic, Gothic) |
63
+ | OpenPecha | 8,317 | Public Domain / CC | Tibetan and Sanskrit (incl. Ambuda) |
64
+ | WaxalNLP | 5,373 | CC-BY-SA 4.0 | West African ASR transcripts |
65
+ | eBible | 4,877 | Public Domain | Bible translations, public-domain editions only |
66
+ | Chinese-Court-Decisions| 4,474 | Public Domain | Chinese court rulings |
67
+ | StackExchange | 3,312 | CC-BY-SA 4.0 | Q&A across StackExchange sites |
68
+ | Project Ben-Yehuda | 2,701 | Public Domain | Hebrew literature |
69
+ | USPTO | 2,029 | Public Domain | US patent filings |
70
+ | US-PD-Newspapers | 1,834 | Public Domain | US public-domain newspapers |
71
+ | HAL | 1,575 | per-license | French academic abstracts |
72
+ | French-PD-Newspapers | 1,539 | Public Domain | |
73
+ | English-PD | 1,353 | Public Domain | |
74
+ | dotgov | 1,130 | Public Domain | US .gov web text |
75
+ | French-PD-diverse | 1,065 | Public Domain | |
76
+ | Sefaria | 947 | Public Domain | Hebrew religious corpus |
77
+ | Court Listener | 931 | Public Domain | US court filings |
78
+ | Krike-Krake | 744 | Public Domain | Tachelhit / Berber documentation |
79
+ | Deutsches Zeitungsportal | 615 | Public Domain | German newspaper archive |
80
+ | govinfo | 572 | Public Domain | US Government publications |
81
+ | Creative Commons Common Crawl (CCC) | 561 | per-license CC | |
82
+ | enevaeldens_nyheder | 496 | Public Domain | Danish historical news |
83
+ | German-PD | 485 | Public Domain | |
84
+ | French-PD-Books | 368 | Public Domain | |
85
+ | French Open Data | 339 | per-license | |
86
+ | Spanish-Science-Pile | 323 | per-journal | |
87
+
88
+ The remaining ~90 sources cover the long tail of [Common Corpus](https://huggingface.co/datasets/PleIAs/common_corpus) collections (Italian-PD, Latin-PD, Spanish-PD-*, Open Korean Historical Corpus, Wikisource, UN-Digital-Library, …) and account for ~3,000 rows total. Per-row licensing is preserved in the `license` and `open_type` columns of the parquet itself.
89
 
90
  ## Reproducing the model
91
 
 
98
 
99
  ## License & responsible use
100
 
101
+ CommonLingua-Train aggregates open-licensed and public-domain corpora. Most sources are either CC-BY-SA 4.0 (Wikipedia, Pralekha, Perseus, WaxalNLP, StackExchange) or public domain (newspapers, patents, government publications, religious texts, classical philology). Some OpenAlex rows inherit the journal's per-publication license — most are CC-BY.
102
 
103
  If you redistribute derived versions, please keep the per-row `license`, `creator`, and `identifier` columns intact for downstream attribution.
104
 
 
 
 
 
105
  ## Citation
106
 
107
  ```bibtex
 
111
  year = {2026},
112
  url = {https://huggingface.co/datasets/PleIAs/CommonLingua-Train}
113
  }
114
+ ```