返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

topic-modeler

从文本集合中使用LDA(潜在狄利克雷分配)提取主题,并进行关键词提取和主题可视化。

person作者: jakexiaohubgithub

Topic 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