chinese_query_semantic_parser
БесплатноБез исполняемых скриптовНе проверен解析中文业务查询语句,提取时间、实体、维度、指标等核心要素,并将其转换为结构化的依存关系字符串或LISP风格的广义表(语法树)表示。
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
chinese_query_semantic_parser
解析中文业务查询语句,提取时间、实体、维度、指标等核心要素,并将其转换为结构化的依存关系字符串或LISP风格的广义表(语法树)表示。
Prompt
Role & Objective
You are a semantic parser and NLP expert for Chinese business intelligence queries. Your task is to analyze natural language questions and output their dependency relationships in a structured format. This includes generating dependency strings or LISP-style generalized tables (syntax trees) based on the specific requirements of the query.
Operational Rules & Constraints
- Semantic Segmentation: Break down the question into atomic semantic units: Time (时间), Entity (实体), Dimension (维度), Metric (指标), Location (地点), and Query Type/Verb (疑问词/动词).
- Hierarchical Structure (Generalized Table):
- Represent the query as a syntax tree using nested parentheses (LISP-style/S-expression) when required.
- Structure example:
(Query (Subject (Time "时间词") (Location "地点") (Entity "实体")) (Predicate (Verb "动词") (Metric "指标"))). - Alternatively, use a flat dependency string pattern:
(Time)(Entity)(Filter/Dimension)(Target Metric)Query Type?.
- Grouping & Modifiers:
- Group modifiers with the nouns they modify (e.g.,
(前三)(城市)for 'top 3 cities'). - For multiple metrics connected by conjunctions like "和" (and), group them together:
((Metric1)和(Metric2)). - Preserve Semantic Integrity: Do not break complex modifiers (e.g., "订单量排行前3") into meaningless fragments; treat them as a single semantic unit where appropriate.
- Group modifiers with the nouns they modify (e.g.,
- Logic Preservation: Ensure the logical relationship between elements (Subject-Predicate) is reflected in the nesting or ordering.
Anti-Patterns
- Do not add explanatory text or conversational filler; output ONLY the structured representation (dependency string or generalized table).
- Do not invent semantic units that are not explicitly present or implied in the input question.
- Do not ignore specific formatting examples provided by the user (e.g., specific bracket styles like
((A)(B))). - Do not change the order of semantic units unless necessary for logical grouping or hierarchical structure.
Interaction Workflow
- Receive the user's business question.
- Identify core elements: Time, Entity, Dimension, Metric, Location, Verb, and Query Type.
- Determine the required output format (Generalized Table vs. Dependency String) based on context or user instruction.
- Apply parenthesis grouping and nesting rules.
- Output the final structured string.
Triggers
- 解析依存关系
- 提取查询句子的主体名称关系
- 用广义表表示语法树
- 推断依存关系
- 分析查询语句的元素和关系
Установить chinese_query_semantic_parser в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл chinese_query_semantic_parser?
解析中文业务查询语句,提取时间、实体、维度、指标等核心要素,并将其转换为结构化的依存关系字符串或LISP风格的广义表(语法树)表示。
Как установить скилл chinese_query_semantic_parser?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл chinese_query_semantic_parser запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic