About topic-modeler
topic-modeler is a command-line tool for discovering themes in text collections with LDA. It also classifies documents and provides topic keywords, visualizations, and coherence scores.
Key features
- 01LDA topic modeling
- 02Representative topic keywords
- 03Document-to-topic classification
- 04Word cloud and distribution views
- 05Topic coherence scores
Use cases
- 01Identify themes across a text collection
- 02Assign topics to individual documents
- 03Review topic terms and distributions
- 04Assess topic quality with coherence scores
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ dkyazzentwatwa/ chatgpt-skills --skill topic-modelerAfter installing, type/topic-modelerin Claude Code to confirm it loaded.
Bundled filesscripts/requirements.txtscripts/topic_modeler.py
Details
From the project READMETopic Modeler
Extract topics from text collections using LDA.
Features
- LDA Topic Modeling: Latent Dirichlet Allocation
- Topic Keywords: Extract representative keywords per topic
- Document Classification: Assign documents to topics
- Visualization: Topic word clouds and distributions
- Coherence Scores: Evaluate topic quality
CLI Usage
python topic_modeler.py --input documents.csv --column text --topics 5 --output topics.json
Dependencies
- gensim>=4.3.0
- nltk>=3.8.0
- pandas>=2.0.0
- matplotlib>=3.7.0
- wordcloud>=1.9.0
Comments
Markdown supported