Moses

Ubuntu 12.04

#prepare
sudo apt-get install build-essential libboost-all-dev automake csh tcl tcl-dev tk gawk gzip bzip2 p7zip subversion git libtool libz-dev libbz2-dev

cd ~
mkdir moses
cd moses
mkdir bin

# 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/

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

#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

#install mosesdecoder
cd ~/moses
git clone git://github.com/moses-smt/mosesdecoder.git
cd mosesdecoder
./bjam -j2 --with-irstlm=/home/anson/moses/bin/irstlm --prefix=/home/anson/moses/bin/decoder --bindir=/home/anson/moses/bin/decoder/bin --install-scripts=/home/anson/moses/bin/decoder/scripts






你可能感兴趣的:(Ubuntu,moses,giza,irstlm,xmlprc)