我看到适用于 Giza 的正确安装指南,但不适用于 Giza++。安装前者的说明(可在此处找到)http://giza.sourceforge.net/documentation/installation.html http://giza.sourceforge.net/documentation/installation.html)显然不适用于后者。我使用的是 Ubuntu 12.04。
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
当您安装 Moses 时,GIZA++ 也会安装在mosesdecoder/bin/
目录。看http://www.statmt.org/moses/?n=Development.GetStarted 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/
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)