SRILM Installation Tutorial

From Okapi Framework
Revision as of 19:26, 4 June 2016 by Ysavourel (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


This tutorial will guide through the steps of the installation of SRILM, a tool for producing language models, n-gram count files and many other linguistic resources.


The steps below guide you through the process of installing SRILM for it to be used by the QuEst SVM Model Builder Step and QuEst Quality Estimation Step. SRILM runs on both Linux/Mac or Windows, although the later will need to have a Cygwin environment installed.

Note: This tutorial have been tested only with 64 bits operational systems.

Step 1: If you are a Linux/Mac user, download all the required tools listed at the SRILM download page. If you are a Windows user, download and install Cygwin, making sure to select all the required tools during the installation. If Cygwin accuses of any missing tools during the installation of SRILM, re-install Cygwin and select the missing tools during its installation.

Step 2: Download the latest version of SRILM by filling out the form available at the SRILM download page.

Step 3: Unpack the file inside the folder you desire for SRILM to be installed. Windows users should choose a folder inside their installation of Cygwin for the following steps to be simpler to handle.

Step 4: Open the Makefile inside the folder where SRILM was unpacked using any text editor.

Step 5: You should find a commented line which looks something like this:

# SRILM = /home/speech/stolcke/project/srilm/devel

Remove the "#" character from the beginning of this line and substitute /home/speech/stolcke/project/srilm/devel with the path to the folder where you have unpacked SRILM initially. Windows users should use the path relative to Cygwin's root folder. Examples:

For Linux/Mac users:

SRILM = /home/tools/user/srilm

For Windows users, suppose that you have installed Cygwin in the folder C:/cygwin64/ and have unpacked SRILM in the folder C:/cygwin64/srilm:

SRILM = /srilm

Step 6: Using either a Linux/Mac terminal or a Cygwin terminal, navigate to the folder where you have unpacked SRILM.

Step 7: Run the command make.

If you have followed this steps correctly, the compiled binaries of SRILM should be found inside the following folder:

For the Linux/Mac example of Step 5:


For the Cygwin example of Step 5:

Note: This is the path you must use as the SRILM binaries folder parameter for the QuEst SVM Model Builder Step and the QuEst Quality Estimation Step.

If the folder in question is empty or does not exist, some error have occurred during the compilation of SRILM. Try to follow the steps more carefully and, if the problem persists, try consulting forums online or contact the developers of SRILM.