Tags
bleu, C, chloe code, corpus, cplusplus, dev, doan, doan vu, documentation, edu, error giza installation install moses java moses Net score script smt srilm studio test training t, history, ubuntu, uneti vb visual basic visual studio vu, utorial
INSTRUCTIONS BUILDING MOSES ON FEDORA 20.x (64 bit)
1. Preinstallation requirements
- yum install glibc-devel.i686 - yum install gcc4-c++-4.1.2-44.EL4.x86_64.rpm gawk gzip csh - yum install subversion automake autoconf texinfo zlib1g zlib1g-dev zlib-bin zlibc - boost_1_55_0.zip (download this file) - Giza - In folder /home/chloe/tools run: git clone https://github.com/moses-smt/mosesdecoder.git moses (download mosesedecoder)
2. Install
2.1. Install boost
- Extract into boost_1_55_0 folder - cd boost_1_55_0/ - ./bootstrap.sh - ./b2 -j8 --prefix=$PWD --libdir=$PWD/lib64 --layout=tagged link=static threading=multi,single install || echo FAILURE
2.2. Install SRILM
- mkdir srilm - cd srilm - Extrack SRILM tar -xzvf srilm.tgz - Edit Makefile gedit Makefile change following this code from: # SRILM = /usr/.../.../.../devel MACHINE_TYPE to SRILM = /home/.../.../Sources/srilm MACHINE_TYPE = i686-m64 ### - Move to srilm folder cd ../srilm - Type the command and run it make World - Type the command add SRILM to global PATH variable. export PATH=/home/chloe/tools/srilm/bin/i686-m64:/home/chloe/tools/ srilm/bin:$PATH - Type the command make all - And we are done with SRILM!
2.3. Install GIZA
- Move to folder gizapp cd ../gizapp make - Copy GIZA++ and mkcls to a bin location for Moses Scripts in /home/chloe/tools - Create folder bin mkdir -p bin cp GIZA++-v2/GIZA++ bin/ cp GIZA++-v2/snt2cooc.out bin/ cp mkcls-v2/mkcls bin/ Both GIZA++ and mkcls will be called by Moses training scripts. And we are done with Giza++!
2.4. Install Mosese
export BOOST_ROOT=/home/chloe/tools/boost_1_55_0 export BOOST_LIBRARYDIR=/home/chloe/tools/boost_1_55_0/lib64 - yum install zlib* - yum install libex* - yum install gperftools - yum install glibc-static - yum install yasm zlib-devel bzip2-devel libogg-devel libtheora-devel libvorbis-devel libsamplerate-devel libxml2-devel fribidi-devel freetype-devel fontconfig-devel libass-devel dbus-glib-devel libgudev1-devel webkitgtk-devel libnotify-devel gstreamer-devel gstreamer-plugins-base-devel - install tcl*dev libboost* - yum install libtool autoconf automake check check-devel - yum groupinstall "Development Tools" - set up LD_LIBRARY_PATH as export LD_LIBRARY_PATH= path to boost - Move to mosesdecoder folder cd mosesdecoder - Type the command and run it ./bjam --with-boost=/home/chloe/tools/boost_1_55_0 --with-srilm=/home/chloe/tools/srilm --with-giza=/home/chloe/tools/bin -j8