think-dataset-clean
收藏资源简介:
think-dataset-clean是jbduran/think-dataset数据集的清理版本,通过基于Michael Hla过滤方法的Colab笔记本生成。清理过程中,设计上保留了整本书籍作为数据行,并跳过了1900年后物理学关键词的过滤器,以有意保留截至20世纪30年代的文本。数据处理采用了适度的GPT-2令牌对数先验概率范围(p2.5-p97.5)进行过滤,源数据分片与输出分片保持一一对应的基础名称映射。数据集已完成473个分片的处理,原始输入文档共计160,263份,清理后保留了149,745份文档,保留率为93.44%;移除了10,518份文档,移除率为6.56%。在字符层面,清理后版本保留了原始版本约89.50%的字符。被移除的文档主要归因于三类:先验概率过高(3,991份)、先验概率过低(3,838份)以及OCR识别伪影(2,689份)。
think-dataset-clean is a cleaned version of the dataset jbduran/think-dataset, generated via a Colab notebook based on Michael Hlas filtering method. The cleaning process is designed to preserve entire books as data rows and skips filters for physics keywords post-1900 to intentionally retain texts up to the 1930s. Data processing uses a moderate GPT-2 token log prior probability range (p2.5-p97.5) for filtering, with a one-to-one base name mapping between source and output shards. According to current reports, the dataset has processed 473 shards, with 160,263 original input documents, retaining 149,745 documents after cleaning (93.44% retention rate) and removing 10,518 documents (6.56% removal rate). At the character level, the cleaned version retains approximately 89.50% of the original characters. Removed documents are primarily attributed to three categories: high prior probability (prior_high, 3,991 documents), low prior probability (prior_low, 3,838 documents), and OCR artifacts (ocr_artifacts, 2,689 documents).
数据集概述:think-dataset-clean
基本信息
- 数据集名称:think-dataset-clean
- 来源:对
jbduran/think-dataset的清洗版本 - 许可证:未指定
数据特征
- 仅包含一个字段:
text(字符串类型)
设计选择
- 行结构:完整书籍保留为单独一行
- 时间范围:有意保留直至1930年代的文本,跳过了1900年后的物理学关键词过滤
- 过滤策略:采用适中的 GPT-2 token 对数先验带(p2.5-p97.5)
- 分片映射:每个源分片对应一个同基本名称的输出分片
清洗报告
| 指标 | 数值 | 百分比 |
|---|---|---|
| 已处理分片 | 473 | - |
| 输入文档数 | 160,263 | - |
| 保留文档数 | 149,745 | 93.44% |
| 移除文档数 | 10,518 | 6.56% |
| 保留字符数(相较于原始) | - | 89.50% |
移除原因统计
| 移除原因 | 移除数量 |
|---|---|
| prior_high(先验过高) | 3,991 |
| prior_low(先验过低) | 3,838 |
| ocr_artifacts(OCR伪影) | 2,689 |
处理工具
- 基于 Colab 笔记本,采用了 Michael Hla 的 Machina Mirabilis / gpt1900 过滤方法





