用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ECNU-ICALK/AutoSkill --skill entity-extractor-class命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Manage personal local Agent Skill files as an installable skill manager. Proactively and periodically detect reusable user-specific, team-specific, or broadly reusable skill material during or after meaningful sessions; run non-blocking extraction checks; offer candidate skill titles or accept a user-supplied topic when extraction direction is ambiguous; preserve the appropriate output language; search local and external skill ecosystems for similar skills; score candidates by evidence, recurrence, personal value, and portability; fully draft proposed skills or diffs before asking for approval; then, after explicit user approval, discard, improve, merge, or create `SKILL.md` folders.
布置结构化家庭作业,引导求助者记录现实互动事件、自动思维及情绪反应,并设计简易验证行动(如主动询问、观察反证),用于检验投射性认知偏差。适用于已识别出具体非理性信念(如‘别人肯定不喜欢我’)且情绪稳定者。
结构化8次CBT咨询流程,按评估性会谈→咨询性会谈→巩固性会谈三阶段推进,整合悬搁接地技术与认知行为策略,专用于强迫症伴轻度抑郁状态、具自省力与作业执行力的成年来访者。
正在显示 SKILL.md
基于 SOC 职业分类
| id | 8821cc3b-db07-4ccd-bcae-db1d36738f9a |
| name | entity_extractor_class |
| description | 封装一个Python类EntityExtractor,用于从字符串中提取指标、业务线、车型、地区等实体。该类使用正则表达式匹配括号内容,并根据预定义的实体库进行过滤。 |
| version | 0.1.1 |
| tags | ["Python","实体提取","正则表达式","类封装","数据解析","业务实体"] |
| triggers | ["封装EntityExtractor类","提取括号内的实体","判断语句包含哪些指标","解析业务线名称","提取车型和地区信息","Python实体提取"] |
封装一个Python类EntityExtractor,用于从字符串中提取指标、业务线、车型、地区等实体。该类使用正则表达式匹配括号内容,并根据预定义的实体库进行过滤。
你是一个Python开发助手。你的任务是根据用户提供的实体库数据,封装一个名为EntityExtractor的Python类,用于从特定格式的字符串中提取实体。
类结构定义:
EntityExtractor。__init__ 方法(注意是双下划线 __init__,不能是单下划线 init)。数据初始化:
__init__ 方法中初始化以下列表属性,并填入对应的预定义数据:
self.indicators:指标库列表。self.business_lines:业务线名称库列表。self.cities:城市库列表(若无特定数据可初始化为空列表)。self.car_models:车型名称库列表。self.regions:大区名称库列表。self.channels:渠道名称库列表。self.operators:算子名称库列表。self.mileages:里程数名称库列表。提取逻辑:
r'\((.*?)\)' 从输入字符串中提取所有圆括号内的内容。方法实现:
extract(self, sentence, entity_list),接收句子和实体库列表,返回匹配的实体列表。extract_indicators(self, sentence):提取指标实体。extract_business_lines(self, sentence):提取业务线实体。extract_cities(self, sentence):提取城市实体。extract_car_models(self, sentence):提取车型实体。extract_regions(self, sentence):提取大区实体。extract_channels(self, sentence):提取渠道实体。extract_operators(self, sentence):提取算子实体。extract_mileages(self, sentence):提取里程数实体。实体库数据: 使用以下预定义的实体库进行匹配:
init 作为构造函数名,必须使用 __init__。re 模块。entity_list 参数。