bifrost-translation-source-classifier-dataset
收藏资源简介:
Bifrost翻译源分类器数据集是一个用于训练翻译源分类器的数据集,包含英文文本及其原始翻译来源语言的标签,以及作为控制类的原生英文文本。所有文本均为英文,标签指示文本的原始翻译来源语言(或en表示原生英文)。该数据集旨在帮助分类器学习检测原始语言的文化和风格痕迹。数据集包含180种语言,每种语言有10,000个训练样本、1,000个验证样本和1,000个测试样本,总计2,160,000个样本。数据来源于HuggingFaceFW/finetranslations(翻译文本)和HuggingFaceFW/fineweb(原生英文文本)。数据集包含三个字段:text(英文文本,字符串类型)、label(类别ID,整型)和language(源语言代码,字符串类型)。
The Bifrost Translation Source Classifier Dataset is a curated dataset developed for training translation source classifiers, containing English texts paired with labels indicating their original source languages of translation, plus native English texts serving as control samples. All texts are in English, with labels specifying the original source language of the translation; 'en' is used to denote native English texts. This dataset is designed to enable classifiers to learn to detect cultural and stylistic traces left by the original source languages. The dataset covers 180 distinct languages, with 10,000 training samples, 1,000 validation samples, and 1,000 test samples per language, resulting in a total of 2,160,000 samples. The dataset is sourced from HuggingFaceFW/finetranslations (for translated texts) and HuggingFaceFW/fineweb (for native English texts). It includes three core fields: `text` (English text, string type), `label` (category ID, integer type), and `language` (source language code, string type).
数据集概览:Bifrost Translation-Source Classifier Dataset
基本元信息
- 数据集名称:Bifrost Translation-Source Classifier Dataset
- 语言:英语(en)
- 许可证:Apache-2.0
- 任务类别:文本分类(text-classification)
- 数据集规模:1,000,000 ~ 10,000,000 条样本(实际 2,160,000 条)
数据集描述
该数据集用于训练 Bifrost 翻译源语言分类器。所有文本均为英语,标签表示该文本原始的翻译源语言(即从哪种语言翻译成英语),其中 en 类别代表原生英语文本。分类器通过学习识别原文语言在文化和风格上的痕迹,从而判断英语文本的原始语言来源。
数据来源
- 翻译文本:来源于 HuggingFaceFW/finetranslations
- 原生英语文本:来源于 HuggingFaceFW/fineweb 的 sample-10BT 子集
数据集统计
- 语言数量:180 种语言(含原生英语
eng) - 每语言训练样本:10,000 条
- 每语言验证样本:1,000 条
- 每语言测试样本:1,000 条
- 总样本数:2,160,000 条
数据集拆分
| 拆分 | 样本数量 |
|---|---|
| train | 1,800,000 |
| val | 180,000 |
| test | 180,000 |
数据列说明
- text(字符串类型):英语文本内容
- label(整数类型):类别 ID
- language(字符串类型):源语言代码(如
arb、cmn、eng等)
使用示例
python from datasets import load_dataset
ds = load_dataset("NbAiLab/bifrost-translation-source-classifier-dataset") train = ds["train"] val = ds["val"] test = ds["test"]
支持的语言代码列表(部分示例)
数据集包含 180 种语言,涵盖广泛的语言类型,如阿拉伯语(arb)、中文(cmn)、英语(eng)、法语(fra)、德语(deu)、印地语(hin)、日语(jpn)、西班牙语(spa)等。完整语言代码列表详见 README。




