Install SMT decoder Moses on WinXP - Part 2

In the second part of this series, we're going to install the SRI Language Modeling Toolkit (SRILM).
Read Installing SMT decoder Moses on WinXP - Part 1.

Install SRILM
Note: For purposes of this tutorial, we're going to assume the following directories:
Cygwin installation directory: c:\cygwin
SRILM installation directory: c:\cygwin\mysmts\srilm

So from the Cygwin shell, the SRILM directory will be
[me@cygwin /mysmts/srilm] $

  1. Download SRILM to your Cygwin drive. (e.g. c:\cygwin\home\<yourname>)
  2. Add SRILM to Cygwin bash path
    Edit "c:\cygwin\home\<yourname>\.bashrc" and add the following lines (replace with own directories as necessary):
    export PATH=$PATH:/mysmts/srilm/bin:/mysmts/srilm/bin/cygwin
    export MANPATH=$MANPATH:/mysmts/srilm/man
  3. Extract SRILM
    Create folder and extract the srilm.tgz archive
    $ mkdir –p /mysmts/srilm
    $ cd /mysmts/srilm
    $ tar zxvf /home/<yourname>/srilm.tgz
    $ chmod –R u+w *
  4. Compile SRILM
    Check that the system is correctly identified as cygwin
    $ ./sbin/machine-type
    >> cygwin

    Edit "/mysmts/srilm/Makefile" to set the variable SRILM to your directory (absolute path)
    SRILM = /mysmts/srilm

    Compile
    $ make World
    $ make cleanest
  5. Test if it’s working correctly (optional)
    $ cd /mysmts/srilm/test
    $ make all

    All test results should report "Identical".

Comments

Popular posts from this blog

Exclude directories from chown

Flash game: Cargo Bridge

Copying Sony recovery partition to new harddisk