Gensim is a Python library for topic modelling, document indexing and similarity retrieval with large corpora. Its target audience is the natural language processing (NLP) and information retrieval (IR) community.
This is a tool for discovering the semantic structure of documents by examining the patterns of words (or higher-level structures such as entire sentences or documents). gensim accomplishes this by taking a corpus, a collection of text documents, and producing a vector representation of the text in the corpus. The vector representation can then be used to train a model, which is an algorithms to create different representations of the data, which are usually more semantic.
gensim makes heavy use of Python’s built-in generators and iterators for streamed data processing.
Key Features
- Processes large, web-scale corpora using incremental online training algorithms.
- All algorithms are memory-independent w.r.t. the corpus size (can process input larger than RAM, streamed, out-of-core). They use highly optimized math routines.
- Distributed versions of several algorithms to speed up processing and retrieval on machine clusters.
- 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.
- Converters and I/O formats: contains memory-efficient implementations to several popular data formats including Matrix Market, SVMlight, Blei’s LDA-C and more.
- Fast indexing of documents in their semantic representation, and retrieval of topically similar documents.
- Extensive documentation and Jupyter Notebook tutorials.
Dependencies:
- Python >= 2.7 (tested with versions 2.7, 3.5 and 3.6).
- NumPy >= 1.11.3.
- SciPy >= 0.18.1.
- Six >= 1.5.0.
- smart_open >= 1.2.1.
Website: radimrehurek.com/gensim
Support: QuickStart, GitHub Code Repository, Mailing List, Gitter
Developer: RaRe Technologies / Radim Řehůřek
License: GNU LGPLv2.1 license
Gensim is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Natural Language Processing | |
|---|---|
| PyTorch-Transformers | Library of state-of-the-art pre-trained models |
| Natural Language Toolkit | Suite of open source Python modules, data sets and tutorials |
| Stanford CoreNLP | Extensible annotation-based NLP pipeline |
| spaCy | Industrial strength natural language processing |
| scikit-learn | Machine learning library for Python |
| Gensim | Python-based vector space modeling and topic modeling toolkit |
| flair | Simple framework for state-of-the-art NLP |
| Apache OpenNLP | Machine learning based toolkit |
| DL4J | Deploy and train deep learning models |
| Apache Lucene | Full-featured information retrieval software library |
| UIMA | Implementation of the UIMA specification |
| tidytext | Text mining using dplyr, ggplot2, and other tidy tools |
| text2vec | Framework with API for text analysis and NLP |
| quanteda | R package for Quantitative Analysis of Textual Data |
| Moses | Statistical machine translation system |
Read our verdict in the software roundup.
| Python Natural Language Processing Tools | |
|---|---|
| PyTorch-Transformers | Library of state-of-the-art pre-trained models for NLP |
| NLTK | Natural Language Toolkit |
| spaCy | Industrial strength natural language processing |
| scikit-learn | Machine learning library |
| Gensim | Vector space modeling and topic modeling toolkit |
| flair | Simple framework for state-of-the-art NLP |
| TextBlob | Python (2 and 3) library for processing textual data |
| textacy | Python library for performing NLP tasks |
| polyglot | Multilingual text (NLP) processing toolkit |
| AllenNLP | Apache 2.0 NLP research library |
| Snips NLU | Natural Language Understanding Python library |
| PyNLPI | Various modules useful for common, and less common, NLP tasks |
| nlpnet | Natural Language Processing with neural networks |
| Pattern | Web mining module |
| GluonNLP | Deep Learning for NLP |
| PyTorch-NLP | Neural network layers, text processing modules and datasets |
| NLP Architect | Deep Learning NLP/NLU library |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

