segmentit-cn-tags
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "segmentit-cn-tags" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8a1da0ed633ef69f18394bc7441ab1637c904a3b2dcb7c864a992ca0c6e2f39a. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/ifz20263580 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A browser-based tool that uses Segmentit to segment Chinese follow-up notes or annotations and produce tags and search terms. Suitable for scenarios requiring Chinese tokenization, Segmentit processing, local labeling of segments, and extraction of follow-up keywords.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: segmentit-cn-tags
slug: ifz20263580
displayName: 中文分词
version: 1.0.0
summary: 用 segmentit 本地中文分词,辅助跟进标签与检索关键词。
license: MIT
description: 用 segmentit 在浏览器内对中文跟进/备注分词,生成标签与检索词。当用户需要中文分词、segmentit、本地分词打标、跟进关键词提取时使用。中文分词(segmentit)
灵感:能力工具箱 cn-segment(pkg: segmentit)。
对跟进笔记、客户备注做本地中文分词,抽出可用于标签与搜索的词,不请求后端分词服务。
何时使用
- 跟进文本自动打业务标签
- 本地检索前生成关键词
- 需要浏览器内轻量分词
硬约束
- 依赖
segmentit(或项目可安装的兼容中文分词包,API 以文档为准)。 - 分词在本地完成;可挂自定义词典(公司名、产品名)。
- 输出去停用词后的词列表;空文本返回空数组。
- 不把原文上传第三方分词 API(本 Skill 范围)。
- 实现要点可标 小四原创。
实现要点(小四原创)
import { Segment, useDefault } from 'segmentit'
// 小四原创:跟进文本 → 标签词
const seg = useDefault(new Segment())
const STOP = new Set(['的', '了', '和', '是', '在', '我', '有', '就', '不', '人', '都', '一', '一个'])
export function wordsForTags(text: string, limit = 12): string[] {
const raw = String(text || '').trim()
if (!raw) return []
const parts = seg.doSegment(raw).map((x: { w: string }) => x.w)
const out: string[] = []
for (const w of parts) {
if (w.length < 2 || STOP.has(w)) continue
if (!out.includes(w)) out.push(w)
if (out.length >= limit) break
}
return out
}
若
segmentitAPI 随版本变化,保持「本地分词 + 去停用词 + 限长」语义即可。
Agent 步骤
- 安装并封装
wordsForTags;可加业务词典。 - 跟进保存时生成标签建议,供用户确认。
- 自测:含公司名/产品名的句子能切出有用词。
附加
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供中文分词能力,适用于跟进文本自动打标、本地检索关键词生成等明确业务场景
- 本地执行不依赖外部API,符合隐私与效率需求
Highlights
- 触发词覆盖合理,明确列出中文分词、segmentit、本地分词打标等关键词
- 适用场景描述清晰,边界明确
Areas to improve
-
文档长度接近上限 Reported severity: Minor
文档约120行,虽未超500行限制但建议精简以提升可读性
Recommendation: 可考虑将部分实现细节移至引用文件,保持主文档简洁
Highlights
- 结构完整,包含何时使用、硬约束、实现要点、Agent 步骤等必要章节
- 提供端到端代码示例和自测指引
Areas to improve
-
异常处理覆盖不足 Reported severity: Minor
未显式处理 segmentit 初始化失败等异常场景
Recommendation: 建议增加 try-catch 包装和降级处理逻辑
Highlights
- 依赖管理明确,参数处理合理
- 覆盖空文本等边界情况,有去停用词和限长机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.