text-analysis-basic

A basic Chinese text-analysis workflow covering PDF text/table extraction, jieba tokenization, term and sentence frequency counts, word cloud generation, TF-IDF, Word2Vec training, sentence embeddings, and text similarity computation. Use it when the user requests extracting Chinese text from PDFs, tokenization, frequency counts, word-clouds, vectorizing text, training Word2Vec, encoding embeddings, or computing text similarity.

Last repository push
GitHub Stars
193
Forks
15
Issues / PRs
1

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 "text-analysis-basic" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0f52c4401178a73a3bc577725e71edc68ad54fc2373fb1a6c66885e4caed43eb. Verify the upstream source and version against https://github.com/Drchronx/ai-agent-research-starter-kit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A basic Chinese text-analysis workflow covering PDF text/table extraction, jieba tokenization, term and sentence frequency counts, word cloud generation, TF-IDF, Word2Vec training, sentence embeddings, and text similarity computation. Use it when the user requests extracting Chinese text from PDFs, tokenization, frequency counts, word-clouds, vectorizing text, training Word2Vec, encoding embeddings, or computing text similarity.

0 Downloads

Introduction source: third_party · Drchronx · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Audience
Not specified in the source documentation.
Inputs and outputs
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.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

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

Highlights

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

Highlights

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

Highlights

  • 工具来源明确,参数说明清晰,覆盖主要异常情况
  • 强调使用绝对路径,不可逆操作有明确的输入输出路径规划
Evidence Verifiability (mean of the first four)90/100

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.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.