Is there a proper installation guide for Giza++ on Ubuntu?

五迷三道 提交于 2019-12-23 23:48:00

问题


I see proper installation guide available for Giza, but not for Giza++. The instructions for installing the former (as found here http://giza.sourceforge.net/documentation/installation.html) is obviously not working on the latter. I am using Ubuntu 12.04.


回答1:


TL;DR

sudo apt-get install build-essential git-core pkg-config automake libtool wget zlib1g-dev python-dev libbz2-dev
git clone https://github.com/moses-smt/mosesdecoder.git 
cd mosesdecoder
make -f contrib/Makefiles/install-dependencies.gmake
./compile.sh 

When you install Moses, GIZA++ is also installed in the mosesdecoder/bin/ directory. See http://www.statmt.org/moses/?n=Development.GetStarted


To install MGIZA++, do this:

sudo apt-get install -y cmake libboost-all-dev
git clone https://github.com/moses-smt/mgiza.git
cd mgiza/mgizapp
cmake . && make && make install
cp scripts/merge_alignment.py bin/

The binaries for MGIZA++ would be in mgiza/mgizapp/bin/.




回答2:


Assuming that you have the dependencies, simple install with:

$ wget https://giza-pp.googlecode.com/files/giza-pp-v1.0.7.tar.gz
$ tar -zxvf giza-pp-v1.0.7.tar.gz 
$ cd giza-pp/
$ make

I've uploaded the pre-compiled binaries and you can get it here, but i'm not sure whether it works on your machine:

https://dl.dropboxusercontent.com/u/45771499/giza-binaries.zip

If you run into dependencies problems, simply install the dependencies required by the MOSES toolkit:

sudo apt-get install g++ git subversion automake libtool zlib1g-dev libboost-all-dev libbz2-dev liblzma-dev

Personally, I would just use the fast aligner which implemented IBM model 2 without the whole fuss about mkcls, see https://github.com/clab/fast_align



来源:https://stackoverflow.com/questions/21955792/is-there-a-proper-installation-guide-for-giza-on-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!