Highlights
- Perform hierarchical topic modeling with
.hierarchical_topics - Visualize hierarchical topic representations with
.visualize_hierarchy - Extract a text-based hierarchical topic representation with
.get_topic_tree - Visualize 2D documents with
.visualize_documents() - Visualize 2D hierarchical documents with
.visualize_hierarchical_documents() - Create custom labels to the topics throughout most visualizations
- Manually merge topics with
.merge_topics() - Added native Hugging Face transformers support
Documentation
- Added example for finding similar topics between two models in the tips & tricks page
- Add multi-modal example in the tips & tricks page
Fixes
- Fix support for k-Means in
.visualize_heatmap(#532) - Fix missing topic 0 in
.visualize_topics(#533) - Fix inconsistencies in
.get_topic_info(#572) and (#581) - Add
optimal_orderingparameter to.visualize_hierarchyby @rafaelvalero in #390 - Fix RuntimeError when used as sklearn estimator by @simonfelding in #448
- Fix typo in visualization documentation by @dwhdai in #475
- Fix typo in docstrings by @xwwwwww in #549
- Support higher Flair versions
Visualization examples
Visualize hierarchical topic representations with .visualize_hierarchy:
Extract a text-based hierarchical topic representation with .get_topic_tree:
.
└─atheists_atheism_god_moral_atheist
├─atheists_atheism_god_atheist_argument
│ ├─■──atheists_atheism_god_atheist_argument ── Topic: 21
│ └─■──br_god_exist_genetic_existence ── Topic: 124
└─■──moral_morality_objective_immoral_morals ── Topic: 29

