How To Install python-gensim-addons on CentOS 7

In this tutorial we learn how to install python-gensim-addons on CentOS 7. python-gensim-addons is Highly optimized version of word2vec for gensim

Introduction

In this tutorial we learn how to install python-gensim-addons on CentOS 7.

What is python-gensim-addons

This package contains the highly optimized version of word2vec from gensim. It is highly recommend to use this. If you don’t need the highly optimized version of word2vec, it is sufficient to install the “python-gensim-core”-package. 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). * 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 implementations of popular algorithms, such as online Latent Semantic Analysis (LSA/LSI), Latent Dirichlet Allocation (LDA), Random Projections (RP), Hierarchical Dirichlet Process (HDP) or word2vec deep learning. * Distributed computing Latent Dirichlet Allocation on a cluster of computers, and word2vec on multiple cores. * Extensive HTML documentation and tutorials.

We can use yum or dnf to install python-gensim-addons on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-gensim-addons.

Install python-gensim-addons on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python-gensim-addons using yum by running the following command:

sudo yum -y install python-gensim-addons

Install python-gensim-addons on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python-gensim-addons using dnf by running the following command:

sudo dnf -y install python-gensim-addons

How To Uninstall python-gensim-addons on CentOS 7

To uninstall only the python-gensim-addons package we can use the following command:

sudo dnf remove python-gensim-addons

References

Summary

In this tutorial we learn how to install python-gensim-addons on CentOS 7 using yum and dnf.