Token导航 LogoToken导航TokenDH.com
开发只读clawhub未标认证来源可访问clear审计通过

chinese-nlp-toolkit中文 NLP 工具包

Agent Skill

chinese-nlp-toolkit 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,088

周安装

462

GitHub Stars

公开资料未说明

下载量

3,696
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chinese-nlp-toolkit(中文 NLP 工具包)
来源仓库:https://github.com/371166758-qq/chinese-nlp-toolkit
安装命令:
openclaw skills install chinese-nlp-toolkit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install chinese-nlp-toolkit

简介

专注于中文文本处理的 NLP 工具集,涵盖分词、情感分析与摘要提取。

  • 提供加霸分词、关键词抽取与语气检测等工业化级文本分析能力。
  • 可直接集成至开发流程,提升中文内容理解与自动化处理效率。
  • 依赖本地模型运行,性能受设备算力影响较大需优化资源配置。
  • 敏感信息处理时请做好脱敏措施,防止隐私泄露风险。

SKILL.md

name
Chinese NLP Toolkit
description
Specialized natural language processing for Chinese text. Covers segmentation (jiaba), sentiment analysis, keyword extraction, text summarization, tone detection, readability scoring, and format conversion (simplified/traditional, pinyin annotation). Use when processing, analyzing, or transforming Chinese text content.

Chinese NLP Toolkit

Process and analyze Chinese text with specialized NLP capabilities.

Core Capabilities

1. Text Segmentation (分词)

Chinese has no word boundaries. Segmentation is the foundation of all Chinese NLP.

Approach: Use rule-based heuristics when no library is available:

  • Dictionary matching (maximum forward/backward matching)
  • Context-aware: "南京市长江大桥" → ["南京市", "长江大桥"] not ["南京", "市长", "江大桥"]
  • Domain-specific terms should be added as custom dictionary entries

Common Ambiguities:

TextWrong SplitCorrect Split
雨伞雨/伞雨伞 (compound)
结婚的和尚未结婚的结婚/的/和尚/未/结婚/的结婚/的/和/尚未/结婚/的
项目部项目/部项目部 (compound)

2. Sentiment Analysis (情感分析)

Beyond positive/negative — Chinese sentiment is nuanced:

Intensity levels: 强烈负面 < 偏负面 < 中性 < 偏正面 < 强烈正面

Chinese-specific signals:

  • Rhetorical questions often indicate negative sentiment: "这也算好?"
  • Sarcasm markers: "呵呵", "厉害了", "也是醉了", "你开心就好"
  • Intensifiers: "非常", "特别", "简直了", "超级"
  • Diminishers: "还行吧", "马马虎虎", "凑合"

Emoji contribution (critical for social media):

  • 😊👍❤️ = positive amplification
  • 😤👎💔 = negative amplification
  • 🙄🙄🙄 = sarcasm/disdain (intensity scales with repetition)

3. Keyword Extraction (关键词提取)

For Chinese text, prioritize:

  • Noun phrases (名词短语)
  • Domain-specific terminology
  • Named entities (人名、地名、机构名)

Method: TF-IDF adapted for Chinese + positional weighting (first/last sentences carry more weight in Chinese writing).

4. Text Summarization (文本摘要)

Chinese-specific rules:

  • Summarize to 20-30% of original length
  • Preserve key numbers, names, and claims
  • Chinese articles often "bury the lead" — the conclusion may be more important than the introduction
  • Extract key sentences using positional + keyword scoring

5. Readability Scoring (可读性评分)

Rate Chinese text on a 1-10 scale considering:

  • Average sentence length (characters per sentence)
  • Vocabulary difficulty (HSK level estimate)
  • Clause density ( commas per sentence)
  • Use of classical Chinese elements
  • Technical jargon density
ScoreLevelTarget Audience
1-3EasyGeneral public
4-6ModerateEducated readers
7-8HardDomain experts
9-10Very HardAcademic specialists

6. Format Conversion

ConversionExample
Simplified → Traditional体验 → 體驗
Traditional → Simplified體驗 → 体验
Chinese → Pinyin你好 → nǐ hǎo
Chinese → Zhuyin你好 → ㄋㄧˇ ㄏㄠˇ

Workflow

When Processing Chinese Text:

  1. Detect variant: Simplified (简体) or Traditional (繁体)?
  2. Segment: Break into meaningful units
  3. Analyze: Apply the requested analysis type(s)
  4. Report: Present results with Chinese annotations

Output Format

原文:[original text]
分词:[segmented text with / separators]
关键词:[top 5-10 keywords with relevance scores]
情感:[sentiment label + confidence + key signals]
摘要:[summarized text]
可读性:[score/10 + brief explanation]

Edge Cases

  • Mixed-language text: Handle code-switching naturally ("这个bug太坑了") — don't force Chinese segmentation on English words
  • Internet slang: Recognize common abbreviations (yyds, xswl, nbcs, awsl) and expand for formal analysis
  • Poetry/classical Chinese: Flag as special case — modern NLP rules don't apply; use classical grammar patterns
  • Dialectal text: Flag non-Mandarin text (Cantonese, Shanghainese written forms) — analysis may be unreliable
  • Zero-width characters: Chinese text sometimes contains invisible characters (U+200B, U+FEFF) that affect processing

Common Tasks & Prompts

  • "Analyze the sentiment of this Chinese review"
  • "Extract keywords from this article"
  • "Summarize this Chinese news article in 100 characters"
  • "Rate the readability of this document"
  • "Convert this to Traditional Chinese with pinyin annotation"
  • "Segment this Chinese text and identify named entities"

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.06%
按下载量换算2,848

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills