How To Install libstemmer on CentOS 7
Introduction
In this tutorial we learn how to install libstemmer
on CentOS 7.
What is libstemmer
Snowball stemming algorithms for use in Information Retrieval Snowball provides access to efficient algorithms for calculating a “stemmed” form of a word. This is a form with most of the common morphological endings removed; hopefully representing a common linguistic base form. This is most useful in building search engines and information retrieval software; for example, a search with stemming enabled should be able to find a document containing “cycling” given the query “cycles”. Snowball provides algorithms for several (mainly European) languages. It also provides access to the classic Porter stemming algorithm for English improved algorithm, the original algorithm may be of interest to information retrieval researchers wishing to reproduce results of earlier experiments.
We can use yum
or dnf
to install libstemmer
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libstemmer.
Install libstemmer on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install libstemmer
using yum
by running the following command:
Install libstemmer 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.
After updating yum database, We can install libstemmer
using dnf
by running the following command:
How To Uninstall libstemmer on CentOS 7
To uninstall only the libstemmer
package we can use the following command:
References
Summary
In this tutorial we learn how to install libstemmer
on CentOS 7 using yum
and dnf
.