mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-26 19:37:58 +03:00
add instructions
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@787 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
fe74de6b44
commit
7648827090
56
BUILD-INSTRUCTIONS
Normal file
56
BUILD-INSTRUCTIONS
Normal 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 .
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user