You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/09/18 00:13:53 UTC

[20/30] incubator-joshua git commit: Fixed remaining test cases

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/503a5fdd/joshua-core/src/test/java/org/apache/joshua/decoder/cky/BnEnSAMTTest.conf
----------------------------------------------------------------------
diff --git a/joshua-core/src/test/java/org/apache/joshua/decoder/cky/BnEnSAMTTest.conf b/joshua-core/src/test/java/org/apache/joshua/decoder/cky/BnEnSAMTTest.conf
new file mode 100644
index 0000000..db1ee04
--- /dev/null
+++ b/joshua-core/src/test/java/org/apache/joshua/decoder/cky/BnEnSAMTTest.conf
@@ -0,0 +1,43 @@
+mark_oovs = false
+default_non_terminal = OOV
+goalSymbol = GOAL
+num_translation_options = 0
+pop_limit = 10
+use_unique_nbest = true
+top_n = 10
+output_format = "%c %s"
+
+feature_functions = [
+  { class = LanguageModel, lm_type = kenlm, lm_order = 5, lm_file = src/test/resources/bn-en/samt/lm.gz }
+  { class = OOVPenalty }
+  { class = WordPenalty }
+]
+
+grammars = [
+  { owner = pt, path = src/test/resources/bn-en/samt/grammar.gz, class = TextGrammar, span_limit = 12 }
+  { owner = glue, path = src/test/resources/bn-en/samt/grammar.glue, class = TextGrammar, span_limit = -1 }
+]
+
+weights = {
+  OOVPenalty = 1.0
+  WordPenalty = -3.0476045270236662
+  glue_0 = -1
+  lm_0 = 1.3200621467242506
+  pt_0 = -0.4571255198114019
+  pt_1 = 0.17399038425384106
+  pt_10 = -0.52186013168725
+  pt_11 = 0.7874679555197446
+  pt_12 = 0.03770136145251124
+  pt_13 = -0.37085201114442157
+  pt_14 = -0.34054825749510886
+  pt_15 = -0.008348471483412778
+  pt_16 = -0.7984119288127296
+  pt_2 = 0.784547842535801
+  pt_3 = -0.76254324621594
+  pt_4 = 0.8628695028838571
+  pt_5 = -0.04258438925263152
+  pt_6 = -0.5278815893934184
+  pt_7 = -0.9255662450788644
+  pt_8 = -0.03385066779097645
+  pt_9 = -0.9918446849428446
+}