diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-18 16:04:42 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-18 16:04:42 +0400 |
commit | c343469b4383f40f16051bfb7d7f3cf21926626f (patch) | |
tree | 412642c9facd8ba6c7c1e9c00fd2477383cf32ba /tests/phrase.show-weights.lex-reorder | |
parent | 0d5fc907f0588d9411158f8c73eb61b30846b83d (diff) |
update moses.ini to new format
Diffstat (limited to 'tests/phrase.show-weights.lex-reorder')
-rw-r--r-- | tests/phrase.show-weights.lex-reorder/moses.ini | 65 |
1 files changed, 16 insertions, 49 deletions
diff --git a/tests/phrase.show-weights.lex-reorder/moses.ini b/tests/phrase.show-weights.lex-reorder/moses.ini index bbe14fa..a020dfe 100644 --- a/tests/phrase.show-weights.lex-reorder/moses.ini +++ b/tests/phrase.show-weights.lex-reorder/moses.ini @@ -10,57 +10,24 @@ [mapping] T 0 -# translation tables: source-factors, target-factors, number of scores, file -[ttable-file] -0 0 0 5 ${MODEL_PATH}/lexicalized-reordering/phrase-table.0-0.gz - -# no generation models, no generation-file section - -# language models: type(srilm/irstlm), factors, order, file -[lmodel-file] -8 0 5 ${MODEL_PATH}/lexicalized-reordering/europarl.lm - - -# limit on how many phrase translations e for each phrase f are loaded -# 0 = all elements loaded -[ttable-limit] -20 -0 -# distortion (reordering) files -[distortion-file] -0-0 msd-bidirectional-fe 6 ${MODEL_PATH}/lexicalized-reordering/reordering-table.msd-bidirectional-fe.0.5.0-0.gz - -# distortion (reordering) weight -[weight-d] -0.5 -0.3 -0.3 -0.3 -0.3 -0.3 -0.3 - -# language model weights -[weight-l] -0.5000 - - -# translation model weights -[weight-t] -0.2 -0.2 -0.2 -0.2 -0.2 - -# no generation models, no weight-generation section - -# word penalty -[weight-w] --1 - [distortion-limit] 6 [show-weights] 1 + +[feature] +KENLM factor=0 order=5 num-features=1 lazyken=0 path=${MODEL_PATH}/lexicalized-reordering/europarl.lm +Distortion +LexicalReordering type=msd-bidirectional-fe input-factor=0 output-factor=0 num-features=6 path=${MODEL_PATH}/lexicalized-reordering/reordering-table.msd-bidirectional-fe.0.5.0-0.gz +WordPenalty +UnknownWordPenalty +PhraseDictionaryMemory input-factor=0 output-factor=0 path=${MODEL_PATH}/lexicalized-reordering/phrase-table.0-0.gz num-features=5 table-limit=20 + +[weight] +WordPenalty0= -1 +KENLM0= 0.5 +Distortion0= 0.5 +LexicalReordering0= 0.3 0.3 0.3 0.3 0.3 0.3 +PhraseDictionaryMemory0= 0.2 0.2 0.2 0.2 0.2 + |