document-level-word-alignment
收藏资源简介:
Document-Level Word Alignment 是一个面向六种语言对(英语-法语、英语-罗马尼亚语、英语-日语、英语-中文、拉丁语-古希腊语、英语-捷克语)的文档级词对齐数据集。该数据集从现有的句子级人工标注词对齐黄金标准中重建而来,通过按文档归属和句子顺序将句子级标注分组,构建文档级样例(不包含新的人工标注)。数据集的每个配置对应一个语言对,每行数据代表一个文档对。数据分为开发集(dev)和测试集(test),其中英语-捷克语仅有测试集。数据字段包括:文档唯一标识符(sent_id)、父文档标识符(doc_id)、语言对代码(lang)、源语言文本(text_a,按空格分词)、目标语言文本(text_b,按空格分词)、确定对齐链接(sure_align,空格分隔的“i-j”格式,0索引词位置)以及可能对齐链接(possible_align)。数据集统计信息显示,每个语言对的文档数量从1到52不等,文档平均字符长度(目标语言侧)从646到22,408不等。该数据集随论文《Scaling Unsupervised Word Alignment to Documents with Structural Constraints》发布,并采用混合许可协议(每个子集来源与许可证不同)。数据集创建过程为:将文档内句子级源语言和目标语言文本按原始顺序拼接,并相应重新索引对齐链接。
Document-Level Word Alignment is a document-level word alignment dataset covering six language pairs (English-French, English-Romanian, English-Japanese, English-Chinese, Latin-Ancient Greek, English-Czech). It is reconstructed from existing sentence-level manually annotated word alignment gold standards, grouping sentence-level annotations by document affiliation and sentence order to create document-level examples (without new manual annotations). Each configuration of the dataset corresponds to a language pair, and each row of data represents a document pair. Data is split into dev and test sets, with English-Czech having only test set. Data fields include: document unique identifier (sent_id), parent document identifier (doc_id), language pair code (lang), source language text (text_a, space-tokenized), target language text (text_b, space-tokenized), sure align links (sure_align, space-separated i-j format, 0-indexed word positions), and possible align links (possible_align). Dataset statistics show that the number of documents per language pair ranges from 1 to 52, and the average character length of documents (target language side) ranges from 646 to 22,408. The dataset is released with the paper Scaling Unsupervised Word Alignment to Documents with Structural Constraints and uses a mixed license agreement (each subset has different sources and licenses). The dataset creation process concatenates sentence-level source and target language texts within a document in original order and reindexes alignment links accordingly.
数据集概述:Document-Level Word Alignment
基本信息
- 数据集名称:Document-Level Word Alignment
- 发布机构:ZurichNLP
- 许可证:混合许可证(各子集独立授权,详见 LICENSE.md)
- 语言:英语(en)、法语(fr)、罗马尼亚语(ro)、日语(ja)、中文(zh)、古希腊语(gr)、拉丁语(la)、捷克语(cs)
- 多语言性:多语言
- 任务类别:词元分类(token-classification)
- 数据规模:1K < n < 10K
数据集内容
该数据集包含六个语言对的文档级词对齐数据,由现有的句子级人工标注词对齐黄金标准重建而来,不包含新的手工标注。文档级样本通过按文档归属和句子顺序对句子级标注进行分组构建。
语言对配置
| 配置名称 | 语言对 | 可用划分 |
|---|---|---|
| en-fr | 英语–法语 | dev, test |
| en-ro | 英语–罗马尼亚语 | dev, test |
| en-ja | 英语–日语 | dev, test |
| en-zh | 英语–中文 | dev, test |
| la-gr | 拉丁语–古希腊语 | dev, test |
| en-cz | 英语–捷克语 | 仅 test |
数据结构
每个配置对应一个语言对,每一行代表一个文档对。
数据字段
| 字段 | 类型 | 描述 |
|---|---|---|
sent_id |
string | 文档唯一标识符 |
doc_id |
string | 父文档标识符 |
lang |
string | 语言对代码,如 “en-ja” |
text_a |
string | 源语言文本(按空格分词) |
text_b |
string | 目标语言文本(按空格分词) |
sure_align |
string | 空格分隔的 i-j 确定对齐链接 |
possible_align |
string | 空格分隔的 i-j 可能对齐链接 |
示例
json {"sent_id": "trial", "doc_id": "trial", "lang": "en-fr", "text_a": "source document text ...", "text_b": "target document text ...", "sure_align": "0-0 3-5", "possible_align": "1-1"}
数据统计(dev / test)
| 语言对 | 文档数(dev/test) | 平均文档长度(字符) |
|---|---|---|
| en-fr | 1 / 1 | 22,408 |
| en-ro | 1 / 10 | 2,901 |
| en-ja | 8 / 7 | 5,516 |
| en-zh | 47 / 52 | 646 |
| la-gr | 1 / 1 | 5,837 |
| en-cz | — / 33 | 6,318 |
注:长度为 text_b(目标语言侧)的字符数。
数据来源与许可
| 语言对 | 来源 | 许可证 |
|---|---|---|
| en-ja | Neubig (2011) | CC BY-SA 3.0 |
| la-gr | Yousef et al. (2022) | CC BY-SA 4.0 |
| en-fr, en-ro | Mihalcea & Pedersen (2003) | 来源未指定 |
| en-zh | Liu and Sun (2015) | 来源未指定 |
| en-cz | Mareček (2011) | CC BY-SA 4.0 |
构建方法
文档级样本通过将文档内句子级源语言/目标语言文本按原始顺序拼接,并相应地重新索引 sure_align 和 possible_align 来构建。
引用说明
使用该数据集时,需同时引用本工作及所使用的语言对对应的原始来源。相关论文为 "Scaling Unsupervised Word Alignment to Documents with Structural Constraints"。




