v11-corpus
收藏资源简介:
v11 tokenizer gate corpus 是一个专门设计用于测试和评估 tokenizer 性能的数据集。它包含 32 个手工组装的文本文件,涵盖散文和源代码,旨在模拟真实文本中常见的复杂元素,如缩进、制表符、运算符、希腊字母、数学符号以及非 ASCII 字符。该数据集作为 v11 tokenizer 的 round-trip gate 测试基准,用于验证 tokenizer 是否能准确处理这些挑战性输入。创建动机源于早期测试中仅使用普通英语散文样本未能检测到 tokenizer 在真实输入中丢失字符的问题,因此强调基准测试语料库的有效性取决于其最困难的文件。数据布局分为两个目录:prose/ 包含科学、历史、技术和地理领域的文本,code/ 包含 C、Go、Java、JavaScript、Python、Rust 和 TypeScript 的源代码。数据集并非训练数据,因为 v11 tokenizer 的词汇表是基于其他资源构建的,而非通过训练语料库学习。它主要适用于 tokenizer 的基准测试、评估和点检查任务,帮助开发者确保 tokenizer 在多样化文本输入中的鲁棒性和准确性。数据集在 chuk-datasets 目录中注册为 v11/corpus,并通过严格的验证机制确保内容一致性。
The v11 tokenizer gate corpus is a dataset specifically designed for testing and evaluating tokenizer performance. It contains 32 manually assembled text files covering prose and source code, aiming to simulate complex elements commonly found in real text, such as indentation, tabs, operators, Greek letters, mathematical symbols, and non-ASCII characters. This dataset serves as a round-trip gate test benchmark for the v11 tokenizer, verifying whether the tokenizer can accurately handle these challenging inputs. The motivation for its creation stems from early tests where using only ordinary English prose samples failed to detect tokenizer issues with character loss in real inputs, thus emphasizing that the effectiveness of a benchmark corpus depends on its most difficult files. The data layout is divided into two directories: prose/ contains texts from scientific, historical, technical, and geographical fields, while code/ includes source code in C, Go, Java, JavaScript, Python, Rust, and TypeScript. The dataset is not training data, as the v11 tokenizers vocabulary is built from resources like tree-sitter grammars, WordNet, Wikidata, and hand-compiled lists, rather than learned from a training corpus. Therefore, it is primarily suitable for benchmark testing, evaluation, and spot-checking tasks of tokenizers, helping developers ensure robustness and accuracy in diverse text inputs. The dataset is registered as v11/corpus in the chuk-datasets directory and ensures content consistency through strict validation mechanisms.
数据集概述
v11 tokenizer gate corpus 是一个用于评估 tokenizer 性能的基准测试数据集,由 32 个文件组成,包含散文和源代码,旨在测试 tokenizer 在处理真实文本时的表现。
核心信息
- 许可证:Apache-2.0
- 语言:英语
- 标签:tokenizer、评估、往返(round-trip)
内容与结构
数据集包含 32 个手写文件,专门设计用于模拟真实文本中的各种情况,包括:
- 缩进与制表符:测试 tokenizer 对空白字符的处理
- 运算符:涵盖编程语言中的各种符号
- 希腊字母与数学符号:验证对非 ASCII 字符的支持
- 其他非 ASCII 字符:全面测试 tokenizer 的字符处理能力
目录结构分为两类:
prose/ 科学、历史、技术、地理类散文 code/ C、Go、Java、JavaScript、Python、Rust、TypeScript 源代码
用途说明
该数据集的主要用途是作为 v11 tokenizer 的往返(round-trip)测试基准。当前测试结果为:0 个未知 token(UNK),32/32 个文件完全往返成功。
设计背景:此前仅用三份简单英语散文样本进行测试时,虽通过测试,但实际应用中 tokenizer 在真实输入上丢失了 662 个字符——原因是测试样本中从未包含制表符。因此,该语料的构建强调覆盖真实场景中的难点。
质量保障:数据集已注册在 chuk-datasets 目录中(标识符为 v11/corpus),每次 CI 运行都会验证内容一致性,发布时每个文件都通过 sha256 与源树进行校验。
重要说明
该数据集不是训练数据。v11 tokenizer 的词汇表来自 tree-sitter 语法、WordNet、Wikidata 和人工精选列表,并非基于语料训练。此数据集仅作为基准测试和抽查样本使用。




