Hugging Face Tokenizers
Orchestra-Research/AI-Research-SKILLs
Shows how to load, train and use fast Hugging Face tokenizers, with BPE, WordPiece and Unigram models, padding, truncation and alignment tracking.
Apply NLP and text mining techniques to research text data. An agent skill from wentorai/research-plugins.
$ npx skills add wentorai/research-plugins --skill text-mining-guide -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install wentorai/research-plugins text-mining-guide --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/analysis/wrangling/text-mining-guide .claude/skills/text-mining-guide && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "text-mining-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/wrangling/text-mining-guide into .claude/skills/text-mining-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "text-mining-guide", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/wentorai/research-plugins/tree/main/skills/analysis/wrangling/text-mining-guideType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add wentorai/research-plugins --skill text-mining-guide -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install wentorai/research-plugins text-mining-guide --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/analysis/wrangling/text-mining-guide .agents/skills/text-mining-guide && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "text-mining-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/wrangling/text-mining-guide into .agents/skills/text-mining-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "text-mining-guide", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill text-mining-guide -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install wentorai/research-plugins text-mining-guide --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/analysis/wrangling/text-mining-guide .cursor/skills/text-mining-guide && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "text-mining-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/wrangling/text-mining-guide into .cursor/skills/text-mining-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "text-mining-guide", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/wentorai/research-plugins.git --path skills/analysis/wrangling/text-mining-guide--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add wentorai/research-plugins --skill text-mining-guide -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install wentorai/research-plugins text-mining-guide --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/analysis/wrangling/text-mining-guide .gemini/skills/text-mining-guide && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "text-mining-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/wrangling/text-mining-guide into .gemini/skills/text-mining-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "text-mining-guide", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install wentorai/research-plugins text-mining-guideInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add wentorai/research-plugins --skill text-mining-guide -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/analysis/wrangling/text-mining-guide .github/skills/text-mining-guide && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "text-mining-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/wrangling/text-mining-guide into .github/skills/text-mining-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "text-mining-guide", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wentorai/research-plugins --skill text-mining-guide -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install wentorai/research-plugins text-mining-guide --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/analysis/wrangling/text-mining-guide .opencode/skills/text-mining-guide && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "text-mining-guide" agent skill from https://github.com/wentorai/research-plugins/tree/main/skills/analysis/wrangling/text-mining-guide into .opencode/skills/text-mining-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "text-mining-guide", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
text-mining-guideApply NLP and text mining techniques to research text data. An agent skill from wentorai/research-plugins.
Text Mining Guide is an agent skill from wentorai/research-plugins. Apply NLP and text mining techniques to research text data
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Natural language processing. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.
Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Text Mining Guide loads about 1.7k tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 188 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 188 words, ~1,731 tokens.
.claude/skills/text-mining-guide/SKILL.md (or your agent's skills folder).A skill for applying natural language processing (NLP) and text mining techniques to research data. Covers text preprocessing, feature extraction, topic modeling, sentiment analysis, and named entity recognition for analyzing surveys, abstracts, social media, and document corpora.
import re
from collections import Counter
def preprocess_text(text: str, lowercase: bool = True,
remove_numbers: bool = False,
min_word_length: int = 2) -> list[str]:
"""
Preprocess text for NLP analysis.
Args:
text: Raw input text
lowercase: Convert to lowercase
remove_numbers: Remove numeric tokens
min_word_length: Minimum token length to keep
"""
if lowercase:
text = text.lower()
# Remove URLs
text = re.sub(r"http\S+|www\.\S+", "", text)
# Remove HTML tags
text = re.sub(r"<[^>]+>", "", text)
# Remove special characters (keep apostrophes for contractions)
text = re.sub(r"[^a-zA-Z0-9\s']", " ", text)
# Tokenize
tokens = text.split()
if remove_numbers:
tokens = [t for t in tokens if not t.isdigit()]
# Remove short tokens
tokens = [t for t in tokens if len(t) >= min_word_length]
return tokens
def remove_stopwords(tokens: list[str],
custom_stopwords: list[str] = None) -> list[str]:
"""
Remove stopwords from token list.
"""
# Minimal English stopwords (extend as needed)
default_stops = {
"the", "a", "an", "and", "or", "but", "in", "on", "at",
"to", "for", "of", "with", "by", "is", "was", "are", "were",
"be", "been", "being", "have", "has", "had", "do", "does",
"did", "will", "would", "could", "should", "may", "might",
"this", "that", "these", "those", "it", "its", "not", "no"
}
if custom_stopwords:
default_stops.update(custom_stopwords)
return [t for t in tokens if t not in default_stops]from sklearn.feature_extraction.text import TfidfVectorizer
def build_tfidf_matrix(documents: list[str],
max_features: int = 5000) -> dict:
"""
Build a TF-IDF document-term matrix.
Args:
documents: List of document strings
max_features: Maximum vocabulary size
"""
vectorizer = TfidfVectorizer(
max_features=max_features,
stop_words="english",
min_df=2, # Appear in at least 2 documents
max_df=0.95, # Ignore terms in >95% of documents
ngram_range=(1, 2) # Unigrams and bigrams
)
tfidf_matrix = vectorizer.fit_transform(documents)
return {
"matrix_shape": tfidf_matrix.shape,
"vocabulary_size": len(vectorizer.vocabulary_),
"top_terms": sorted(
vectorizer.vocabulary_.items(),
key=lambda x: x[1]
)[:20],
"vectorizer": vectorizer,
"matrix": tfidf_matrix
}from sklearn.decomposition import LatentDirichletAllocation
def run_topic_model(tfidf_matrix, vectorizer,
n_topics: int = 10) -> list[dict]:
"""
Run LDA topic modeling on a document-term matrix.
Args:
tfidf_matrix: Sparse TF-IDF matrix
vectorizer: Fitted TfidfVectorizer
n_topics: Number of topics to extract
"""
lda = LatentDirichletAllocation(
n_components=n_topics,
random_state=42,
max_iter=50,
learning_method="online"
)
lda.fit(tfidf_matrix)
feature_names = vectorizer.get_feature_names_out()
topics = []
for idx, topic_weights in enumerate(lda.components_):
top_indices = topic_weights.argsort()[-10:][::-1]
top_words = [feature_names[i] for i in top_indices]
topics.append({
"topic_id": idx,
"top_words": top_words,
"label": "Assign a human-readable label based on top words"
})
return topicsMethods for selecting k (number of topics):
- Coherence score: Higher is better (use gensim's CoherenceModel)
- Perplexity: Lower is better (but can overfit)
- Human judgment: Do topics make interpretive sense?
- Domain knowledge: Expected number of themes in the corpus
Practical advice:
- Start with k = 5, 10, 15, 20 and compare
- Examine top words for each k -- look for coherent themes
- If topics are too broad, increase k
- If topics overlap heavily, decrease kdef simple_sentiment(text: str, positive_words: set,
negative_words: set) -> dict:
"""
Basic lexicon-based sentiment scoring.
Args:
text: Input text
positive_words: Set of positive sentiment words
negative_words: Set of negative sentiment words
"""
tokens = text.lower().split()
pos_count = sum(1 for t in tokens if t in positive_words)
neg_count = sum(1 for t in tokens if t in negative_words)
total = len(tokens)
score = (pos_count - neg_count) / max(total, 1)
return {
"positive_count": pos_count,
"negative_count": neg_count,
"score": score,
"label": (
"positive" if score > 0.05
else "negative" if score < -0.05
else "neutral"
)
}| Task | Method | Application |
|---|---|---|
| Literature mapping | Topic modeling | Identify research themes in a corpus of abstracts |
| Survey analysis | Thematic coding + sentiment | Analyze open-ended survey responses |
| Social media analysis | NER + sentiment | Track public discourse on a topic |
| Content analysis | Classification + keyword extraction | Code qualitative data at scale |
| Bibliometrics | Co-word analysis | Map intellectual structure of a field |
Always validate text mining results against human judgment. Report preprocessing steps, parameter choices (e.g., number of topics, min_df, max_df), and model evaluation metrics. For topic models, include the top 10-15 words per topic and representative documents. For classification, report precision, recall, and F1 on a held-out test set. Acknowledge that automated text analysis supplements but does not replace close reading.
© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/analysis/wrangling/text-mining-guide of wentorai/research-plugins.
Open the folder on GitHubat commit bf44b3c
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.
Text Mining Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Text Mining Guide this skillwentorai/research-plugins | 298 | 1 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Hugging Face TokenizersOrchestra-Research/AI-Research-SKILLs | 13k | 7 repos | ~3.4k | Automated safety check: Pass | MIT | |
| OpenMed Model Card Writermaziyarpanahi/openmed | 5.5k | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Gptqmodel Tokenizer NormalizationModelCloud/GPTQModel | 1.3k | — | ~1.1k | Automated safety check: Pass | Custom licence | |
| Comparetaishi-i/awesome-japanese-nlp-resources | 1k | 1 repos | ~4.1k | Automated safety check: Notes | CC0-1.0 | |
| Researchtaishi-i/awesome-japanese-nlp-resources | 1k | 1 repos | ~3.5k | Automated safety check: Notes | CC0-1.0 |
Orchestra-Research/AI-Research-SKILLs
Shows how to load, train and use fast Hugging Face tokenizers, with BPE, WordPiece and Unigram models, padding, truncation and alignment tracking.
maziyarpanahi/openmed
Fills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations.
ModelCloud/GPTQModel
Diagnose and correct GPT-QModel tokenizer initialization, tokenization normalization, special-token handling, prompt rendering, and chat-template problems.
taishi-i/awesome-japanese-nlp-resources
Compare several Japanese NLP libraries, models, or datasets for a keyword (a specific tool name, or a function/task like '形態素解析') across a handful of criteria chosen for that comparison, rendered as…
taishi-i/awesome-japanese-nlp-resources
Analyze current trends and challenges in Japanese NLP for a topic.
jeremylongshore/tons-of-skills-marketplace
Execute this skill enables AI assistant to perform natural language processing and text analysis using the nlp-text-analyzer plugin.
wentorai/research-plugins
Craft structured research abstracts that maximize clarity and journal acceptance
wentorai/research-plugins
Manage academic citations across BibTeX, APA, MLA, and Chicago formats
wentorai/research-plugins
Summarize academic papers with structured extraction of key elements
wentorai/research-plugins
Evidence-based study techniques for academic learning and retention
wentorai/research-plugins
Adjust writing tone and register for academic audiences and venues
wentorai/research-plugins
Academic translation, post-editing, and Chinglish correction guide
Categories
Apply NLP and text mining techniques to research text data. An agent skill from wentorai/research-plugins. Text Mining Guide is an agent skill from wentorai/research-plugins.
Text Mining Guide fits situations like: tasks that involve Natural language processing.
Run `npx skills add wentorai/research-plugins --skill text-mining-guide -a claude-code`. Or copy the skill folder (skills/analysis/wrangling/text-mining-guide in wentorai/research-plugins) into .claude/skills/text-mining-guide in your project. Claude Code loads it when a task matches its description.
Run `npx skills add wentorai/research-plugins --skill text-mining-guide -a codex`. Or copy the skill folder (skills/analysis/wrangling/text-mining-guide in wentorai/research-plugins) into .agents/skills/text-mining-guide in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill text-mining-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/text-mining-guide, .gemini/skills/text-mining-guide, .github/skills/text-mining-guide and .opencode/skills/text-mining-guide in your project.
SKILL.md names no scripts, command-line tools or credentials: Text Mining Guide is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Text Mining Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Text Mining Guide: Hugging Face Tokenizers (Orchestra-Research/AI-Research-SKILLs, 13k stars), OpenMed Model Card Writer (maziyarpanahi/openmed, 5.5k stars), Gptqmodel Tokenizer Normalization (ModelCloud/GPTQModel, 1.3k stars) and Compare (taishi-i/awesome-japanese-nlp-resources, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.
Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.