big-data-labeling-variable-construction
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "big-data-labeling-variable-construction":https://skillpi.com/zh/skills/deepskill-19c4b2412864b15c5406e3b686462c117b7b750e900f3c2b66a53164a9fb45eb。安装前核对上游来源和版本:https://github.com/Drchronx/ai-agent-research-starter-kit。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
将文本标注任务路由到 LDA 主题建模、sklearn 基线模型、预训练 Transformer 模型及兼容 OpenAI 的大模型标注的工作流。工作流会先自动检查数据集并推断列名与默认设置,随后等待用户确认后再执行标注。
介绍来源: third_party · Drchronx · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: big-data-labeling-variable-construction
description: Route text-labeling requests across LDA topic modeling, sklearn baselines, pretrained transformer models, and OpenAI-compatible LLM labeling. First inspect the dataset and infer columns/defaults automatically, then wait for explicit user confirmation before execution.Big Data Labeling Workflow
Use this skill from F:\Python\课程\OpenClaw\cnki\skills\big-data-labeling-variable-construction.
Mandatory interaction pattern
- First recommend one technical route.
- After the user uploads or points to the dataset, inspect the first 10 rows automatically.
- Infer what you can by yourself:
- text column
- label column
- document id column
- default train/test split
- default epoch
- default batch size
- Show the inferred plan back to the user.
- Do not run any actual labeling, training, or API calls yet.
- Only after the user explicitly replies with
确认无误,请执行, run the chosen script.
What the user usually does not need to provide
These should be inferred or defaulted whenever possible:
- 文本列名
- 标签列名
- 文档ID列名
- epoch
- batch size
- 训练集/测试集比例
What the user still needs to provide when the skill cannot infer it
LDA主题建模- usually only the dataset path
sklearn常见机器学习方法- usually only the dataset path
预训练模型- dataset path
- model name
调用大语言模型标注数据- dataset path
- label set
base_urlapi_key- model name
Recommended flow
Step 1: Recommend a route
python scripts/labeling_workflow.py --task-description "我有中文文本,已有标签,想先做一个轻量分类基线" --label-status labeled --output-dir reports/labeling-workflow-demo
Step 2: Prepare a confirmation plan from the dataset
python scripts/prepare_labeling_plan.py assets/sample_labeled_text_dataset.csv --category sklearn --output-dir reports/labeling-plan-demo
This script should be used before real execution. It inspects the first 10 rows, infers likely columns, fills default parameters, and writes labeling_plan.json.
Step 3: Wait for user confirmation
You must wait for this exact confirmation before execution:
确认无误,请执行
Step 4: Run the actual method script
Pretrained-model environment check
Before running BERT/ERNIE, first check whether torch and transformers are installed:
python scripts/check_pretrained_env.py
If dependencies are missing, guide the user to the official PyTorch pages instead of hardcoding one install command:
- PyTorch 官网: https://pytorch.org/
- 官方安装页: https://pytorch.org/get-started/locally/
Recommended interaction:
- Tell the user whether
torch/transformersare installed. - If missing, ask the user to install them from the official PyTorch install page.
- If the machine has NVIDIA GPU, remind the user to choose the matching CUDA build.
- Ask the user to reply
依赖已安装before retrying the pretrained route.
Script list
1. LDA主题建模
python scripts/lda_topic_model.py assets/sample_topic_corpus.csv --text-col text --id-col doc_id --topic-range 2-10 --output-dir reports/lda-demo
2. sklearn常见机器学习方法
python scripts/sklearn_svm_labeling.py assets/sample_labeled_text_dataset.csv --text-col text --label-col label --output-dir reports/sklearn-svm-demo
python scripts/sklearn_knn_labeling.py assets/sample_labeled_text_dataset.csv --text-col text --label-col label --output-dir reports/sklearn-knn-demo
python scripts/sklearn_random_forest_labeling.py assets/sample_labeled_text_dataset.csv --text-col text --label-col label --output-dir reports/sklearn-rf-demo
python scripts/sklearn_sgd_labeling.py assets/sample_labeled_text_dataset.csv --text-col text --label-col label --output-dir reports/sklearn-sgd-demo
3. 预训练模型
python scripts/bert_labeling.py assets/sample_labeled_text_dataset.csv --text-col text --label-col label --model-name bert-base-chinese --output-dir reports/bert-demo
python scripts/ernie_labeling.py assets/sample_labeled_text_dataset.csv --text-col text --label-col label --model-name nghuyong/ernie-3.0-base-zh --output-dir reports/ernie-demo
4. 调用大语言模型标注数据
python scripts/openai_llm_labeling.py assets/sample_text_dataset.csv --text-col text --labels 创新,风险,政策 --base-url https://api.openai.com/v1 --api-key YOUR_KEY --model gpt-4.1-mini --output-dir reports/openai-labeling-demo
Install dependencies
python -m pip install -r scripts/requirements.txt当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 支持多模型路由(LDA/sklearn/预训练模型/LLM)
- 自动推断列名与默认参数
- 具备用户确认机制防止误执行
亮点
- description 精准描述多模型路由能力
亮点
- 流程步骤清晰完整
- 含端到端脚本调用示例
亮点
- 预训练模型依赖检查机制
- 官方 PyTorch 安装引导
- 关键操作需显式确认
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 129 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 49, 123 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- api.openai.com
- pytorch.org
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。