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/15 15:08:21 UTC

[2/5] incubator-joshua git commit: Fixed SourceAnnotations Test for 7

Fixed SourceAnnotations Test for 7


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/1091b9e8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/1091b9e8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/1091b9e8

Branch: refs/heads/7
Commit: 1091b9e8d49165a2ec9f20b62f3a15b37ffb4dda
Parents: eba33ba
Author: Hieber, Felix <fh...@amazon.de>
Authored: Thu Sep 15 16:57:01 2016 +0200
Committer: Hieber, Felix <fh...@amazon.de>
Committed: Thu Sep 15 17:00:39 2016 +0200

----------------------------------------------------------------------
 .../org/apache/joshua/decoder/cky/SourceAnnotationsTest.java     | 4 ++--
 .../src/test/resources/decoder/source-annotations/joshua.config  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/1091b9e8/joshua-core/src/test/java/org/apache/joshua/decoder/cky/SourceAnnotationsTest.java
----------------------------------------------------------------------
diff --git a/joshua-core/src/test/java/org/apache/joshua/decoder/cky/SourceAnnotationsTest.java b/joshua-core/src/test/java/org/apache/joshua/decoder/cky/SourceAnnotationsTest.java
index 485cf9f..28fc9e3 100644
--- a/joshua-core/src/test/java/org/apache/joshua/decoder/cky/SourceAnnotationsTest.java
+++ b/joshua-core/src/test/java/org/apache/joshua/decoder/cky/SourceAnnotationsTest.java
@@ -30,8 +30,8 @@ import org.testng.annotations.Test;
 public class SourceAnnotationsTest {
 
   private static final String INPUT = "mis[tag=ADJ;num=PL;class=OOV] amigos me llaman";
-  private static final String GOLD_WITHOUT_ANNOTATIONS = "my friends call me ||| tm_pt_0=-3.000 tm_glue_0=3.000 lm_0=-11.974 OOVPenalty=0.000 WordPenalty=-2.606 ||| -7.650";
-  private static final String GOLD_WITH_ANNOTATIONS = "my friends call me ||| tm_pt_0=-3.000 tm_glue_0=3.000 lm_0=-111.513 OOVPenalty=0.000 WordPenalty=-2.606 ||| -107.189";
+  private static final String GOLD_WITHOUT_ANNOTATIONS = "my friends call me ||| pt_0=3.000000 lm_0=-11.973694 glue_0=-3.000000 WordPenalty=-2.605767 ||| -7.650";
+  private static final String GOLD_WITH_ANNOTATIONS = "my friends call me ||| pt_0=3.000000 lm_0=-111.512733 glue_0=-3.000000 WordPenalty=-2.605767 ||| -107.189";
 
   private static final String JOSHUA_CONFIG_PATH = "src/test/resources/decoder/source-annotations/joshua.config";
 

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/1091b9e8/joshua-core/src/test/resources/decoder/source-annotations/joshua.config
----------------------------------------------------------------------
diff --git a/joshua-core/src/test/resources/decoder/source-annotations/joshua.config b/joshua-core/src/test/resources/decoder/source-annotations/joshua.config
index 788505e..12e99ec 100644
--- a/joshua-core/src/test/resources/decoder/source-annotations/joshua.config
+++ b/joshua-core/src/test/resources/decoder/source-annotations/joshua.config
@@ -121,8 +121,8 @@ lm_0 1.0
 # we plan to add a sparse feature representation which will simplify
 # this.
 
-tm_pt_0 0.049141264495762726
-tm_glue_0 0.1663815584150378
+pt_0 -0.049141264495762726
+glue_0 -0.1663815584150378
 
 # The wordpenalty feature counts the number of words in each hypothesis.