add instructions

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@787 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
redpony 2006-08-21 15:01:35 +00:00
parent fe74de6b44
commit 7648827090
2 changed files with 57 additions and 0 deletions

56
BUILD-INSTRUCTIONS Normal file
View File

@ -0,0 +1,56 @@
0) Preliminaries
Before building you need to decide what language model toolkit (SRI's
or IRST's) you want to use. If you want to use SRI's, you will need
to download their source and build it. The SRILM can be downloaded
from http://www.speech.sri.com/projects/srilm/download.html .
--------------------------------------------------------------------------
1) Instructions for building with SRILM
Build SRILM according to their release instructions. Make sure that
you DO NOT override the MACHINE_TYPE variable on the command line when
you do so, as this can lead to problems locating the library.
Build the moses library:
cd moses
./configure --with-srilm=/path/to/srilm
make
Build the moses binary:
cd ../moses-cmd
./configure --with-moses=`pwd`/../moses --with-srilm=/path/to/srilm
make
The resulting decoder binary will be moses-cmd/src/moses .
--------------------------------------------------------------------------
2) Instructions for building with IRSTLM
Build IRSTLM, and install it to a location of your choice.
cd irstlm
./configure --prefix=/path/to/irstlm
make
make install
Build the moses library:
cd moses
./configure --with-srilm=/path/to/srilm
make
Build the moses binary:
cd ../moses-cmd
./configure --with-moses=`pwd`/../moses --with-srilm=/path/to/srilm
make
The resulting decoder binary will be moses-cmd/src/moses .
--------------------------------------------------------------------------

View File

@ -19,6 +19,7 @@ base=`pwd`
svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk/moses
svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk/moses-cmd
svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk/irstlm
svn co https://svn.sourceforge.net/svnroot/mosesdecoder/trunk/BUILD-INSTRUCTIONS
for dir in moses moses-cmd irstlm; do
cd $base