keyword-extractor
Extract keywords and key phrases from text using TF-IDF, RAKE, and frequency analysis. Generate word clouds and export to various formats.
npx skills add majiayu000/claude-skill-registry --skill keyword-extractor --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Keyword Extractor Extract important keywords and key phrases from text documents using multiple algorithms. Supports TF-IDF, RAKE, and simple frequency analysis with word cloud visualization. ## Quick Start ```python from scripts.keyword_extractor import KeywordExtractor # Extract keywords extractor = KeywordExtractor() keywords = extractor.extract("Your long text document here...") print(keywords[:10]) # Top 10 keywords # From file keywords = extractor.extract_from_file("document.txt") extractor.to_wordcloud("keywords.png") ``` ## Features - **Multiple Algorithms**: TF-IDF, RAKE, frequency-based - **Key Phrases**: Extract multi-word phrases, not just single words - **Scoring**: Relevance scores for ranking - **Stopword Filtering**: Built-in + custom stopwords - **N-gram Support**: Unigrams, bigrams, trigrams - **Word Cloud**: Visualize keyword importance - **Batch Processing**: Process multiple documents ## API Reference ### Initialization ```python extractor = KeywordExtractor( method="tfidf", # tfidf, rake, frequency max_keywords=20, # Maximum keywords to return min_word_length=3, # Minimum word length ngram_range=(1, 3) # Unigrams to trigrams ) ``` ### Extraction Methods ```p
- Quick Start
- Features
- API Reference
- Initialization
- Extraction Methods
- Results Format
- Customization
- Visualization
- Export
- CLI Usage
- CLI Arguments
- Examples
- Article Keyword Extraction
- Compare Multiple Documents
Extract from text python keyword_extractor.py --text "Your text here" --top 10 Extract from file python keyword_extractor.py --input document.txt --method tfidf --output keywords.json Generate word cloud python keyword_extractor.py --input document.txt --wordcloud cloud.png Batch process directory python keyword_extractor.py --input-dir ./docs --output keywords_all.csv
What does the keyword-extractor skill do?
Extract keywords and key phrases from text using TF-IDF, RAKE, and frequency analysis. Generate word clouds and export to various formats.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill keyword-extractor --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
