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-17 19:32:50 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-07-17 19:32:50 +0400
commit7914f62c67e54537edaa6eebd5ce147586fe69cb (patch)
tree62b93a871ac6eb5c115b9333f9236430f346018c
parent7e99b34654dcecbaa1235fe6b312d65ddbec338d (diff)
update moses.ini to new format
-rw-r--r--tests/phrase.compresspt/moses.ini55
1 files changed, 14 insertions, 41 deletions
diff --git a/tests/phrase.compresspt/moses.ini b/tests/phrase.compresspt/moses.ini
index 899e2c1..b9434a6 100644
--- a/tests/phrase.compresspt/moses.ini
+++ b/tests/phrase.compresspt/moses.ini
@@ -13,47 +13,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]
-12 0 0 5 ${TEST_PATH}/phrase-table.minphr
-
-# no generation models, no generation-file section
-
-# language models: type(srilm/irstlm), factors, order, file
-[lmodel-file]
-1 0 3 ${MODEL_PATH}/ptable-with-alignment/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.6
-
-# 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
-
[distortion-limit]
6
@@ -69,4 +28,18 @@ true
true
+[feature]
+IRSTLM factor=0 order=3 num-features=1 path=${MODEL_PATH}/ptable-with-alignment/mini.irstlm.en.3g.lm
+Distortion
+WordPenalty
+UnknownWordPenalty
+PhraseDictionaryCompact input-factor=0 output-factor=0 path=${TEST_PATH}/phrase-table.minphr num-features=5 table-limit=20
+
+[weight]
+WordPenalty0= -1
+IRSTLM0= 0.5
+Distortion0= 0.6
+PhraseDictionaryCompact0= 0.2 0.2 0.2 0.2 0.2
+
+