Skip to content

Commit 15919a0

Browse files
Update README.md
1 parent fc52fc6 commit 15919a0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| SOTA Transformer-based Topic Models | :compass: [](https://x-tabdeveloping.github.io/turftopic/s3/), :key: [KeyNMF](https://x-tabdeveloping.github.io/turftopic/KeyNMF/), :gem: [GMM](https://x-tabdeveloping.github.io/turftopic/GMM/), [Clustering Models (BERTopic and Top2Vec)](https://x-tabdeveloping.github.io/turftopic/GMM/), [Autoencoding models (ZeroShotTM and CombinedTM)](https://x-tabdeveloping.github.io/turftopic/ctm/), [FASTopic](https://x-tabdeveloping.github.io/turftopic/FASTopic/) |
1313
| Models for all Scenarios | :chart_with_upwards_trend: [Dynamic](https://x-tabdeveloping.github.io/turftopic/dynamic/), :ocean: [Online](https://x-tabdeveloping.github.io/turftopic/online/), :herb: [Seeded](https://x-tabdeveloping.github.io/turftopic/seeded/), :evergreen_tree: [Hierarchical](https://x-tabdeveloping.github.io/turftopic/hierarchical/), and :camera: [Multimodal](https://x-tabdeveloping.github.io/turftopic/multimodal/) topic modeling |
1414
| [Easy Interpretation](https://x-tabdeveloping.github.io/turftopic/model_interpretation/) | :bookmark_tabs: Pretty Printing, :bar_chart: Interactive Figures, :art: [topicwizard](https://github.com/x-tabdeveloping/topicwizard) compatible |
15-
| [Topic Naming](https://x-tabdeveloping.github.io/turftopic/namers/) | :robot: LLM-based, N-gram Retrieval, :wave: Manual |
15+
| [Topic Analysis](https://x-tabdeveloping.github.io/turftopic/analyzers/) | :robot: LLM-generated names and descriptions, :wave: Manual Topic Naming |
1616
| [Informative Topic Descriptions](https://x-tabdeveloping.github.io/turftopic/vectorizers/) | :key: Keyphrases, Noun-phrases, Lemmatization, Stemming |
1717

1818

@@ -140,11 +140,11 @@ Turftopic now allows you to automatically assign human readable names to topics
140140
141141
```python
142142
from turftopic import KeyNMF
143-
from turftopic.namers import OpenAITopicNamer
143+
from turftopic.analyzers import OpenAIAnalyzer
144144

145145
model = KeyNMF(10).fit(corpus)
146146

147-
namer = OpenAITopicNamer("gpt-4o-mini")
147+
namer = OpenAIAnalyzer("gpt-4o-mini")
148148
model.rename_topics(namer)
149149
model.print_topics()
150150
```
@@ -193,20 +193,19 @@ pip install "turftopic[datamapplot, openai]"
193193

194194
```python
195195
from turftopic import ClusteringTopicModel
196-
from turftopic.namers import OpenAITopicNamer
196+
from turftopic.analyzers import OpenAIAnalyzer
197197

198198
model = ClusteringTopicModel(feature_importance="centroid").fit(corpus)
199199

200-
namer = OpenAITopicNamer("gpt-4o-mini")
200+
namer = OpenAIAnalyzer("gpt-5-nano")
201201
model.rename_topics(namer)
202202

203203
fig = model.plot_clusters_datamapplot()
204204
fig.show()
205205
```
206206

207-
<center>
208-
<img src="https://github.com/x-tabdeveloping/turftopic/blob/main/docs/images/cluster_datamapplot.png?raw=true" width="70%" style="margin-left: auto;margin-right: auto;">
209-
</center>
207+
<img width="1915" height="2002" alt="image" src="https://github.com/user-attachments/assets/56253aaf-4066-4074-b61a-0d55b8dede73" />
208+
210209

211210
In addition, Turftopic is natively supported in [topicwizard](https://github.com/x-tabdeveloping/topicwizard), an interactive topic model visualization library, is compatible with all models from Turftopic.
212211

0 commit comments

Comments
 (0)