Mgiza

From Apertium
Jump to navigation Jump to search

mgizapp is an alternative to Giza++ that can use multiple cores and is sometimes faster and also it is possible to download it.

git clone https://github.com/moses-smt/mgiza.git
cmake -DCMAKE_INSTALL_PREFIX=/path/to/prefix
make
make install
# Moses expects all the giza stuff to be in the same folder,
# this way you can use -external-bin-dir=/path/to/prefix/bin
cp /path/to/prefix/scripts/merge_alignment.py /path/to/prefix/bin/merge_alignment.py
# also, do this before running moses:
export PYTHONIOENCODING=utf-8

See also