opennlp command not found

In this troubleshooting guide we learn how to fix opennlp command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

opennlp: command not found

or when using sudo you get the following error message

sudo: opennlp: command not found

Solutions to opennlp: command not found

How To Fix opennlp: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu opennlp is provided by opennlp package.

opennlp is:

The Apache OpenNLP library is a machine learning based toolkit for the processing of natural language text. It supports the most common NLP tasks, such as tokenization, sentence segmentation, part-of-speech tagging, named entity extraction, chunking, parsing, and coreference resolution. These tasks are usually required to build more advanced text processing services. OpenNLP also included maximum entropy and perceptron based machine learning.

This package contains the command line wrapper.

To fix this problem, we can install more using the command below.

sudo apt-get -y install opennlp

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install opennlp.

sudo apt -y install opennlp

Or if you have aptitude installed you can use the following command.

sudo aptitude install opennlp

Summary

In this tutorial we learn how to fix opennlp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.