Ubuntu – How to install SRILM on ubuntu 14.04

14.04software installationtools

SRILM is a tool for Language Modelling in Natural Language Processing (NLP), http://www.speech.sri.com/projects/srilm/

There is no clear installation guide to install SRILM on ubuntu 14.04. There was one for 11.10 but it is outdated and it doesn't work properly. http://www.spencegreen.com/2012/02/01/installing-srilm-on-ubuntu-11-10/

Does anyone know how to install SRILM on Ubuntu 14.04?

Best Answer

I have already installed to srilm on Ubuntu 14.04. Following are the commands:

mkdir /usr/share/srilm
mv srilm.tgz /usr/share/srilm
cd /usr/share/srilm
tar xzf srilm.tgz

In the Makefile, uncomment the SRILM= parameter and point it to /usr/share/srilm (or your equivalent path).

The run the following commands in Supper user mode:

tcsh
make NO_TCL=1 MACHINE_TYPE=i686-gcc4 World (if you are using 64 bit system then i686 to replace with x86_64)
./bin/i686-gcc4/ngram-count -help