openclaw-classification-dataset
收藏资源简介:
OpenClaw GitHub兴趣分类数据集是一个专门用于改进OpenClaw平台GitHub拉取请求(PR)和问题(issue)自动分类的小型、可维护数据集。该数据集与通知器运行时分离设计,支持本地编辑、源代码版本控制,并可托管为Hugging Face数据集仓库。数据集的核心是seed.jsonl文件,其中包含标注的GitHub项目实例,每个实例采用JSON格式,包含项目ID、仓库名称、项目类型(github_pr或github_issue)、编号、URL、标题、状态、作者、标签、正文内容、评论、变更文件数量、变更文件列表、差异对比等详细字段。数据集定义了两种关键标注:topics_of_interest表示适用于该PR或issue的有效主题标签(多标签分类),keywords则是解释这些主题适用的具体关键词短语。数据集明确排除了通知路由、编辑兴趣和标注工作流等策略性字段,专注于主题分类任务。数据集还包含主题分类体系文件(topic_keywords.json)、行数据模式定义(row.schema.json)、回归测试集(regression-set.json)以及完整的验证、评估和上下文更新脚本。该数据集适用于多标签文本分类任务,特别是GitHub项目内容的主题自动识别和分类,可用于构建智能通知路由系统的分类器训练和评估。
The OpenClaw GitHub Interest Classification Dataset is a small, maintainable dataset specifically designed to improve automatic classification of GitHub pull requests (PRs) and issues on the OpenClaw platform. It is decoupled from the notifier runtime, supports local editing, source code version control, and can be hosted as a Hugging Face dataset repository. The core of the dataset is the seed.jsonl file, which contains annotated GitHub project instances, each in JSON format with detailed fields such as project ID, repository name, project type (github_pr or github_issue), number, URL, title, status, author, labels, body content, comments, number of changed files, list of changed files, and diff comparisons. The dataset defines two key annotations: topics_of_interest indicates valid topic labels applicable to the PR or issue (multi-label classification), and keywords are specific keyword phrases that explain why these topics apply. It explicitly excludes strategic fields like notification routing, editorial interest, and annotation workflows, focusing on topic classification tasks. The dataset also includes a topic taxonomy file (topic_keywords.json), a row schema definition (row.schema.json), a regression test set (regression-set.json), and comprehensive scripts for validation, evaluation, and context updates. This dataset is suitable for multi-label text classification tasks, particularly for automatic topic identification and classification of GitHub project content, and can be used to train and evaluate classifiers for intelligent notification routing systems.
数据集概述:OpenClaw GitHub Interest Classification Dataset
该数据集用于改进 OpenClaw 项目的 GitHub PR 和 Issue 分类,专注于多标签文本分类任务。
- 许可证:MIT
- 任务类型:文本分类(多标签分类)
- 语言:英文
- 标签:github, openclaw, multi-label-classification, notification-routing
- Hugging Face 地址:https://huggingface.co/datasets/dutifuldev/openclaw-classification-dataset
核心内容
数据集主要标记两类信息:
- topics_of_interest:针对 PR 或 Issue 的有效主题标签。
- keywords:解释为何应用这些主题标签的灵活短语。
文件结构
数据集包含以下核心文件:
- seed.jsonl:主要数据集文件,包含标记好的示例。
- row.schema.json:JSONL 行数据的 JSON Schema。
- topic_keywords.json:有效的主题分类和关键字提示。
- validate.mjs:本地验证脚本(无需外部包)。
- regression-set.json:用于快速回归检查的小型固定集。
- eval.mjs:本地分类器评估脚本。
- hydrate.mjs:用于重新获取 GitHub 正文、评论、变更文件和差异的脚本。
- prompts/:包含所有提示快照、候选提示和提示相关工件的规范文件夹,内附 README 文件说明。
数据行格式
数据集中的每一行(seed.jsonl)是一个 JSON 对象,包含以下字段(示例):
id: 唯一标识符(例如"openclaw-openclaw-77053")repo: 仓库名称(例如"openclaw/openclaw")item_type: 项目类型(例如"github_pr")number: 编号(例如77053)url: GitHub 链接(例如https://github.com/openclaw/openclaw/pull/77053)title: 标题(例如"feat(lmstudio): opt-in idle TTL via native load API")state: 状态(例如"MERGED")author: 作者(例如"example-user")labels: 标签列表(例如[])body: 正文内容comments: 评论列表changed_file_count: 变更文件数量changed_files: 变更文件路径列表diff: 差异内容context_caveats: 上下文注意事项列表keywords: 关键字列表(例如["lmstudio", "idle ttl", "native load api", "vram"])topics_of_interest: 感兴趣的主题列表(例如["local_models", "config"])
维护流程
- 在
seed.jsonl中添加或编辑行。 - 使用
keywords字段存储解释标签的具体短语。 - 优先为常见误报情况添加明确的负面示例。
- 在将新主题用于
seed.jsonl之前,先在topic_keywords.json中添加该主题。 - 运行验证脚本:
node /home/bob/oc/openclaw-classification-dataset/validate.mjs - 运行快速回归检查:
node /home/bob/oc/openclaw-classification-dataset/eval.mjs --sample regression --output /tmp/openclaw-classifier-regression.json - 运行分层样本评估:
node /home/bob/oc/openclaw-classification-dataset/eval.mjs --sample stratified --limit 80 --output /tmp/openclaw-classifier-sample.json - 评估脚本会报告主题精确匹配、微观精确率、微观召回率、微观 F1、最弱主题和最大遗漏项。
- 如需刷新 GitHub 上下文字段,运行:
node /home/bob/oc/openclaw-classification-dataset/hydrate.mjs
使用方式
数据集 JSONL 文件可直接用于 load_dataset("json", data_files="seed.jsonl")。
此外,数据集中还发布了提示来源,相关文件包括:
prompts/README.mdprompts/localpager-openclaw-routing-v8-production.prompt.mdprompts/2026-05-30-ds4-runtime-template-placeholder.mdprompts/2026-05-30-ds4-runtime-rendered-row-0001.mdprompts/2026-05-30-ds4-runtime-rendered-prompts.jsonlscripts/generate_deepseek_localagent_dataset.mjs
运行时模板快照通过运行 scripts/generate_deepseek_localagent_dataset.mjs 生成,用于展示生成器实际发出的提示形状。




