Gensim

Topic modeling and document similarity library for unsupervised NLP.

Open SourceSelf HostedOffline Capable
0.0 (0)

About

Gensim is a Python library for unsupervised topic modeling, document indexing, and similarity retrieval over large text collections. It implements Word2Vec, FastText, Doc2Vec, Latent Semantic Analysis, Latent Dirichlet Allocation, Random Projections, and Hierarchical Dirichlet Process, with multicore implementations of the popular algorithms and support for distributed computing. A defining design choice is data streaming: corpora are processed out of core, so models can train on collections larger than RAM. Created by Radim Rehurek and released under the LGPL-2.1 license, it depends mainly on NumPy plus an optimized BLAS for speed. The project is now in stable maintenance mode, accepting fixes rather than new features, and has been used in production at organizations including Amazon, Cisco, Capital One, and the National Institutes of Health for document similarity, fraud detection, and research on word embeddings.

Should you use Gensim?

Pick it when

Pick Gensim when you need LDA topics, Word2Vec or Doc2Vec embeddings, or document similarity over a corpus too large for memory, trained on CPUs with streaming, and you prefer stable, well-understood classical methods.

Look elsewhere when

Skip it if you need new features: the project is in maintenance mode, accepting fixes only. For embedding-based topics with readable labels BERTopic is the modern route, and Sentence-Transformers gives similarity from pretrained models.

Alternatives to Gensim

  • BERTopic

    Embedding-based topics with c-TF-IDF labels, dynamic and guided variants and interactive charts, but heavier, transformer-dependent, and Python 3.10+.

  • Sentence-Transformers

    Pretrained embedding models for semantic search with no training needed, but encoding is heavier than Gensim's vectors and there are no topic models.

  • fastText

    Meta's C++ subword vectors with pretrained models for 157 languages and a supervised classifier, but the repository is archived.

  • scikit-learn

    LDA and NMF topic models under BSD-3 with a familiar API for in-memory workflows, but no Word2Vec, Doc2Vec or similarity indexing like Gensim.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Easy (2/5)
License
LGPL-2.1
Added
Apr 3, 2026

Tags