mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 19:44:59 +03:00
83f8b58814
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1128 1f5c12ca-751b-0410-a591-d2e778427230
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
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 .
|
|
|
|
IMPORTANT: These instructions are for building the moses decoder ONLY,
|
|
the training and tuning SCRIPTS contained in scripts/ must be built
|
|
and installed separately. Also, they may require modification to
|
|
work in certain environments.
|
|
|
|
--------------------------------------------------------------------------
|
|
|
|
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.
|
|
|
|
./configure --with-srilm=/path/to/srilm
|
|
|
|
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 moses:
|
|
|
|
cd ..
|
|
./configure --with-irstlm=/path/to/irstlm
|
|
make
|
|
|
|
The resulting decoder binary will be moses-cmd/src/moses .
|
|
|
|
--------------------------------------------------------------------------
|
|
|