Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

BERTopic: Neural topic modeling with a class-based TF-IDF procedure

About

Topic models can be useful tools to discover latent topics in collections of documents. Recent studies have shown the feasibility of approach topic modeling as a clustering task. We present BERTopic, a topic model that extends this process by extracting coherent topic representation through the development of a class-based variation of TF-IDF. More specifically, BERTopic generates document embedding with pre-trained transformer-based language models, clusters these embeddings, and finally, generates topic representations with the class-based TF-IDF procedure. BERTopic generates coherent topics and remains competitive across a variety of benchmarks involving classical models and those that follow the more recent clustering approach of topic modeling.

Maarten Grootendorst• 2022

Related benchmarks

TaskDatasetResultRank
Text ClassificationAGNews
Accuracy66.6
119
Text Classification20News
Accuracy59.1
101
Topic ModelingYelp--
18
Topic ModelingBBC
NPMI0.085
17
Topic ModelingAGNews
Diversity48.7
14
Document RetrievalStackOverflow (test)
Precision@530.6
11
Topic Modeling20NewsGroup
Cv0.36
11
Topic ModelingTweetTopic
Cv0.364
11
Topic ModelingStackOverflow
Cv0.374
11
Document RetrievalTweetTopic (test)
P@554.6
11
Showing 10 of 43 rows

Other info

Follow for update