failed09 commited on
Commit
c8b7cca
·
verified ·
1 Parent(s): 60a7e87

docs: format Method pipeline as tree

Browse files
Files changed (1) hide show
  1. README.md +174 -176
README.md CHANGED
@@ -1,176 +1,174 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- language:
4
- - ba
5
- - ru
6
- pretty_name: Bashkir-Russian Wikipedia Parallel Corpus
7
- task_categories:
8
- - translation
9
- configs:
10
- - config_name: filtered
11
- default: true
12
- data_files:
13
- - split: train
14
- path: filtered/data.parquet
15
- - config_name: cleaned
16
- data_files:
17
- - split: train
18
- path: cleaned/data.parquet
19
- - config_name: scored
20
- data_files:
21
- - split: train
22
- path: scored/data.parquet
23
- - config_name: precleaned
24
- data_files:
25
- - split: train
26
- path: precleaned/data.parquet
27
- tags:
28
- - bashkir
29
- - russian
30
- - wikipedia
31
- - cyrillic
32
- - low-resource
33
- - parallel-corpus
34
- - sentence-level
35
- - bitext-mining
36
- ---
37
-
38
- # Bashkir-Russian Wikipedia Parallel Corpus
39
-
40
- > Sentence-level Bashkir-Russian parallel text from Wikipedia, scored and filtered
41
- > for machine translation.
42
-
43
- ## Overview
44
-
45
- Sentence-level Bashkir-Russian parallel dataset extracted from the corresponding
46
- Bashkir and Russian Wikipedia dumps dated `2026-08-01`. Candidate pairs are scored
47
- for semantic alignment with multilingual sentence encoders (Meta LASER3, Google
48
- LaBSE) and the in-domain Bashkir-Russian Pair Scorer. The `filtered` configuration
49
- is the high-precision subset recommended for machine translation; `cleaned`,
50
- `scored` and `precleaned` are provided for custom filtering experiments.
51
-
52
- | At a glance | |
53
- | --- | --- |
54
- | Task | Parallel corpus / machine translation |
55
- | Default config | `filtered` |
56
- | Fields | `ba_title`, `ru_title`, `section`, `ba`, `ru`, sentence indices and alignment scores |
57
- | Source | Bashkir and Russian Wikipedia dumps `2026-08-01` |
58
- | License | CC BY-SA 4.0 |
59
-
60
- ## Contents
61
-
62
- ### Files and Configurations
63
-
64
- | Config | Pairs | Articles | Description |
65
- | --- | ---: | ---: | --- |
66
- | **`filtered`** (recommended) | 66,498 | 31,574 | High-precision subset by two-voice scoring (LASER3 + LaBSE), annotated with `pair_score` |
67
- | `cleaned` | 68,737 | 33,582 | Base alignment with article-level sentence mapping, Wiki markup and service boilerplate removed |
68
- | `scored` | 68,737 | 33,582 | Identical rows to `cleaned`, retaining LASER margin scores and `pair_score` |
69
- | `precleaned` | 84,512 | 40,705 | Broad extraction with relaxed sentence-length heuristics, for custom filtering |
70
-
71
- Counts, filter rules and score distributions are the source of truth in
72
- [`META.json`](META.json).
73
-
74
- ### Fields and Schema
75
-
76
- - `ba_title`, `ru_title`: article titles in the two Wikipedias.
77
- - `section`: section category (`lead` or `facts`).
78
- - `ba`, `ru`: aligned sentence pair.
79
- - `ba_sentence_index`, `ru_sentence_index`: sentence positions in the source articles.
80
- - `laser_cos`, `laser_margin`, `laser_margin_xling`: LASER3 cosine and margin scores (Artetxe & Schwenk, 2018).
81
- - `labse_cos`, `labse_margin_xling`: LaBSE cosine and cross-lingual margin (present only in `filtered`).
82
- - `pair_score`: semantic compatibility from the [Bashkir-Russian Pair Scorer](https://huggingface.co/failed09/bashkir-pair-scorer) `medium` model, 0.0–1.0.
83
-
84
- ### Examples
85
-
86
- | Bashkir (ba) | Russian (ru) | `pair_score` |
87
- | --- | --- | ---: |
88
- | Тарих — белем өлкәһе, кешелектең үткән замандағы эшмәкәрлеген, торошон, донъяға ҡарашын, ойошоуын һәм социаль бәйләнештәрен өйрәнә торған гуманитар фән. | История — общий термин, описывающий как события прошлого, так и память о прошлом, нахождение, сбор и интерпретацию сведений об этих событиях. | 0.999 |
89
- | Республика (Йөмһүриәт) … — юғары власть органдары билдәле мөҙҙәткә һайланып ҡуйыла торған дәүләт төҙөлөшө. | Республика (от — «общественное дело») — форма государственного правления, при которой высшая власть принадлежит представительным органам, избираемым населением на определённый срок. | 0.589 |
90
- | 1919 йылдың 20 мартында … Башҡорт Совет Республикаһын иғлан ителә. | 20 марта 1919 года … была образована Башкирская Советская Республика (Малая Башкирия) с временной столицей в с. | 0.511 |
91
-
92
- ## Method
93
-
94
- ```text
95
- bawiki-20260801 + ruwiki-20260801 → interlanguage article links → sentence mapping
96
- → markup sanitization → LASER3 / LaBSE / pair-scorer alignment scoring
97
- → two-voice filter → filtered/data.parquet
98
- ```
99
-
100
- - **Extraction:** corresponding Bashkir (`bawiki-20260801`) and Russian (`ruwiki-20260801`) articles linked through interlanguage links.
101
- - **Sentence mapping:** article-level mapping between Bashkir and Russian sentences.
102
- - **Text sanitization:** MediaWiki markup, tables, citation markers and broken punctuation stripped.
103
- - **Multilingual scoring:** pairs scored with LASER3 (`bak_Cyrl.v1` + `laser2`), Google LaBSE and the [Bashkir-Russian Pair Scorer](https://huggingface.co/failed09/bashkir-pair-scorer) `medium`.
104
- - **Filtering:** `filtered` keeps pairs that pass two-voice scoring (drop when `laser_margin_xling < 0.876` and `labse_margin_xling < 0.723`) and adds `pair_score`.
105
-
106
- ## Quality and Use
107
-
108
- Alignment quality is estimated automatically and is not human-verified. At this
109
- scale, encyclopedic texts cover global geography, history and sciences, so some
110
- sentence pairs may be loosely aligned or contain borrowed vocabulary, foreign
111
- names or segmentation artifacts. Review samples before using the dataset in
112
- production or as an evaluation benchmark.
113
-
114
- ### Limitations
115
-
116
- - Alignment scores are model estimates, not human judgments; thresholds were calibrated on this corpus.
117
- - `pair_score` values are not calibrated human probabilities.
118
- - `train` is a distribution convention; no leakage-free evaluation split is provided.
119
- - `precleaned` and `cleaned` are intentionally looser than `filtered`.
120
-
121
- ## Related Resources
122
-
123
- - [Bashkir Wikipedia Monolingual Corpus](https://huggingface.co/datasets/failed09/bashkir-wikipedia-monolingual) —
124
- cleaned monolingual sentences from the same dump, for pretraining and language modelling.
125
- - [Bashkir-Russian Pair Scorer](https://huggingface.co/failed09/bashkir-pair-scorer) —
126
- standalone compatibility model used to produce the `pair_score` column.
127
-
128
- ## Usage
129
-
130
- ```bash
131
- pip install datasets
132
- ```
133
-
134
- ```python
135
- from datasets import load_dataset
136
-
137
- # Recommended subset for machine translation training
138
- filtered = load_dataset("failed09/bashkir-wikipedia-parallel", "filtered")
139
-
140
- # Custom filtering combining pair_score and LASER margin
141
- df = filtered["train"].to_pandas()
142
- strict_subset = df[(df.pair_score >= 0.80) & (df.laser_margin_xling >= 0.95)]
143
- print(f"Strict high-quality subset: {len(strict_subset):,} sentence pairs")
144
- ```
145
-
146
- ## License
147
-
148
- Distributed under the [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/).
149
- The release contains text extracted from Wikipedia; upstream source licenses and
150
- attribution requirements apply. Preserve Wikipedia and Wikimedia attribution when
151
- redistributing or publishing derivative datasets.
152
-
153
- ## Citation
154
-
155
- ```bibtex
156
- @dataset{failed09_bashkir_russian_wikipedia_parallel_2026,
157
- title = {Bashkir-Russian Wikipedia Parallel Corpus},
158
- author = {failed09},
159
- year = {2026},
160
- publisher = {Hugging Face},
161
- url = {https://huggingface.co/datasets/failed09/bashkir-wikipedia-parallel},
162
- note = {Cleaned sentence-level Bashkir-Russian Wikipedia parallel corpus}
163
- }
164
- ```
165
-
166
- ## Open Bashkir Data and Sources 🐝
167
-
168
- This release is part of an open-source effort to support the development,
169
- preservation and practical use of the Bashkir language. Other related models,
170
- datasets and tools are available on the author's Hugging Face profile.
171
-
172
- The author does not claim ownership or authorship of the source texts or other
173
- materials used to derive this release; rights and licensing remain with the
174
- original authors, publishers and dataset providers. Source texts are not
175
- redistributed in this repository, so users should follow the licenses and
176
- attribution requirements of the relevant upstream resources.
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ language:
4
+ - ba
5
+ - ru
6
+ pretty_name: Bashkir-Russian Wikipedia Parallel Corpus
7
+ task_categories:
8
+ - translation
9
+ configs:
10
+ - config_name: filtered
11
+ default: true
12
+ data_files:
13
+ - split: train
14
+ path: filtered/data.parquet
15
+ - config_name: cleaned
16
+ data_files:
17
+ - split: train
18
+ path: cleaned/data.parquet
19
+ - config_name: scored
20
+ data_files:
21
+ - split: train
22
+ path: scored/data.parquet
23
+ - config_name: precleaned
24
+ data_files:
25
+ - split: train
26
+ path: precleaned/data.parquet
27
+ tags:
28
+ - bashkir
29
+ - russian
30
+ - wikipedia
31
+ - cyrillic
32
+ - low-resource
33
+ - parallel-corpus
34
+ - sentence-level
35
+ - bitext-mining
36
+ ---
37
+
38
+ # Bashkir-Russian Wikipedia Parallel Corpus
39
+
40
+ > Sentence-level Bashkir-Russian parallel text from Wikipedia, scored and filtered
41
+ > for machine translation.
42
+
43
+ ## Overview
44
+
45
+ Sentence-level Bashkir-Russian parallel dataset extracted from the corresponding
46
+ Bashkir and Russian Wikipedia dumps dated `2026-08-01`. Candidate pairs are scored
47
+ for semantic alignment with multilingual sentence encoders (Meta LASER3, Google
48
+ LaBSE) and the in-domain Bashkir-Russian Pair Scorer. The `filtered` configuration
49
+ is the high-precision subset recommended for machine translation; `cleaned`,
50
+ `scored` and `precleaned` are provided for custom filtering experiments.
51
+
52
+ | At a glance | |
53
+ | --- | --- |
54
+ | Task | Parallel corpus / machine translation |
55
+ | Default config | `filtered` |
56
+ | Fields | `ba_title`, `ru_title`, `section`, `ba`, `ru`, sentence indices and alignment scores |
57
+ | Source | Bashkir and Russian Wikipedia dumps `2026-08-01` |
58
+ | License | CC BY-SA 4.0 |
59
+
60
+ ## Contents
61
+
62
+ ### Files and Configurations
63
+
64
+ | Config | Pairs | Articles | Description |
65
+ | --- | ---: | ---: | --- |
66
+ | **`filtered`** (recommended) | 66,498 | 31,574 | High-precision subset by two-voice scoring (LASER3 + LaBSE), annotated with `pair_score` |
67
+ | `cleaned` | 68,737 | 33,582 | Base alignment with article-level sentence mapping, Wiki markup and service boilerplate removed |
68
+ | `scored` | 68,737 | 33,582 | Identical rows to `cleaned`, retaining LASER margin scores and `pair_score` |
69
+ | `precleaned` | 84,512 | 40,705 | Broad extraction with relaxed sentence-length heuristics, for custom filtering |
70
+
71
+ Counts, filter rules and score distributions are the source of truth in
72
+ [`META.json`](META.json).
73
+
74
+ ### Fields and Schema
75
+
76
+ - `ba_title`, `ru_title`: article titles in the two Wikipedias.
77
+ - `section`: section category (`lead` or `facts`).
78
+ - `ba`, `ru`: aligned sentence pair.
79
+ - `ba_sentence_index`, `ru_sentence_index`: sentence positions in the source articles.
80
+ - `laser_cos`, `laser_margin`, `laser_margin_xling`: LASER3 cosine and margin scores (Artetxe & Schwenk, 2018).
81
+ - `labse_cos`, `labse_margin_xling`: LaBSE cosine and cross-lingual margin (present only in `filtered`).
82
+ - `pair_score`: semantic compatibility from the [Bashkir-Russian Pair Scorer](https://huggingface.co/failed09/bashkir-pair-scorer) `medium` model, 0.0–1.0.
83
+
84
+ ### Examples
85
+
86
+ | Bashkir (ba) | Russian (ru) | `pair_score` |
87
+ | --- | --- | ---: |
88
+ | Тарих — белем өлкәһе, кешелектең үткән замандағы эшмәкәрлеген, торошон, донъяға ҡарашын, ойошоуын һәм социаль бәйләнештәрен өйрәнә торған гуманитар фән. | История — общий термин, описывающий как события прошлого, так и память о прошлом, нахождение, сбор и интерпретацию сведений об этих событиях. | 0.999 |
89
+ | Республика (Йөмһүриәт) … — юғары власть органдары билдәле мөҙҙәткә һайланып ҡуйыла торған дәүләт төҙөлөшө. | Республика (от — «общественное дело») — форма государственного правления, при которой высшая власть принадлежит представительным органам, избираемым населением на определённый срок. | 0.589 |
90
+ | 1919 йылдың 20 мартында … Башҡорт Совет Республикаһын иғлан ителә. | 20 марта 1919 года … была образована Башкирская Советская Республика (Малая Башкирия) с временной столицей в с. | 0.511 |
91
+
92
+ ## Method
93
+
94
+ ```text
95
+ upstream Wikimedia dumps (bawiki-20260801 & ruwiki-20260801)
96
+ ├── 1. map articles via interlanguage Wikidata links (40,705 paired articles)
97
+ ├── 2. extract candidate sentence pairs within matched articles (84,512 candidate pairs)
98
+ ├── 3. strip MediaWiki markup, templates, tables & citation markers (15,775 dropped)
99
+ ├── 4. cross-lingual alignment scoring: LASER3, Google LaBSE & pair-scorer medium
100
+ ├── 5. two-voice consensus filter: reject if laser_margin < 0.876 AND labse_margin < 0.723 (2,239 dropped)
101
+ └── 6. export zstd Parquet: filtered (66,498 pairs) & cleaned (68,737 pairs)
102
+ ```
103
+
104
+ ## Quality and Use
105
+
106
+ Alignment quality is estimated automatically and is not human-verified. At this
107
+ scale, encyclopedic texts cover global geography, history and sciences, so some
108
+ sentence pairs may be loosely aligned or contain borrowed vocabulary, foreign
109
+ names or segmentation artifacts. Review samples before using the dataset in
110
+ production or as an evaluation benchmark.
111
+
112
+ ### Limitations
113
+
114
+ - Alignment scores are model estimates, not human judgments; thresholds were calibrated on this corpus.
115
+ - `pair_score` values are not calibrated human probabilities.
116
+ - `train` is a distribution convention; no leakage-free evaluation split is provided.
117
+ - `precleaned` and `cleaned` are intentionally looser than `filtered`.
118
+
119
+ ## Related Resources
120
+
121
+ - [Bashkir Wikipedia Monolingual Corpus](https://huggingface.co/datasets/failed09/bashkir-wikipedia-monolingual) —
122
+ sentence-level monolingual Bashkir text from the same dump, for pretraining and language modelling.
123
+ - [Bashkir-Russian Pair Scorer](https://huggingface.co/failed09/bashkir-pair-scorer) —
124
+ standalone compatibility model used to produce the `pair_score` column.
125
+
126
+ ## Usage
127
+
128
+ ```bash
129
+ pip install datasets
130
+ ```
131
+
132
+ ```python
133
+ from datasets import load_dataset
134
+
135
+ # Recommended subset for machine translation training
136
+ filtered = load_dataset("failed09/bashkir-wikipedia-parallel", "filtered")
137
+
138
+ # Custom filtering combining pair_score and LASER margin
139
+ df = filtered["train"].to_pandas()
140
+ strict_subset = df[(df.pair_score >= 0.80) & (df.laser_margin_xling >= 0.95)]
141
+ print(f"Strict high-quality subset: {len(strict_subset):,} sentence pairs")
142
+ ```
143
+
144
+ ## License
145
+
146
+ Distributed under the [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/).
147
+ The release contains text extracted from Wikipedia; upstream source licenses and
148
+ attribution requirements apply. Preserve Wikipedia and Wikimedia attribution when
149
+ redistributing or publishing derivative datasets.
150
+
151
+ ## Citation
152
+
153
+ ```bibtex
154
+ @dataset{failed09_bashkir_russian_wikipedia_parallel_2026,
155
+ title = {Bashkir-Russian Wikipedia Parallel Corpus},
156
+ author = {failed09},
157
+ year = {2026},
158
+ publisher = {Hugging Face},
159
+ url = {https://huggingface.co/datasets/failed09/bashkir-wikipedia-parallel},
160
+ note = {Cleaned sentence-level Bashkir-Russian Wikipedia parallel corpus}
161
+ }
162
+ ```
163
+
164
+ ## Open Bashkir Data and Sources 🐝
165
+
166
+ This release is part of an open-source effort to support the development,
167
+ preservation and practical use of the Bashkir language. Other related models,
168
+ datasets and tools are available on the author's Hugging Face profile.
169
+
170
+ The author does not claim ownership or authorship of the source texts or other
171
+ materials used to derive this release; rights and licensing remain with the
172
+ original authors, publishers and dataset providers. Source texts are not
173
+ redistributed in this repository, so users should follow the licenses and
174
+ attribution requirements of the relevant upstream resources.