pynlpl-sampler command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pynlpl-sampler: command not found
or when using sudo you get the following error message
sudo: pynlpl-sampler: command not found
Solutions to pynlpl-sampler: command not found
How To Fix pynlpl-sampler: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pynlpl-sampler is provided by python3-pynlpl package.
python3-pynlpl is:
PyNLPl, pronounced as ‘pineapple’, is a Python library for Natural Language Processing. It contains various modules useful for common, and less common, NLP tasks. PyNLPl can be used for basic tasks such as the extraction of n-grams and frequency lists, and to build simple language models. It also contains complex data types and algorithms. Moreover, it includes parsers for file formats common in NLP (e.g. FoLiA/Giza/Moses/ARPA/Timbl/CQL) and clients to interface with various NLP specific servers. PyNLPl most notably features a very extensive library for working with FoLiA XML (Format for Linguistic Annotation).
This is the Python 3 version.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-pynlpl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-pynlpl.
sudo apt -y install python3-pynlpl
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-pynlpl
Summary
In this tutorial we learn how to fix pynlpl-sampler command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.