Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/moses-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-07-18 15:17:49 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-07-18 15:17:49 +0400
commitcd9fcd7c06b77a84a1e87823337b0664126fde98 (patch)
treecbdafd7e05c2b86a3c6a25ec8a4422dde77c3955
parentd2a02854449e95f0e2f9c111c33e657319f7985b (diff)
update moses.ini to new format
-rw-r--r--tests/phrase.lexicalized-reordering-bin/moses.ini62
1 files changed, 15 insertions, 47 deletions
diff --git a/tests/phrase.lexicalized-reordering-bin/moses.ini b/tests/phrase.lexicalized-reordering-bin/moses.ini
index 27bf874..b9d0232 100644
--- a/tests/phrase.lexicalized-reordering-bin/moses.ini
+++ b/tests/phrase.lexicalized-reordering-bin/moses.ini
@@ -10,54 +10,22 @@
[mapping]
T 0
-# translation tables: source-factors, target-factors, number of scores, file
-[ttable-file]
-1 0 0 5 ${MODEL_PATH}/lexicalized-reordering-bin/phrase-table
-
-# 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-bin/reordering-table.msd-bidirectional-fe
-
-# 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
-
+[distortion-limit]
+6
-# translation model weights
-[weight-t]
-0.2
-0.2
-0.2
-0.2
-0.2
+[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-bin/reordering-table.msd-bidirectional-fe
+WordPenalty
+UnknownWordPenalty
+PhraseDictionaryBinary input-factor=0 output-factor=0 path=${MODEL_PATH}/lexicalized-reordering-bin/phrase-table num-features=5 table-limit=20
-# no generation models, no weight-generation section
+[weight]
+WordPenalty0= -1
+KENLM0= 0.5
+Distortion0= 0.5
+LexicalReordering0= 0.3 0.3 0.3 0.3 0.3 0.3
+PhraseDictionaryBinary0= 0.2 0.2 0.2 0.2 0.2
-# word penalty
-[weight-w]
--1
-[distortion-limit]
-6