source /export/ws06osmt/data/mtlab07/config-env.mt
You can verify this has worked properly by typing which moses and verifying its output:
[x32:~]$ which moses /export/ws06osmt/data/mtlab07/scripts/moses
mkdir MT-LAB
cd MT-LAB
cp -r /export/ws06osmt/data/mtlab07/data/* .
This section describes the operation of the tools used in the lab and the data layout required. These tools are thin wrappers around the Moses tools, so it may be instructive to look at the sources (see use which lab-tool to find the path to the script).
Each tool used in the lab takes a parameter that specifies a set of training data, the resulting model, and a set of development (dev-test) data. You are provided with four example systems (train.kvj-modern, train.es-en, train.tok.es-en, and model.project-syndicate.es-en), and you can use these as the starting point to create new systems. Each directory must minimally containing training data and evaluation data:
Once a system has been trained, the directory will contain a model subdirectory which contains the moses.ini configuration file, which contains references to all the models generated in the training step.
The lab-train tool takes a single parameter that specifies a directory containing training data and uses this to build a model. If a model already exists, the command will fail. To clear an existing model, you can use the lab-clean command.
moses -f SYSTEM-DIR/model/moses.iniMoses reads input from STDIN in the source language and writes translations to STDOUT.