2014-02-22 117 views

回答

0

假設你有依賴關係,簡單的安裝有:

$ 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 

我已上載的預編譯的二進制文件,你可以在這裏得到它,但我不知道它是否在你的機器上:

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

如果遇到問題的依賴性,只需安裝由MOSES工具包所需的依賴關係:

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

就個人而言,我只想用它來實現IBM模型2不整做文章mkcls快速對準,看到https://github.com/clab/fast_align

+0

你如何測試這項工作? – rj2700

+0

三年...查看新的答案。 – alvas

0

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 

當您安裝摩西,GIZA ++也安裝在mosesdecoder/bin/目錄。見http://www.statmt.org/moses/?n=Development.GetStarted


要安裝MGIZA++,這樣做:

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/ 

爲MGIZA ++的二進制文件將是mgiza/mgizapp/bin/