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
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] $
- Download SRILM to your Cygwin drive. (e.g. c:\cygwin\home\<yourname>)
- 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 - 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 * - 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 - Test if it’s working correctly (optional)
$ cd /mysmts/srilm/test
$ make all
All test results should report "Identical".
Comments
Post a Comment