almanbench
收藏资源简介:
AlmanBench 是一个标准德语到 Alman 方言的翻译基准数据集。Alman 是一种简化的德语方言,旨在消除语法性别和格变位,其规范定义在 alman.ai 网站。该基准测试用于衡量模型能否将规范中的完整规则集应用于真实的德语文本:每个数据项是一个标准德语句子,参考输出是规范允许的所有 Alman 翻译版本的集合。数据集包含 1,029 个公开测试样本,并维护了约 200 个未公开的保留样本,用于检测训练数据污染。数据样本分为四个层级:自然文本层(600 项,包含经典文学和当代德语)、目标规则层(216 项,手动编写以覆盖罕见规则)、防护层(120 项,用于防止过度纠正错误)和精选层(93 项,手动翻译以演示核心规则)。每个样本包含唯一标识符、层级、分组、集合标识、标准德语源句、规范 Alman 翻译、所有可接受的翻译列表、覆盖的规则ID列表、语体、是否为防护项、防护族、是否使用古旧正字法、译者注释、来源元数据以及污染检测标识等字段。该数据集适用于机器翻译模型的能力评估,特别是对规则化方言翻译任务的性能测试。数据来源多样,包括公共领域经典文学作品、CC BY-SA 4.0 许可的维基百科文章、CC BY 2.0 FR 许可的 Tatoeba 句子以及 CC BY-SA 4.0 许可的手动编写内容。Alman 翻译参考也以 CC BY-SA 4.0 许可发布。
AlmanBench is a benchmark dataset for translation from standard German to the Alman dialect. Alman is a simplified German dialect designed to eliminate grammatical gender and case declension, with its specification defined on the alman.ai website. This benchmark is used to measure whether models can apply the full set of rules from the specification to real German texts: each data item is a standard German sentence, and the reference output is the set of all Alman translation versions allowed by the specification. The dataset contains 1,029 publicly available test samples and maintains approximately 200 unpublished reserved samples for detecting training data contamination. The data samples are divided into four tiers: natural text tier (600 items, including classical literature and contemporary German), target rule tier (216 items, manually written to cover rare rules), guard tier (120 items, used to prevent overcorrection errors), and curated tier (93 items, manually translated to demonstrate core rules). Each sample includes fields such as unique identifier (id), tier, bin, set, standard German source sentence (source), canonical Alman translation (canonical), list of all acceptable translations (accepted), list of covered rule IDs (covers), register, guard flag (guard), guard family, archaic orthography flag (orthography_archaic), translators note (note), source metadata (meta), and contamination detection identifier (canary). This dataset is suitable for evaluating the capabilities of machine translation models, particularly for performance testing on rule-based dialect translation tasks. Data sources are diverse, including public domain classical literary works, CC BY-SA 4.0 licensed Wikipedia articles, CC BY 2.0 FR licensed Tatoeba sentences, and CC BY-SA 4.0 licensed manually written content. The Alman translation references are also released under the CC BY-SA 4.0 license.
数据集概述
AlmanBench 是一个用于评估从标准德语(Standard German)到 Alman 方言翻译能力的基准测试数据集。
- 语言:源语言为标准德语(de),目标语言为 Alman 方言(de-AL)。
- 任务类别:机器翻译。
- 标注来源:专家生成。
- 大小:约 1,029 条数据(1K < n < 10K),另有一个约 200 条的非公开保留集。
- 许可证:混合来源许可(mixed-source-licenses),具体各子集许可不同。
数据组成
数据集包含四个层级(Tier),共 1,029 条公共测试样本:
| 层级 (Tier) | 数量 | 说明 |
|---|---|---|
| naturalistic | 600 | 真实文本,一半为经典文学作品(1500-1955),一半为当代德语(Wikipedia、Tatoeba、人工撰写)。 |
| targeted | 216 | 手工撰写,确保罕见规则至少有 25 个观察样本。 |
| guards | 120 | 过度纠正陷阱,包含八种类型,测试模型是否会错误修改 Alman 中保留的词汇。 |
| curated | 93 | 手工翻译的核心示例,每个规格规则至少对应一个样本。 |
字段说明
每条记录包含以下字段:
| 字段 | 类型 | 描述 |
|---|---|---|
id |
string | 稳定的样本 ID,如 almanbench/canonical/01002。 |
tier |
string | 所属层级:naturalistic, targeted, guards, curated。 |
bin |
string | 层级内的细分类别,如 naturalistic-modern/wikipedia。 |
set |
string | 分布标识,公共集始终为 public。 |
source |
string | 标准德语的输入句子。 |
canonical |
string | 规范的 Alman 翻译(accepted 列表中的第一项)。 |
accepted |
list of strings | 规格允许的所有 Alman 翻译形式。 |
covers |
list of strings | 该样本涉及的规格规则 ID 列表。 |
register |
string | 语域:canonical(历史文学)或 modern(现代)。 |
guard |
bool | 是否为过度纠正陷阱样本。 |
guard_family |
string or null | 陷阱家族名称(仅 guard 样本有值)。 |
orthography_archaic |
bool | 源文本是否使用旧正字法。 |
note |
string or null | 翻译者的说明注释。 |
meta |
string | JSON 格式的源文本出处信息(作品、文章、Tatoeba ID 等)。 |
canary |
string | 污染检测标识,每行相同。 |
数据格式与加载
数据集以 JSONL 格式存储于单个文件 data/almanbench.jsonl,可通过 Hugging Face datasets 库加载:
python from datasets import load_dataset ds = load_dataset("osolmaz/almanbench", split="test")
评估指标
- Acceptance:主要指标,计算模型输出与
accepted集合的标准化精确匹配率。 - Compliance:辅助指标,通过词法分析器检测模型输出中是否保留 Alman 方言应消除的标准德语形式。
结果示例
以下是部分模型在完整公共集(1,029 条)上的表现(2026 年 7 月评估):
| 模型 | Acceptance | Compliance |
|---|---|---|
| Claude Fable 5 | 94.1% | 99.8% |
| GPT-5.6 Sol | 93.5% | 99.7% |
| DeepSeek V4 Flash | 89.7% | 99.8% |
| GPT-5.6 Luna | 87.7% | 98.4% |
| Gemma 4 31B IT | 64.8% | 94.8% |
完整排行榜及分项结果可查看基准测试页面(https://alman.ai/almanbench/),单样本结果发布在数据集 osolmaz/almanbench-results(https://huggingface.co/datasets/osolmaz/almanbench-results)。
许可详情
- 经典文学作品(naturalistic-canonical):公共领域,来源于 TextGrid、Deutsches Textarchiv 和 Project Gutenberg。
- 德语 Wikipedia(naturalistic-modern/wikipedia):CC BY-SA 4.0。
- Tatoeba(naturalistic-modern/tatoeba):CC BY 2.0 FR。
- 手工撰写样本(authored, targeted, guards, curated):原创内容,CC BY-SA 4.0。
- Alman 参考翻译:原创翻译,CC BY-SA 4.0。
- 衍生作品:Wikipedia 衍生内容保持 CC BY-SA 协议。
污染防护策略
每条数据包含污染检测标识(canary GUID: 8b1a4c9e-almanbench-4f2d-9c7a-3e5b6d8f0a12),禁止该数据集出现在训练语料中。非公开保留集用于检测模型训练污染,通过比较公共集与保留集的结果差异来量化污染程度。




