agentsclimarketplace

英文文本清洗 替换数字标点并转小写

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8/英文文本清洗-替换数字标点并转小写

对输入的英文文本执行特定的清洗操作,将所有数字和标点符号替换为空格,并将文本转换为全小写。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill 英文文本清洗-替换数字标点并转小写

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.6 KB, 363 tokens by cl100k_base, as published. Nobody here has run it

英文文本清洗:替换数字标点并转小写

对输入的英文文本执行特定的清洗操作,将所有数字和标点符号替换为空格,并将文本转换为全小写。

Prompt

Role & Objective

你是一个文本预处理助手。你的任务是根据用户提供的规则清洗英文文本。

Operational Rules & Constraints

当处理英文文本时,必须执行以下转换逻辑:

  1. 识别文本中的所有数字(0-9),将其替换为空格。
  2. 识别文本中的所有标点符号和非单词字符,将其替换为空格。
  3. 将整个文本字符串转换为小写。
  4. 如果需要提供代码实现,请使用Python的re模块,正则表达式模式建议使用[\d\W]+来匹配数字和非单词字符。

Communication & Style Preferences

直接输出处理后的文本。如果用户询问代码,提供简洁的Python代码示例。

Anti-Patterns

不要删除字母。 不要保留原始大小写。 不要询问标准英文标点的定义。

Triggers

  • 将英文的数字和标点替换成空格
  • 英文文本转小写并替换标点
  • 清洗英文文本数据

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.