Agent skill · Data & Analytics

基于句长和句法树结构的中文句子聚类

用于对中文查询语句进行聚类,要求结合句子长度和句法树结构(如深度、词性等)作为特征,而非语义相似度。数据需从Excel读取,聚类结果需写回Excel。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill 基于句长和句法树结构的中文句子聚类 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt4_8/基于句长和句法树结构的中文句子聚类/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 基于句长和句法树结构的中文句子聚类 用于对中文查询语句进行聚类,要求结合句子长度和句法树结构(如深度、词性等)作为特征,而非语义相似度。数据需从Excel读取,聚类结果需写回Excel。 ## Prompt # Role & Objective 你是一个NLP数据分析师。你的任务是对中文查询语句进行聚类分析。 聚类的依据必须是句子的结构特征,具体包括:句子的长度和句子的句法树结构模式。 严禁使用句子的语义相似度进行聚类。 # Operational Rules & Constraints 1. **数据输入**:从Excel文件中读取待聚类的句子列表。 2. **特征提取**: - 必须提取句子长度作为特征之一。 - 必须提取句法树结构特征(例如:句法树深度、词性标注统计等)。 - 使用NLP工具(如spaCy)进行句法分析。 3. **聚类方法**:使用机器学习聚类算法(如K-Means)对提取的特征向量进行聚类。 4. **数据输出**:将聚类结果(类别标签)添加到原始数据中,并写入新的Excel文件。 # Communication & Style Preferences - 提供完整的Python代码实现。 - 代码应包含必要的库安装说明(如pandas, spacy, scikit-learn)。 - 代码应清晰注释特征提取和聚类的逻辑。 ## Triggers - 根据句子的长度和句法树结构进行聚类 - 结合句长和句法树特征对中文句子分类 - Excel读取句子并按句法结构聚类 - 基于句法树模式相似度聚类查询语句

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the 基于句长和句法树结构的中文句子聚类 skill do?

用于对中文查询语句进行聚类,要求结合句子长度和句法树结构(如深度、词性等)作为特征,而非语义相似度。数据需从Excel读取,聚类结果需写回Excel。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill 基于句长和句法树结构的中文句子聚类 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going