diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-18 15:31:49 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-18 15:31:49 +0400 |
commit | a21908e107cd719d055105d57d55b84d4694fbc6 (patch) | |
tree | 6cc8a3e3b20a30cb995ea9c8ab26104626c11a88 | |
parent | cd9fcd7c06b77a84a1e87823337b0664126fde98 (diff) |
update moses.ini to new format
-rw-r--r-- | tests/phrase.multi-factor/moses.ini | 66 |
1 files changed, 17 insertions, 49 deletions
diff --git a/tests/phrase.multi-factor/moses.ini b/tests/phrase.multi-factor/moses.ini index 6e12521..0cc0ee1 100644 --- a/tests/phrase.multi-factor/moses.ini +++ b/tests/phrase.multi-factor/moses.ini @@ -17,55 +17,23 @@ T 0 G 0 T 1 -# translation tables: source-factors, target-factors, number of scores, file -[ttable-file] -0 0 0 5 ${MODEL_PATH}/multi-factor/phrase-table.0-0.gz -1 1 1 5 ${MODEL_PATH}/multi-factor/phrase-table.1-1.gz - -# generation models: source-factors, target-factors -[generation-file] -0 1 2 ${MODEL_PATH}/multi-factor/generation.0-1.gz - -# language models: 0, factors, type, file -[lmodel-file] -8 0 3 ${LM_PATH}/europarl.en.srilm.gz - -# limit on how many phrase translations e for each phrase f are loaded -# 0 = all elements loaded -[ttable-limit] -20 -0 - -# distortion (reordering) weight -[weight-d] -0.6 - -# language model weights -[weight-l] -0.5 - -# translation model weights -[weight-t] -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 - -# generation model weights -[weight-generation] -0.3 -0 - -# word penalty -[weight-w] --1 - [verbose] 2 +[feature] +KENLM factor=0 order=3 num-features=1 lazyken=0 path=${LM_PATH}/europarl.en.srilm.gz +Generation input-factor=0 output-factor=1 num-features=2 path=${MODEL_PATH}/multi-factor/generation.0-1.gz +Distortion +WordPenalty +UnknownWordPenalty +PhraseDictionaryMemory input-factor=0 output-factor=0 path=${MODEL_PATH}/multi-factor/phrase-table.0-0.gz num-features=5 table-limit=20 +PhraseDictionaryBinary input-factor=1 output-factor=1 path=${MODEL_PATH}/multi-factor/phrase-table.1-1.gz num-features=5 table-limit=0 + +[weight] +WordPenalty0= -1 +KENLM0= 0.5 +Generation0= 0.3 0 +Distortion0= 0.6 +PhraseDictionaryMemory0= 0.2 0.2 0.2 0.2 0.2 +PhraseDictionaryBinary0= 0.2 0.2 0.2 0.2 0.2 + |