Download Statistical Machine Translation System User Manual and Code Guide

Transcript
3.3. Advanced Features of the Decoder
121
giga4
false
Note that if for testing or experimentation purposes you would like to have the whole model
on the local machine instead of over the network, change the false to true. You must have
sufficient memory to host the whole model, but decoding will be significantly faster.
To use this, put the following line in your moses.ini file:
11 0 0 5 /home/user/dmap/giga4.conf
3.3.31
Suffix Arrays for Hierarchical Models
The phrase-based model uses a suffix array implementation which comes with Moses.
If you want to use suffix arrays for hierarchical models, use Adam Lopez’s implementation.
The source code for this is currently in cdec at
https://github.com/redpony/cdec/
unde the subdirectory
sa-extract
You have to compile cdec so please follow it’s instructions.
Note - the suffix array code requires Python 2.7 or above, and cython . If you have Linux
installations which are a few years old, check this first.
Adam’s implementation writes the suffix array to binary files, given the parallel training data
and word alignment. The Moses toolkit has a wrapper script which simplifies this process:
./scripts/training/wrappers/adam-suffix-array/suffix-array-create.sh
[path to cdec/sa-extract]
[source corpus]
[target corpus]
[word alignment]
[output suffix array directory]
[output glue rules]