Skip to main content
==============================================
gensim -- Topic Modelling in Python
==============================================

|Travis|_
|Wheel|_

.. |Travis| image:: https://img.shields.io/travis/RaRe-Technologies/gensim/develop.svg
.. |Wheel| image:: https://img.shields.io/pypi/wheel/gensim.svg

.. _Travis: https://travis-ci.org/RaRe-Technologies/gensim
.. _Downloads: https://pypi.python.org/pypi/gensim
.. _License: http://radimrehurek.com/gensim/about.html
.. _Wheel: https://pypi.python.org/pypi/gensim

Gensim is a Python library for *topic modelling*, *document indexing* and *similarity retrieval* with large corpora.
Target audience is the *natural language processing* (NLP) and *information retrieval* (IR) community.

Features
---------

* All algorithms are **memory-independent** w.r.t. the corpus size (can process input larger than RAM, streamed, out-of-core),
* **Intuitive interfaces**

* easy to plug in your own input corpus/datastream (trivial streaming API)
* easy to extend with other Vector Space algorithms (trivial transformation API)

* Efficient multicore implementations of popular algorithms, such as online **Latent Semantic Analysis (LSA/LSI/SVD)**,
**Latent Dirichlet Allocation (LDA)**, **Random Projections (RP)**, **Hierarchical Dirichlet Process (HDP)** or **word2vec deep learning**.
* **Distributed computing**: can run *Latent Semantic Analysis* and *Latent Dirichlet Allocation* on a cluster of computers.
* Extensive `documentation and Jupyter Notebook tutorials <https://github.com/RaRe-Technologies/gensim/#documentation>`_.


If this feature list left you scratching your head, you can first read more about the `Vector
Space Model <http://en.wikipedia.org/wiki/Vector_space_model>`_ and `unsupervised
document analysis <http://en.wikipedia.org/wiki/Latent_semantic_indexing>`_ on Wikipedia.

Installation
------------

This software depends on `NumPy and Scipy <http://www.scipy.org/Download>`_, two Python packages for scientific computing.
You must have them installed prior to installing `gensim`.

It is also recommended you install a fast BLAS library before installing NumPy. This is optional, but using an optimized BLAS such as `ATLAS <http://math-atlas.sourceforge.net/>`_ or `OpenBLAS <http://xianyi.github.io/OpenBLAS/>`_ is known to improve performance by as much as an order of magnitude. On OS X, NumPy picks up the BLAS that comes with it automatically, so you don't need to do anything special.

The simple way to install `gensim` is::

pip install -U gensim

Or, if you have instead downloaded and unzipped the `source tar.gz <http://pypi.python.org/pypi/gensim>`_ package,
you'd run::

python setup.py test
python setup.py install


For alternative modes of installation (without root privileges, development
installation, optional install features), see the `install documentation <http://radimrehurek.com/gensim/install.html>`_.

This version has been tested under Python 2.7, 3.5 and 3.6. Support for Python 2.6, 3.3 and 3.4 was dropped in gensim 1.0.0. Install gensim 0.13.4 if you *must* use Python 2.6, 3.3 or 3.4. Support for Python 2.5 was dropped in gensim 0.10.0; install gensim 0.9.1 if you *must* use Python 2.5). Gensim's github repo is hooked against `Travis CI for automated testing <https://travis-ci.org/RaRe-Technologies/gensim>`_ on every commit push and pull request.

How come gensim is so fast and memory efficient? Isn't it pure Python, and isn't Python slow and greedy?
--------------------------------------------------------------------------------------------------------

Many scientific algorithms can be expressed in terms of large matrix operations (see the BLAS note above). Gensim taps into these low-level BLAS libraries, by means of its dependency on NumPy. So while gensim-the-top-level-code is pure Python, it actually executes highly optimized Fortran/C under the hood, including multithreading (if your BLAS is so configured).

Memory-wise, gensim makes heavy use of Python's built-in generators and iterators for streamed data processing. Memory efficiency was one of gensim's `design goals <http://radimrehurek.com/gensim/about.html>`_, and is a central feature of gensim, rather than something bolted on as an afterthought.

Documentation
-------------
* `QuickStart`_
* `Tutorials`_
* `Tutorial Videos`_
* `Official Documentation and Walkthrough`_

Citing gensim
-------------

When `citing gensim in academic papers and theses <https://scholar.google.cz/citations?view_op=view_citation&hl=en&user=9vG_kV0AAAAJ&citation_for_view=9vG_kV0AAAAJ:u-x6o8ySG0sC>`_, please use this BibTeX entry::

@inproceedings{rehurek_lrec,
title = {{Software Framework for Topic Modelling with Large Corpora}},
author = {Radim { R}eh{
u}{ r}ek and Petr Sojka},
booktitle = {{Proceedings of the LREC 2010 Workshop on New
Challenges for NLP Frameworks}},
pages = {45--50},
year = 2010,
month = May,
day = 22,
publisher = {ELRA},
address = {Valletta, Malta},
language={English}
}

----------------

Gensim is open source software released under the `GNU LGPLv2.1 license <http://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html>`_.
Copyright (c) 2009-now Radim Rehurek

|Analytics|_

.. |Analytics| image:: https://ga-beacon.appspot.com/UA-24066335-5/your-repo/page-name
.. _Analytics: https://github.com/igrigorik/ga-beacon
.. _Official Documentation and Walkthrough: http://radimrehurek.com/gensim/
.. _Tutorials: https://github.com/RaRe-Technologies/gensim/blob/develop/tutorials.md#tutorials
.. _Tutorial Videos: https://github.com/RaRe-Technologies/gensim/blob/develop/tutorials.md#videos
.. _QuickStart: https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/gensim%20Quick%20Start.ipynb



Metadata

Release files for gensim 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gensim 2.3.0
File Size Uploaded
gensim-2.3.0.tar.gz 17.2 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for gensim 2.3.0
File
gensim-2.3.0.win-amd64-py3.6.exe Details
gensim-2.3.0.win-amd64-py3.5.exe Details
gensim-2.3.0.win-amd64-py2.7.exe Details
gensim-2.3.0.win32-py3.6.exe Details
gensim-2.3.0.win32-py3.5.exe Details
gensim-2.3.0.win32-py2.7.exe Details
gensim-2.3.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
gensim-2.3.0-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
gensim-2.3.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ Intel (x86-64, i386), macOS 10.10+ Intel (x86-64, i386), macOS 10.6+ Intel (x86-64, i386), macOS 10.10+ x86-64, macOS 10.9+ x86-64 Details
gensim-2.3.0-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
gensim-2.3.0-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details
gensim-2.3.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.9+ x86-64, macOS 10.10+ Intel (x86-64, i386), macOS 10.9+ Intel (x86-64, i386), macOS 10.10+ x86-64, macOS 10.6+ Intel (x86-64, i386) Details
gensim-2.3.0-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
gensim-2.3.0-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details
gensim-2.3.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.10+ x86-64, macOS 10.9+ Intel (x86-64, i386), macOS 10.9+ x86-64, macOS 10.10+ Intel (x86-64, i386), macOS 10.6+ Intel (x86-64, i386) Details

Total release size: 114.0 MB

Release files / gensim-2.3.0.tar.gz

Download URL gensim-2.3.0.tar.gz
Size 17.2 MB
Tags Source
SHA-256 checksum
How to use checksums
7d0dccc7d2c576e270037949874800b7cfbc86ef081ff981483f612cd18e223f
BLAKE2b-256 checksum
How to use checksums
bcedfbbb2cc3f37a39cc4ff8e5f667374478fb852b384840aa7feb9608144290
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0.win-amd64-py3.6.exe

Download URL gensim-2.3.0.win-amd64-py3.6.exe
Size 6.9 MB
Tags Source
SHA-256 checksum
How to use checksums
17e577c9dc433f04e899e7716ad428db74b1d45e2ea768814f350b58966aeecb
BLAKE2b-256 checksum
How to use checksums
041afe9acb3ad26415e76beeb28cfc6dca958db8adc44748909fcb9856aedd40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0.win-amd64-py3.5.exe

Download URL gensim-2.3.0.win-amd64-py3.5.exe
Size 6.9 MB
Tags Source
SHA-256 checksum
How to use checksums
ca45fe9d8ff810f0f1d27302ee4cb536c558e7636a96eb496696719beb02dda1
BLAKE2b-256 checksum
How to use checksums
42bce8844437569f2f3a4f88939fad33d59ab92ffd67af7dca00993cc2a37ef8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0.win-amd64-py2.7.exe

Download URL gensim-2.3.0.win-amd64-py2.7.exe
Size 6.5 MB
Tags Source
SHA-256 checksum
How to use checksums
03fee047d913c688ec9a6b2dd1ee69b397f1a957254d905c17d38c1d458e5fa4
BLAKE2b-256 checksum
How to use checksums
b4b27f5fb62d543e48e8e6bf965df5bbd06b53258e249cd828a91cf9153a080c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0.win32-py3.6.exe

Download URL gensim-2.3.0.win32-py3.6.exe
Size 6.7 MB
Tags Source
SHA-256 checksum
How to use checksums
753a6dbce2bae9c0c9acd52a63a268856699c43e43593f12fb126fe02600b542
BLAKE2b-256 checksum
How to use checksums
971f2e839f32957b7b0301f56cfe6e218dae924755725112eb2be65a1532d030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0.win32-py3.5.exe

Download URL gensim-2.3.0.win32-py3.5.exe
Size 6.7 MB
Tags Source
SHA-256 checksum
How to use checksums
0bd536c90b2e50298c41697fca94a6a250e705f412444a8bb6add0b97744c561
BLAKE2b-256 checksum
How to use checksums
e129a826a5add7937ea1e746041f91669c770b4807bd51087488677a97ba59ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0.win32-py2.7.exe

Download URL gensim-2.3.0.win32-py2.7.exe
Size 6.5 MB
Tags Source
SHA-256 checksum
How to use checksums
d830246806d9abd4e252ab2d7d124dc327175ca1745942b751df86c6898afbad
BLAKE2b-256 checksum
How to use checksums
1fb3304d55e403d1e32d77d719cc862e932b1b2a7f44939887cfd8524dadff68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0-cp36-cp36m-win_amd64.whl

Download URL gensim-2.3.0-cp36-cp36m-win_amd64.whl
Size 6.3 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
269e51707d3ab1dc6ea490831c76096d1e7ef9a2aa8ec184ff82643f83a1c51e
BLAKE2b-256 checksum
How to use checksums
baa17995a21b4d47139359a98002dbbfc0a0b793fe63dbef9def3b297f52a6ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0-cp36-cp36m-win32.whl

Download URL gensim-2.3.0-cp36-cp36m-win32.whl
Size 6.3 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
914ff37693da1af065f3accab06c47a771bcb2e4353e7b8f9e8d748fd4b46ff7
BLAKE2b-256 checksum
How to use checksums
9305ec5572d106e1af05de13c188ac8ec61a2720cb54c0e99ecf737123eab96e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

Download URL gensim-2.3.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Size 6.4 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.10+ Intel (x86-64, i386) macOS 10.10+ x86-64 macOS 10.6+ Intel (x86-64, i386) macOS 10.9+ Intel (x86-64, i386) macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
9ebab0d470cd9542b77d39d1ca3b7dc0c12f49e0d01ebbec4d3636ef8e4fdf61
BLAKE2b-256 checksum
How to use checksums
82b397e377d02ffe480b552d58810cac827a929b0b3180dac9b3625d0d2be138
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0-cp35-cp35m-win_amd64.whl

Download URL gensim-2.3.0-cp35-cp35m-win_amd64.whl
Size 6.3 MB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
90fa3bd5c0ea2eb1beb3c345180e666a8bfd09a7f870460485a31a5bcc7df290
BLAKE2b-256 checksum
How to use checksums
a80bd09cf16d7f2f03b03b4dcb2556f119628fc40021306cf3b4f06b6ce641d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0-cp35-cp35m-win32.whl

Download URL gensim-2.3.0-cp35-cp35m-win32.whl
Size 6.3 MB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
59998aaf0c02008e80e143376cef90b456456cb06b8d24e5e57f40c1c0513da8
BLAKE2b-256 checksum
How to use checksums
08b87bf20a2708d86fa38157bce2a6c45b0b8a65e0bec0d141799e7404d14def
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

Download URL gensim-2.3.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Size 6.4 MB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.10+ Intel (x86-64, i386) macOS 10.10+ x86-64 macOS 10.6+ Intel (x86-64, i386) macOS 10.9+ Intel (x86-64, i386) macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
44be8a06ba5b5b106a278220bd70c44ea4349e9dd952b261d0e674e0b6101c7c
BLAKE2b-256 checksum
How to use checksums
a8961a57055f82a946f7b64d40541d8eaa59d0cd6d6ee504d5f03262d022ed7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0-cp27-cp27m-win_amd64.whl

Download URL gensim-2.3.0-cp27-cp27m-win_amd64.whl
Size 6.3 MB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
3be59d43484a4f4ecbe6ae72d8a6aaf231b695e28d93d661dc2b8a0e7bf67945
BLAKE2b-256 checksum
How to use checksums
04dac316f87dca44334b0c9cdd235edb16f90c25dc020d4828b4df4d79a2dff0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0-cp27-cp27m-win32.whl

Download URL gensim-2.3.0-cp27-cp27m-win32.whl
Size 6.3 MB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
ecca5c2804677fb61e06818e23f03ed54ecad78faeee8b8cdcabad376d6a0449
BLAKE2b-256 checksum
How to use checksums
e7bb4c1824f65853d7b71b54f1f1ba3774483c96d3c235622ad6f403a287887f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gensim-2.3.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

Download URL gensim-2.3.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Size 6.4 MB
Tags CPython 2.7 CPython 2.7 pymalloc macOS 10.10+ Intel (x86-64, i386) macOS 10.10+ x86-64 macOS 10.6+ Intel (x86-64, i386) macOS 10.9+ Intel (x86-64, i386) macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
8bfe28a43d1c48904ef1173402193960be86a269164a76a0965a250f09f9aba2
BLAKE2b-256 checksum
How to use checksums
078e3d87f4947e7dddd300c4ba2ff6a7062a86fe367dc6de3341b5c643891bea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

4.4.0

26 release files

4.3.3

26 release files

4.3.2

21 release files

4.3.1

24 release files

4.3.0

17 release files

4.1.2

17 release files

4.1.1

13 release files

4.1.0

17 release files

4.0.0

10 release files

3.8.2

22 release files

3.8.1

31 release files

3.7.2

15 release files

3.7.1

31 release files

3.7.0

25 release files

3.6.0

24 release files

3.1.0

7 release files

3.0.0

16 release files

This release

2.3.0 This release

16 release files

2.2.0

16 release files

2.1.0

12 release files

2.0.0

12 release files

1.0.0

9 release files

0.13.4

9 release files

0.13.2

9 release files

0.13.0

1 release file

0.12.2

2 release files

0.12.1

2 release files

0.11.1

2 release files

0.10.3

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.7

1 release file

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.8

2 release files

0.7.7

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4

2 release files

0.3.0

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page