遇见数据集

repair-sbn

收藏
Hugging Face2026-10-31 更新2026-11-01 收录
官方服务:

资源简介:

RepairSBN 是一个英文文本生成数据集,任务类别为 text-generation,语言为 en,默认配置为 default,包含 train 和 validation 两个 split,对应数据文件 data/train.parquet 与 data/validation.parquet。数据集包含项目使用的英文 PMB 5.1.0 train-gold 和 standard-dev 数据,以及合成的 replacement self-repair (RSR) 变体。为 hard-negative evaluation 保留的 66 篇文档不在任何组件中。 数据规模与变体:train 共 14,022 行,validation 共 1,706 行。变体包括:pmb_fluent,train 9,486、validation 1,194,C2 目标为 sbn_clean,C3 目标为 sbn_repair(= clean);rsr_base,train 3,489、validation 390,C2 目标为 sbn_clean,C3 目标为 sbn_repair;rsr_editing_expression,train 1,047、validation 122,C2 目标为 sbn_clean,C3 目标为 sbn_repair。validation 是项目 dev split,遵循 PMB 源划分;测试数据将在构建并接受后单独添加。C1 选择 fluent rows 和 sbn_clean;C2 选择所有行和 sbn_clean;C3 选择所有行和 sbn_repair。组装时行顺序为 PMB 源顺序后接增强 RSR 源顺序,不进行 shuffle,也不引入条件特定副本。 字段与标识:Parquet 使用与 train 相同的 20 列 schema 和空值约定。editing_expression 在 marked variants 中包含 I mean、no、no wait 或 actually,其他位置为 null。interregnum 不是数据集字段。example_id 标识 surface variant;item_id 链接同一 RSR item 的 base 与 marked 版本。marked variants 是 additive 的,所有 base RSR 行保留。train 中追加 1,047 个 marked 版本且 SBN 目标不变,其中包括 482 个无标记时被标记为文本歧义的行,以及从剩余 repair-type pools 按比例抽样的 565 行。dev 的 1,706 行由 1,194 个 fluent PMB standard-dev documents、390 个 base RSR 行和 122 个额外 marked 行构成;marked dev 行覆盖 122 个已识别的 multiple-reading items,没有随机补充。 构建与验收:train Parquet 和 manifest.json 由 build.py 本地生成。validation.manifest.json 记录 development assembly stage;validation.acceptance.json 记录同一 Parquet checksum 后续通过的 acceptance。未上传 TSV 源或人工标签。本地开发构建需在 repository root 的 repairsbn 环境中运行 python -m repair_data_gen.training_dataset.build_dev,写入 data/validation.parquet 和 validation.manifest.json,并保留现有 train build。该开发构建已通过本地验收;建议使用 Hub commit revision 固定已发布快照用于实验。开发验收需运行 python -m repair_data_gen.training_dataset.validate_dev --tokenizer-root PATH;PATH 包含 2B/、9B/、27B/ 的 tokenizer-only 下载,使用 model/smoke_test/revisions.json 中的模型 revision;使用 hf download 的 --revision 和重复 --include 获取 tokenizer*、chat_template*、vocab.json、merges.txt,并保留 .cache/huggingface/ 元数据。验证器离线加载这些文件并检查记录的 commit。结果位于 ../splits/dev/analysis/unified_validation/,包括 summary.json、逐行 graph checks 和逐例 token lengths。build manifest 记录 assembly;acceptance report 记录后续检查。所有 1,706 行通过 source、schema、identity 和 graph 检查;所有 512 个 RSR 行通过 withdrawal、untouched-content 和 new-WordNet-concept 检查;与 train 的 document 和 exact-input 重叠为零;122 个 marked pair 精确恢复其 base。早期批准的 surface warning 保留;context near-duplicate 检查按现有政策暂缓。对三个固定 tokenizer,最大完整序列长度为 219;没有样本超过设计中的 1,024-token 训练限制或 512-token 生成预算。审计使用设计中的共享 neutral instruction、pilot 的 instruction/newline/text 格式、Qwen 的 chat template 和 enable_thinking=False;检查 assistant boundaries 和 supervised EOS。正式 trainer 必须使用该审计格式;smoke-test instruction 是条件特定的,不是正式 instruction。 限制:RSR 输入是合成的,基于短篇书面 PMB 文本。train 歧义标签为启发式;dev 标签还记录已确认的 alternative readings。大多数 train repair types 通过抽样审计;train edge-label repairs 和所有选定的 dev base repairs 经过逐项复核。同一 item 的 marked 与 base variants 是同一语义示例的 surface variants,不是独立观测。

RepairSBN is an English text-generation dataset. Its task category is text-generation, language is en, default configuration is default, and it contains train and validation splits with files data/train.parquet and data/validation.parquet. It includes the English PMB 5.1.0 train-gold and standard-dev data used by the project, plus synthetic replacement self-repair (RSR) variants. The 66 documents reserved for hard-negative evaluation are not included in any component. Data size and variants: train has 14,022 rows and validation has 1,706 rows. Variants include: pmb_fluent, with 9,486 train and 1,194 validation rows, C2 target sbn_clean, C3 target sbn_repair (= clean); rsr_base, with 3,489 train and 390 validation rows, C2 target sbn_clean, C3 target sbn_repair; rsr_editing_expression, with 1,047 train and 122 validation rows, C2 target sbn_clean, C3 target sbn_repair. Validation is the project dev split, following the PMB source split; test data will be added separately after construction and acceptance. C1 selects fluent rows and sbn_clean; C2 selects all rows and sbn_clean; C3 selects all rows and sbn_repair. During assembly, row order is PMB source order followed by augmented RSR source order, without shuffle and without condition-specific duplicates. Fields and identifiers: Parquet uses the same 20-column schema and null conventions as train. editing_expression in marked variants contains I mean, no, no wait, or actually, and is null elsewhere. interregnum is not a dataset field. example_id identifies the surface variant; item_id links base and marked versions of the same RSR item. Marked variants are additive, and all base RSR rows are retained. In train, 1,047 marked versions are appended with unchanged SBN targets, including 482 rows marked as text ambiguity when unmarked, and 565 rows sampled proportionally from remaining repair-type pools. Devs 1,706 rows consist of 1,194 fluent PMB standard-dev documents, 390 base RSR rows, and 122 additional marked rows; marked dev rows cover 122 identified multiple-reading items with no random supplementation. Construction and acceptance: train Parquet and manifest.json are locally generated by build.py. validation.manifest.json records the development assembly stage; validation.acceptance.json records later acceptance of the same Parquet checksum. No TSV sources or human labels are uploaded. The local development build should be run in the repairsbn environment at repository root with python -m repair_data_gen.training_dataset.build_dev, writing data/validation.parquet and validation.manifest.json while preserving the existing train build. This development build has passed local acceptance; using a Hub commit revision to pin the released snapshot for experiments is recommended. Development acceptance requires running python -m repair_data_gen.training_dataset.validate_dev --tokenizer-root PATH; PATH contains tokenizer-only downloads for 2B/, 9B/, 27B/ using model revisions in model/smoke_test/revisions.json; use hf download --revision and repeated --include to fetch tokenizer*, chat_template*, vocab.json, merges.txt, and retain .cache/huggingface/ metadata. The validator loads these files offline and checks the recorded commit. Results are in ../splits/dev/analysis/unified_validation/, including summary.json, per-row graph checks, and per-example token lengths. The build manifest records assembly; the acceptance report records subsequent checks. All 1,706 rows passed source, schema, identity, and graph checks; all 512 RSR rows passed withdrawal, untouched-content, and new-WordNet-concept checks; document and exact-input overlap with train is zero; 122 marked pairs exactly restore their bases. Previously approved surface warnings are retained; context near-duplicate checks are deferred according to existing policy. For the three fixed tokenizers, the maximum full sequence length is 219; no sample exceeds the designed 1,024-token training limit or 512-token generation budget. Auditing uses the designed shared neutral instruction, the pilots instruction/newline/text format, Qwens chat template, and enable_thinking=False; assistant boundaries and supervised EOS are checked. The formal trainer must use this audit format; the smoke-test instruction is condition-specific and is not the formal instruction. Limitations: RSR inputs are synthetic and based on short written PMB text. Train ambiguity labels are heuristic; dev labels also record confirmed alternative readings. Most train repair types are audited by sampling; train edge-label repairs and all selected dev base repairs were reviewed item by item. Marked and base variants of the same item are surface variants of the same semantic example, not independent observations.

创建时间:
2026-10-24
原始信息汇总

RepairSBN 数据集总结

数据集概览

  • 名称:RepairSBN
  • 语言:英语
  • 任务类别:文本生成
  • 配置:default,默认配置
  • 训练集文件绝对地址:https://huggingface.co/datasets/Shrikes/repair-sbn/blob/main/data/train.parquet
  • 验证集文件绝对地址:https://huggingface.co/datasets/Shrikes/repair-sbn/blob/main/data/validation.parquet
  • 内容:英语 PMB 5.1.0 train-gold 与 standard-dev 数据,以及项目使用的 synthetic replacement self-repair(RSR)变体。
  • 用于 hard-negative evaluation 的 66 篇文档保留但不包含在任何组件中。

数据规模与变体

variant train validation C2 目标 C3 目标
pmb_fluent 9,486 1,194 sbn_clean sbn_repair(= clean)
rsr_base 3,489 390 sbn_clean sbn_repair
rsr_editing_expression 1,047 122 sbn_clean sbn_repair
total 14,022 1,706
  • validation 是项目的 dev split,遵循 PMB 的源分区。
  • 测试数据将在构建并接受后单独添加。

字段与标识

  • editing_expression:在 marked variants 中包含 I mean、no、no wait 或 actually,其他位置为空。
  • interregnum:不是数据集字段。
  • example_id:标识 surface variant。
  • item_id:链接一个 RSR item 的 base 版本与 marked 版本。

构建与拆分规则

  • marked variants 是 additive;所有 base RSR 行均保留。
  • 在 train 中,1,047 个 marked 版本被追加,且 SBN targets 不变。
  • 上述 1,047 个 marked 版本包含 482 个被标记为无标记时文本歧义的行,以及 565 个从剩余 repair-type pools 中按比例采样的行。
  • Train Parquet 与 manifest.json 由 build.py 本地生成。
  • validation.manifest.json 记录开发装配阶段;validation.acceptance.json 记录同一 Parquet checksum 的后续通过 acceptance。
  • 没有上传 TSV 来源或人工标签。
  • C1 选择 fluent rows 与 sbn_clean。
  • C2 选择所有 rows 与 sbn_clean。
  • C3 选择所有 rows 与 sbn_repair。
  • 行顺序为 PMB source order 后接 augmented RSR source order。
  • 装配期间不引入 shuffle 或 condition-specific copies。

本地开发构建

  • 在 repairsbn 环境从仓库根运行:

bash python -m repair_data_gen.training_dataset.build_dev

  • 该命令写入验证 Parquet 文件与 validation.manifest.json,并保留现有训练构建。
  • 1,706 个开发行包含 1,194 个 fluent PMB standard-dev 文档、390 个 base RSR 行与 122 个附加 marked 行。
  • 该 Parquet 使用与 train 相同的 20 列 schema 和 null 约定。
  • marked dev rows 覆盖 122 个已识别的 multiple-reading items,没有 random top-up。
  • 开发构建已通过本地 acceptance。
  • 使用 Hub commit revision 固定实验所用的精确已发布快照。

开发验收

  • 在 repairsbn 环境从仓库根运行:

bash python -m repair_data_gen.training_dataset.validate_dev --tokenizer-root PATH

  • PATH 包含 2B、9B、27B 的 tokenizer-only 下载,并使用模型修订记录文件中的模型 revisions。
  • 使用 hf download 的 --revision 与重复 --include 选项获取 tokenizer*、chat_template*、vocab.json 和 merges.txt;保留 Hugging Face 缓存元数据。
  • validator 离线加载这些文件并检查其记录的 commits。
  • 验收结果包括 summary.json、逐行 graph checks 与逐示例 token lengths。
  • build manifest 记录 assembly;acceptance report 记录后续检查。
  • 所有 1,706 行通过 source、schema、identity 与 graph checks。
  • 所有 512 个 RSR 行通过 withdrawal、untouched-content 与 new-WordNet-concept checks。
  • 与 train 的文档重叠和精确输入重叠均为零。
  • 122 个 marked pairs 精确恢复其 bases。
  • 保留先前批准的 surface warning;context near-duplicate checks 按现有政策继续推迟。
  • 对三个 pinned tokenizers,最大完整序列长度为 219;没有示例超过设计的 1,024-token 训练限制或 512-token 生成预算。
  • 审计使用 design 的 shared neutral instruction、pilot 的 instruction/newline/text formatting、Qwen 的 chat template 和 enable_thinking=False。
  • 检查 assistant boundaries 与 supervised EOS。
  • 正式 trainer 必须使用该审计格式;smoke-test instruction 是 condition-specific,不是 formal instruction。

限制

  • RSR 输入是 synthetic,并基于短书面 PMB 文本。
  • Train ambiguity labels 是 heuristic;dev labels 也记录 confirmed alternative readings。
  • 大多数 train repair types 通过采样审计;train edge-label repairs 与所有 selected dev base repairs 被单独审查。
  • 一个 item 的 marked 与 base variants 是同一 semantic example 的 surface variants,不是独立观察。
搜集汇总
数据集介绍
repair-sbn 数据集图片
构建方式
基于语义图库的文本生成与自修复研究,RepairSBN 以 PMB 5.1.0 英文 train-gold 与 standard-dev 为语义基底,并合成替换式自修复(RSR)变体。构建依托本地 build.py 与 build_dev 流程:训练 Parquet 与 manifest 由 build.py 生成,开发集在保留训练构建的同时写入 validation.parquet 与 validation.manifest.json。RSR 条目以基础语义为锚点,标记版本与基础版本共享未变更的 SBN 目标;训练集追加 1,047 条标记版本,含 482 条无标记易歧义样本及 565 条按修复类型比例抽样样本。为硬负例评估预留的 66 篇文档未进入任何组件,TSV 源文件与人工标签不随集上传。
特点
作为自修复生成资源,RepairSBN 以 pmb_fluent、rsr_base 与 rsr_editing_expression 三类变体形成多层级结构,训练集 14,022 行、验证集 1,706 行;验证集含 1,194 条 PMB standard-dev 流畅文档、390 条基础 RSR 行与 122 条附加标记行。标记变体以 I mean、no、no wait 或 actually 等编辑表达显现,非标记位置为空;example_id 标识表面变体,item_id 串联同一 RSR 条目的基础版与标记版。数据采用 20 列 Parquet 模式与统一空值约定,C1 选取流畅行及 sbn_clean,C2 选取全部行及 sbn_clean,C3 选取全部行及 sbn_repair。行序遵循 PMB 源序再接增强 RSR 源序,组装时不混洗或复制条件副本。审计确认 RSR 行通过撤回、未触碰内容及新 WordNet 概念检查,最大完整序列长度 219,未超出 1,024 训练令牌与 512 生成预算。
使用方法
在文本生成实验流程中,RepairSBN 的使用需以 Hub commit revision 固定已发布快照,使训练、验证与审计对应同一数据版本。开发构建可在仓库根目录的 repairsbn 环境运行 python -m repair_data_gen.training_dataset.build_dev,生成 validation.parquet 与 validation.manifest.json 并保留既有训练构建;验证阶段运行 validate_dev --tokenizer-root PATH,离线加载 tokenizer 并核验其提交记录。任务条件按目标选择:C1 使用流畅行与 sbn_clean,C2 使用全部行与 sbn_clean,C3 使用全部行与 sbn_repair。正式训练器须采用审计格式,即共享中性指令、试点指令/换行/文本格式化、Qwen 聊天模板与 enable_thinking=False,并检查助手边界与监督 EOS。
背景与挑战
背景概述
在语义解析与文本生成交叉领域,PMB语料长期为深层语义表示提供基准。RepairSBN依托PMB 5.1.0的train-gold与standard-dev,集成合成替换自修复(RSR)变体,细分为pmb_fluent、rsr_base、rsr_editing_expression,合计14,022训练行与1,706验证行。其核心问题在于面对含“I mean”“no wait”“actually”等编辑表达及潜在歧义的口语化修复时,模型能否生成清洁SBN或修复后SBN。项目通过repair_data_gen构建,公开卡片未列明具体创建时间、人员与机构;66篇文档被保留用于硬负例评估。该资源推动自修复鲁棒语义解析与可控文本生成研究。
当前挑战
面向语义表示生成任务的现实部署,自修复、插入语和编辑表达构成表层扰动,而语义目标保持稳定。模型需区分清洁目标与修复目标,并抵御硬负例干扰。构建过程中,RSR输入为合成且基于短篇书面PMB文本,训练歧义标签为启发式,开发标签含确认替代解读,多数修复类型经抽样审计,边缘标签与选定基础修复逐项复核。标记与基础变体属于同一语义样例的表面变体,并非独立观测,可能影响泛化评估。验证还要求零文档与精确输入重叠、通过撤回、未改动及新WordNet概念检查,并满足三个分词器下序列长度不超过1,024与生成512预算。
常用场景
经典使用场景
植根于语义银行与自修复生成交叉领域,RepairSBN 的经典用法在于以 PMB 5.1.0 英文短文本及其合成替换自修复变体为输入,训练或评测文本生成模型恢复干净语义目标。该数据集提供 pmb_fluent、rsr_base 与 rsr_editing_expression 三类变体,并以 C1、C2、C3 条件区分流畅行到 sbn_clean、全样本到 sbn_clean、全样本到 sbn_repair 的生成路径。模型需处理 I mean、no、no wait、actually 等编辑表达,辨别表面修正与最终语义,常用于自修复规范化、语义保持生成和条件生成基准测试。
实际应用
在语音识别后处理、对话系统、会议记录整理与辅助写作等实际场景中,RepairSBN 可用于训练模型将含自我修正标记的口语化文本还原为干净、连贯的最终表达。借助 sbn_clean 与 sbn_repair 双目标,系统能够识别 I mean、actually、no wait 等编辑表达,剥离犹豫与修正片段,恢复用户真实意图。该数据还可服务于机器翻译预处理、语义解析前端规范化和指令微调中的鲁棒性增强,使下游模型在噪声输入、修正性话语和短文本语义恢复任务中获得更稳定的生成表现。
衍生相关工作
围绕语义银行自修复与生成式规范化方向,RepairSBN 衍生出以 sbn_clean 和 sbn_repair 为双目标的 C1、C2、C3 条件评测范式,以及合成替换自修复增广、编辑表达标记建模、硬负例留出评估与多规模 tokenizer 验收流程等经典工作路径。其 train 与 validation 的 manifest、acceptance 机制和 20 列 Parquet 模式,为后续研究提供了可追溯的数据构建与验证惯例。相关衍生任务进一步覆盖 marker-aware 文本生成、语义等价恢复、鲁棒语义解析和基于 PMB 的短文本规范化,对自修复基准建设具有参照意义。
以上内容由遇见数据集搜集并总结生成
二维码
社区交流群
二维码
科研交流群
商业服务