diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-17 19:54:57 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-07-17 19:54:57 +0400 |
commit | a6bee7673bad6a3511cf8b92af1972650bc8bae2 (patch) | |
tree | e4d8b6c792508898035ab502587be23e46232922 | |
parent | be192058e202b2426c5735c555f683bf59533ef5 (diff) |
update moses.ini to new format
-rw-r--r-- | tests/phrase.early-distortion-cost/moses.ini | 55 |
1 files changed, 14 insertions, 41 deletions
diff --git a/tests/phrase.early-distortion-cost/moses.ini b/tests/phrase.early-distortion-cost/moses.ini index d08dbdd..1ac658f 100644 --- a/tests/phrase.early-distortion-cost/moses.ini +++ b/tests/phrase.early-distortion-cost/moses.ini @@ -10,47 +10,6 @@ [mapping] 0 T 0 -# translation tables: table type (hierarchical(0), textual (0), binary (1)), source-factors, target-factors, number of scores, file -# OLD FORMAT is still handled for back-compatibility -# OLD FORMAT translation tables: source-factors, target-factors, number of scores, file -# OLD FORMAT a binary table type (1) is assumed -[ttable-file] -0 0 0 5 ${TEST_PATH}/phrase-table.gz - -# no generation models, no generation-file section - -# language models: type(srilm/irstlm), factors, order, file -[lmodel-file] -1 0 3 ${TEST_PATH}/mini.irstlm.en.3g.lm - -# limit on how many phrase translations e for each phrase f are loaded -# 0 = all elements loaded -[ttable-limit] -20 - -# distortion (reordering) weight -[weight-d] -0.05 - -# language model weights -[weight-l] -0.5000 - - -# translation model weights -[weight-t] -0.20 -0.20 -0.20 -0.20 -0.20 - -# no generation models, no weight-generation section - -# word penalty -[weight-w] --1 - [early-distortion-cost] yes @@ -64,3 +23,17 @@ yes nbest 50 +[feature] +IRSTLM factor=0 order=3 num-features=1 path=${TEST_PATH}/mini.irstlm.en.3g.lm +Distortion +WordPenalty +UnknownWordPenalty +PhraseDictionaryMemory input-factor=0 output-factor=0 path=${TEST_PATH}/phrase-table.gz num-features=5 table-limit=20 + +[weight] +WordPenalty0= -1 +IRSTLM0= 0.5 +Distortion0= 0.05 +PhraseDictionaryMemory0= 0.2 0.2 0.2 0.2 0.2 + + |