Top2Vec: Distributed Representations of Topics

Dimo Angelov
8/19/2020
557 citations
cs.CLcs.LGstat.ML

Official code: ddangelov/Top2Vec (3,116 stars, Python, BSD-3-Clause, last commit 2024-11-14).

Abstract

Topic modeling is used for discovering latent semantic structure, usually referred to as topics, in a large collection of documents. The most widely used methods are Latent Dirichlet Allocation and Probabilistic Latent Semantic Analysis.

Show full abstract

Despite their popularity they have several weaknesses. In order to achieve optimal results they often require the number of topics to be known, custom stop-word lists, stemming, and lemmatization. Additionally these methods rely on bag-of-words representation of documents which ignore the ordering and semantics of words. Distributed representations of documents and words have gained popularity due to their ability to capture semantics of words and documents. We present $\texttt{top2vec}$, which leverages joint document and word semantic embedding to find $\textit{topic vectors}$. This model does not require stop-word lists, stemming or lemmatization, and it automatically finds the number of topics. The resulting topic vectors are jointly embedded with the document and word vectors with distance between them representing semantic similarity. Our experiments demonstrate that $\texttt{top2vec}$ finds topics which are significantly more informative and representative of the corpus trained on than probabilistic generative models.

View on arXivView PDF

Code Implementations(1)

ddangelov/Top2VecOfficial100%
BSD-3-Clause

Top2Vec learns jointly embedded topic, document and word vectors.

3,116370Python, Jupyter NotebookMar 20, 20202 years agoBSD-3-Clause
bertdocument-embeddingpre-trained-language-modelssemantic-searchsentence-encoder+9 more

Similar Papers

Cite this paper

@article{angelov2020topvec,
  title  = {Top2Vec: Distributed Representations of Topics},
  author = {Dimo Angelov},
  year   = {2020},
  eprint = {2008.09470},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.09470}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2008.09470.svg)](https://codeofpaper.com/paper/2008.09470)

Discussion