text-analysis-basic

用于中文基础文本分析的工作流,覆盖从 PDF 提取文本/表格、jieba 分词、词频与句频统计、词云生成、TF-IDF、Word2Vec 训练、句子嵌入到文本相似度计算。当用户请求从 PDF 提取中文文本、分词、统计词项或句子频率、生成词云、向量化文本、训练 Word2Vec、编码嵌入向量或计算文本相似度时使用。

仓库最近推送
GitHub Stars
193
Forks
15
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "text-analysis-basic":https://skillpi.com/zh/skills/deepskill-0f52c4401178a73a3bc577725e71edc68ad54fc2373fb1a6c66885e4caed43eb。安装前核对上游来源和版本:https://github.com/Drchronx/ai-agent-research-starter-kit。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于中文基础文本分析的工作流,覆盖从 PDF 提取文本/表格、jieba 分词、词频与句频统计、词云生成、TF-IDF、Word2Vec 训练、句子嵌入到文本相似度计算。当用户请求从 PDF 提取中文文本、分词、统计词项或句子频率、生成词云、向量化文本、训练 Word2Vec、编码嵌入向量或计算文本相似度时使用。

0 下载

介绍来源: third_party · Drchronx · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
翻译待完成,请参阅来源文档。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: text-analysis-basic
description: Basic Chinese NLP and text analysis workflows for PDF text/table extraction, jieba tokenization, word and sentence frequency, word clouds, TF-IDF, Word2Vec, sentence embeddings, and text similarity. Use when a user asks Codex to extract text from PDFs, segment Chinese text, count terms or sentences, create word clouds, vectorize text, train Word2Vec, encode embeddings, or compute text similarity from files or short inputs.

Text Analysis Basic

Operating Rule

Use this skill as a command-line workflow, not as a code-writing prompt.

  1. Decide whether the user's request is covered by the capabilities below.
  2. If it is not covered, state that the skill cannot solve it and identify the missing capability.
  3. If it is covered, write a short plan before running commands. The plan must list:
    • Which capability will be used.
    • Which reference file will be followed.
    • Which script will be called.
    • Required inputs, parameters, and output paths.
  4. Ask only for missing data paths or parameters that cannot be inferred safely.
  5. Execute the relevant script with command-line arguments. Do not write one-off Python code for the operation.

Use absolute paths when passing files to scripts.

Capability Map

  • PDF text extraction or PDF table extraction: read references/pdf-extraction.md, then call scripts/pdf_extract.py.
  • jieba segmentation or custom dictionary segmentation: read references/jieba-tokenization.md, then call scripts/jieba_tokenize.py.
  • Word frequency or sentence frequency: read references/frequency.md, then call scripts/frequencies.py.
  • Word cloud image generation: read references/wordcloud.md, then call scripts/wordcloud_generate.py.
  • TF-IDF matrix or keyword features: read references/tfidf.md, then call scripts/vectorize.py --method tfidf.
  • Word2Vec training or word vectors: read references/word2vec.md, then call scripts/vectorize.py --method word2vec.
  • Sentence embedding: read references/embedding.md, then call scripts/vectorize.py --method embedding.
  • Text similarity: read references/similarity.md, then call scripts/similarity.py.

Input Expectations

Supported inputs are:

  • .txt: one document or one document per line.
  • .csv: requires --text-column unless the file has a clear text column.
  • .xlsx: requires --text-column.
  • .pdf: only for pdf_extract.py.

If the user provides a CSV/XLSX path without a text column, inspect the header and ask the user to choose the column when ambiguous.

Course Context

This skill follows the current course notebooks for text preprocessing, vectorization, and similarity:

  • PDF extraction, OCR context, and jieba segmentation.
  • Word/sentence frequency, word clouds, TF-IDF, Word2Vec, and embeddings.
  • Cosine, Jaccard, TF-IDF, Word2Vec, and sentence embedding similarity.

The scripts are the source of truth for repeatable execution.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 覆盖 PDF 文本/表格提取、jieba 分词、词频统计、词云生成、TF-IDF、Word2Vec、句子嵌入及文本相似度计算等多个实用场景
  • 满足中文自然语言处理的基础需求,受众广泛,实用性强
触发精准90/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰
  • 详细列出了适用场景和具体使用时机,减少误触/漏触风险
结构规范95/100

亮点

  • 结构清晰,包含 Operating Rule、Capability Map、Input Expectations、Course Context 等章节
  • 步骤划分明确,有出口条件,含端到端示例,frontmatter 完整
执行可靠90/100

亮点

  • 工具来源明确,参数说明清晰,覆盖主要异常情况
  • 强调使用绝对路径,不可逆操作有明确的输入输出路径规划
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。