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.
问问题
2060 次
2 回答
1
TL;博士
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
要安装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/
.
于 2017-04-07T09:42:44.343 回答
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
于 2014-03-09T14:54:54.300 回答