Moses SMT on Ubuntu 12.04 64 bit

1. Install necessary libraries

sudo apt-get install libboost-all-dev automake csh tcl tcl-dev tk gawk gzip bzip2 p7zip subversion git libtool
cd ~
mkdir moses
cd moses
mkdir bin

2. Install giza++

cd ~/moses
wget http://giza-pp.googlecode.com/files/giza-pp-v1.0.7.tar.gz
tar zxf giza-pp-v1.0.7.tar.gz
cd giza-pp
make
cp GIZA++-v2/GIZA++ ~/moses/bin/
cp mkcls-v2/mkcls ~/moses/bin/
cp GIZA++-v2/snt2cooc.out ~/moses/bin/
cp GIZA++-v2/snt2plain.out ~/moses/bin/
cp GIZA++-v2/plain2snt.out ~/moses/bin/

3. Install irstlm

cd ~/moses
svn co https://irstlm.svn.sourceforge.net/svnroot/irstlm/trunk irstlm_svn
cd ~/moses/irstlm_svn
./regenerate-makefiles.sh
./configure –prefix=/home/luyi/moses/bin/irstlm
make
make install

4. Install xmlrpc-c

cd ~/moses
svn co http://svn.code.sf.net/p/xmlrpc-c/code/super_stable xmlrpc-c
cd ~/moses/xmlrpc-c
./configure
make
sudo make install

5. Install mosesdecoder

cd ~/moses
git clone git://github.com/moses-smt/mosesdecoder.git -b RELEASE-1.0
cd mosesdecoder
./bjam -j2 –with-irstlm=/home/luyi/moses/bin/irstlm –prefix=/home/luyi/moses/bin/decoder –bindir=/home/luyi/moses/bin/decoder/bin –install-scripts=/home/luyi/moses/bin/decoder/scripts

http://blog.csdn.net/takamachi660/article/details/8867028

 

Part 2: Running an SMT system

We will use the Experiment Management System (EMS).

1. Requirements: GraphViz, ImageMagick, and GhostView

sudo apt-get install graphviz imagemagick gv

2. Run a sample configuration (need SRILM)

 

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Moses SMT on Ubuntu 12.04 64 bit

  1. Pingback: Install MOSES on Ubuntu Server 12.04.3 LTS 64bits | jcnpereira

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s