You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-4Lines changed: 28 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,10 +182,34 @@ model.print_topics()
182
182
183
183
### Visualization
184
184
185
-
Turftopic does not come with built-in visualization utilities, [topicwizard](https://github.com/x-tabdeveloping/topicwizard), an interactive topic model visualization library, is compatible with all models from Turftopic.
185
+
Turftopic comes with a number of visualization and pretty printing utilities for specific models and specific contexts, such as hierarchical or dynamic topic modelling.
186
+
You will find an overview of these in the [Interpreting and Visualizing Models](https://x-tabdeveloping.github.io/turftopic/model_interpretation/) section of our documentation.
187
+
188
+
```
189
+
pip install "turftopic[datamapplot, openai]"
190
+
```
191
+
192
+
```python
193
+
from turftopic import ClusteringTopicModel
194
+
from turftopic.namers import OpenAITopicNamer
195
+
196
+
model = ClusteringTopicModel(feature_importance="centroid").fit(corpus)
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.
186
210
187
211
```bash
188
-
pip install topic-wizard
212
+
pip install "turftopic[topic-wizard]"
189
213
```
190
214
191
215
By far the easiest way to visualize your models for interpretation is to launch the topicwizard web app.
0 commit comments