0% found this document useful (0 votes)
537 views

Installation Guide Moses Decoder

The document provides instructions for installing Moses decoder on Ubuntu. It involves 8 steps: 1) installing required packages, 2) cloning Moses from GitHub, 3) downloading and installing GIZA++, 4) copying GIZA++ binaries to MosesDecoder directory, 5) installing Moses, 6) installing additional dependencies, 7) compiling Moses, and 8) testing the installation on a sample model.

Uploaded by

chandankumar784
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
537 views

Installation Guide Moses Decoder

The document provides instructions for installing Moses decoder on Ubuntu. It involves 8 steps: 1) installing required packages, 2) cloning Moses from GitHub, 3) downloading and installing GIZA++, 4) copying GIZA++ binaries to MosesDecoder directory, 5) installing Moses, 6) installing additional dependencies, 7) compiling Moses, and 8) testing the installation on a sample model.

Uploaded by

chandankumar784
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

--- README FOR INSTALLING MOSES DECODER ON UBUNTU ---

1. Install required Ubuntu packages to build Moses and its dependencies


(or goto page 29 of the manual and install all the dependencies of ubuntu)
sudo apt-get install g++ git automake libtool zlib1g-dev libboost-all-
dev libbz2-dev liblzma-dev libgoogle-perftools-dev

2. Clone Moses from the repository and cd into the directory for building Moses
git clone https://github.com/moses-smt/mosesdecoder.git

3. Download and install GIZA++ (may not be necessary)


git clone https://github.com/moses-smt/giza-pp.git
cd giza-pp
make

--- "return back to working directory from giza-pp directory (cd ..)" ---

4. Copy GIZA++ Binaries to MosesDecoder


cd modesdecoder
mkdir tools
cp ~/giza-pp/GIZA++-v2/GIZA++ ~/giza-pp/GIZA++-v2/snt2cooc.out ~/giza-
pp/mkcls-v2/mkcls tools

5. Install moses (from mosesdecoder directory)


./bjam

6. Run the following to install a recent version of Boost (the defaultversion on


your system
might be too old), as well as cmph (for CompactPT), irstlm (language model
from FBK,
required to pass the regression tests), and xmlrpc-c (for moses server). By
default, these
will be installed in ./opt in your working directory:
make -f contrib/Makefiles/install-dependencies.gmake

7. To compile moses, run:


./compile.sh

8. Testing moses over a sample model:


wget http://www.statmt.org/moses/download/sample-models.tgz
tar xzzf sample-models.tgz
cd sample-models
~/mosesdecoder/bin/moses -f phrase-model/moses.ini < phrase-model/in > out

EXPECTED OUTPUT: "this is a small house"

--- Intallation Complete ---

You might also like