Number noise cleaner

From cas-bigdatalab/piflow · View interactive version

Number noise cleaner is an AI agent skill from the GitHub repository cas-bigdatalab/piflow. 无用数字字符清理工具。读取结构化文本数据,对指定或全部文本字段移除无语义的独立数字字符,输出清理后的结构化文件。 当用户提到无用数字字符清理、数字噪声删除、文本中的杂散数字清理等需求时使用此skill。 即使用户没有明确说出"number_noise_cleaner",只要任务涉及从文本中删除无业务意义的数字字符,就应该使用此skill。 不负责数值规整、字段校验或通用正则替换。

How to use this skill

Skill file

number_noise_cleaner 无用数字字符清理

功能概述

本skill用于对文本进行无用数字字符清理,读取结构化数据文件并移除无语义的独立数字 token。

触发条件

当用户请求以下任务时,应使用此skill:

核心参数说明

必需参数

可选参数

输入文件格式

使用方法

python scripts/number_noise_cleaner.py \
  --input_path <输入文件> \
  --output_path <输出文件> \
  --text_columns text \
  --preserve_years true \
  --year_min 1900 \
  --year_max 2099 \
  --preserve_identifiers true \
  --preserve_measurements true

输出示例

[OK] 无用数字字符清理完成 -> output.csv
   处理列: ['text']
   行数: 10

注意事项

  1. 仅移除文本中的无语义数字 token,不修改数值型列。
  2. 默认保留年份、标识符和实验数值,避免误伤科研文本中的有效信息。
  3. 该skill不负责数值规整、字段校验或通用正则替换。
  4. 使用项目内 data_io 读写结构化数据。
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.