# gensim

> Topic Modelling for Humans

- Type: agent or tool
- Field: ML & AI
- Repository: https://github.com/piskvorky/gensim
- GitHub stars: 16505
- Licence: LGPL-2.1
- Language: Python
- Last push: 2025-11-01
- Page: https://imutechz.in/agents/gensim

## What it is
Gensim is a Python library for topic modelling, document indexing and similarity retrieval with large corpora. It targets the natural language processing and information retrieval communities. Algorithms are memory-independent with respect to corpus size, so input larger than RAM can be processed as a stream, and it taps into NumPy's BLAS libraries for speed.

## Features
- Memory-independent, out-of-core processing of corpora larger than RAM
- Streaming API for plugging in custom corpora and datastreams
- Multicore implementations of LSA/LSI/SVD, LDA, Random Projections, HDP and word2vec
- Distributed computing for LSA and LDA across a cluster
- Extensive documentation and Jupyter Notebook tutorials

## Best for
- Topic modelling of large text corpora
- Document indexing and similarity retrieval
- Word2vec and other vector space models
- NLP and information retrieval research

## Pros
- Processes input larger than RAM via streamed, out-of-core processing
- Intuitive interfaces for custom corpora and vector space algorithms
- Uses optimized BLAS libraries under the hood for speed

## Cons
- In stable maintenance mode: no new features accepted, only bug and documentation fixes
- Depends on NumPy, and building NumPy from source is non-trivial
- Python 2.7 support was dropped in gensim 4.0.0

## Install
```
pip install --upgrade gensim
```

Tags: topic-modelling, nlp, python, lda, word2vec, information-retrieval, gensim
