Er erzielte <NUMBER english='17.55'>17.55</NUMBER> Punkte .
Probabilities could also be given, for example:
Es ist <NPPP english='a small house|a little house' prob='0.6|0.4'>
ein kleines Haus
Implement a phrasicon for moses by messing with the phrase translation table. But can you do this is a principled way?
Running moses without filtering the model will cause a failure on ngram, morpheme (our 2GB RAM machines) while loading the model into memory (so you have the pleasant experience of crashing moses while trying to translate je parle francais) Just before failure we have a 3GB virtual image using 1.4 GB swap (according to top). Then:
[gawron@morpheme evaluation]$ ~/mt/moses/moses-cmd/src/moses -config /scratch/mt/tuning/moses.weight-reused.ini -input-file ~/new_test.fr >> ~/new_test.en
Defined parameters (per moses.ini or switch):
config: /scratch/mt/tuning/moses.weight-reused.ini
distortion-file: 0-0 msd-bidirectional-fe 6 /scratch/mt/model/reordering-table.msd-bidirectional-fe.0.5.0-0.gz
distortion-limit: 6
input-factors: 0
input-file: /home/gawron/new_test.fr
lmodel-file: 0 0 5 /scratch/mt/lm/europarl.lm
mapping: 0 T 0
ttable-file: 0 0 5 /scratch/mt/model/phrase-table.0-0.gz
ttable-limit: 20 0
weight-d: 0.062701 0.147073 -0.013620 -0.034194 0.155787 0.054588 0.135913
weight-l: 0.086438
weight-t: 0.042401 0.049556 0.058195 0.033184 0.036851
weight-w: -0.089499
Loading lexical distortion models...
have 1 models
Creating lexical reordering...
weights: 0.147 -0.014 -0.034 0.156 0.055 0.136
Loading table into memory...done.
Created lexical orientation reordering
Start loading LanguageModel /scratch/mt/lm/europarl.lm : [416.000] seconds
moses: ../../include/LHash.cc:133: void LHash
Aborted
[gawron@morpheme evaluation]$
/opt/bin/moses-scripts/scripts-20070526-0023/training/filter-model-given-input.pl working-dir/evaluation/filtered.devtest2006 working-dir/tuning/moses.weight-reused.ini [file with input data to filter]
A new model is created which discards all vocab and phrases not in the input dataset.