bashkir-wikipedia-parallel
收藏资源简介:
该数据集是从巴什基尔语和俄语维基百科转储(日期为2026年8月1日)中提取的句子级平行语料库,旨在支持巴什基尔语-俄语机器翻译研究,特别针对低资源语言场景。数据集提供四个配置版本:cleaned(默认推荐,包含72,007个句子对,来自34,566个关联文章对,经过URL、MediaWiki标记、卡片片段和异常标点符号的清理,移除了重复和相同句子对,保留了句子索引)、precleaned(包含91,949个句子对,是早期提取的版本,过滤较少,可能包含较旧的Wiki标记、链接和对齐噪声)、scored(与cleaned的行完全相同,但增加了基于Meta LASER句子嵌入的质量分数,包括laser_cos、laser_margin、laser_margin_xling)、filtered(包含69,706个句子对,采用保守的双编码器过滤,保留了所有评分列,移除的句子对主要是模板不匹配和跨文章主题匹配)。数据来源为巴什基尔语维基百科(bawiki-20260801)和俄语维基百科(ruwiki-20260801)转储。cleaned配置使用文章内句子索引、数值锚点、长度比检查、语言检查、重复移除和服务片段过滤。scored和filtered配置在此基础上添加了多语言句子嵌入评分,不修改文本。该数据集适用于巴什基尔语-俄语机器翻译训练、平行语料库质量评估及跨语言句子嵌入研究。
This dataset is a sentence-level parallel corpus extracted from Bashkir and Russian Wikipedia dumps (dated August 1, 2026), designed to support Bashkir-Russian machine translation research, particularly for low-resource language scenarios. The dataset provides four configurations: cleaned (default recommended, containing 72,007 sentence pairs from 34,566 linked article pairs, cleaned of URLs, MediaWiki markup, board fragments, and abnormal punctuation, with duplicates and identical sentence pairs removed, preserving sentence indices), precleaned (containing 91,949 sentence pairs, an earlier extraction with less filtering, potentially including older Wiki markup, links, and alignment noise), scored (identical rows to cleaned but with additional quality scores based on Meta LASER sentence embeddings, including laser_cos, laser_margin, laser_margin_xling), and filtered (containing 69,706 sentence pairs, using conservative dual-encoder filtering, retaining all scoring columns, with removed pairs mainly due to template mismatches and cross-article topic mismatches). The data source is Bashkir Wikipedia (bawiki-20260801) and Russian Wikipedia (ruwiki-20260801) dumps. The cleaned configuration uses intra-article sentence indices, numeric anchors, length ratio checks, language checks, duplicate removal, and service segment filtering. The scored and filtered configurations add multilingual sentence embedding scoring on top of the cleaned version without modifying the text. This dataset is suitable for Bashkir-Russian machine translation training, parallel corpus quality evaluation, and cross-lingual sentence embedding research.
数据集概述
Bashkir-Russian Wikipedia Parallel Corpus 是一个句子级别的巴什基尔语-俄语平行语料库,数据来源于日期为 2026-08-01 的巴什基尔语和俄语维基百科转储文件。该数据集专注于低资源语言的机器翻译研究,采用知识共享署名-相同方式共享 4.0 国际许可协议(CC BY-SA 4.0)。
配置说明
该数据集提供四种配置,供不同用途选择:
| 配置名 | 句子对数 | 特点 |
|---|---|---|
cleaned(默认推荐) |
72,007 | 去除URL、MediaWiki标记、卡片片段和错误标点,并移除重复及相同句子对,适用于机器翻译训练 |
precleaned |
91,949 | 较早的提取版本,过滤较轻,包含旧版维基标记和链接噪声,适用于替代预处理和研究 |
scored |
72,007 | 与 cleaned 行完全一致,额外包含基于 LASER 嵌入的质量分数 |
filtered |
69,706 | 在 scored 基础上应用双编码器保守过滤,移除约 3.20% 的句子对 |
各配置字段
cleaned 配置字段
ba_title:巴什基尔语维基百科文章标题ru_title:俄语维基百科文章标题section:lead或factsba:巴什基尔语句子ru:俄语句子ba_sentence_index:巴什基尔语文章中的句子索引ru_sentence_index:俄语文章中的句子索引
precleaned 配置字段
ba_title、ru_title、section、ba、ru
scored 与 filtered 配置字段(在 cleaned 基础上)
laser_cos:LASER 嵌入对之间的余弦相似度laser_margin:按同语言 kNN 密度归一化的边际分数laser_margin_xling:按跨语言 kNN 密度归一化的边际分数(推荐使用的 LASER 过滤分数)filtered配置额外包含labse_cos和labse_margin_xling(基于 LaBSE 编码器的分数)
数据处理细节
- 编码器:巴什基尔语使用 LASER3
bak_Cyrl(NLLB),俄语使用 LASER2,1024 维 L2 归一化嵌入,k=4 邻居。 - 过滤条件:仅当 LASER 和 LaBSE 两个评分器都将某对句子置于各自底部 5% 时(
laser_margin_xling < 0.876且labse_margin_xling < 0.723)才移除该对。 - 移除的句子对主要是模板不匹配句子(如河流支流模板中的不同事实)和跨文章主题匹配。
分数分布
完整 72,007 对句子上的分数分布如下:
| 分数 | p01 | p05 | p25 | p50 | p75 | p95 | p99 |
|---|---|---|---|---|---|---|---|
laser_cos |
0.597 | 0.705 | 0.828 | 0.863 | 0.887 | 0.914 | 0.928 |
laser_margin_xling |
0.760 | 0.876 | 0.988 | 1.033 | 1.063 | 1.102 | 1.129 |
labse_cos |
0.206 | 0.408 | 0.698 | 0.789 | 0.859 | 0.932 | 0.963 |
labse_margin_xling |
0.373 | 0.723 | 1.035 | 1.132 | 1.202 | 1.295 | 1.358 |
使用与许可
- 可通过
datasets库加载,示例代码见原始页面。 - 源码派生自维基百科,遵循 知识共享署名-相同方式共享 4.0 国际许可协议。
- 重新分发或发布衍生数据集时需保留维基百科署名。




