Moses

From Apertium
Jump to navigation Jump to search

En français

Requisites

Compiling

See Using GIZA++ for how to compile that. Moses also supports mgiza as an alternative to Giza.

See IRSTLM for how to compile that.

Do

git clone https://github.com/moses-smt/mosesdecoder
cd mosesdecoder/
./bjam 

The bjam part takes a long while.

Building language model

export IRSTLM=/path/prefix
build-lm.sh -i cy.crp.txt -o cy.lm.gz -t /tmp

Troubleshooting

If your logs anywhere say anything about UnicodeEncodeError, you might have to do

export PYTHONIOENCODING=utf-8

before running train-model.perl (or fix merge_alignments.py yourself)

See also

External links