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/13 00:25:20 UTC

[3/3] incubator-joshua git commit: updated test case to new format

updated test case to new format


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

Branch: refs/heads/7
Commit: 55caf2442e47e6acd0b164f268df1eff9b2819e0
Parents: 8193dc8
Author: Matt Post <po...@cs.jhu.edu>
Authored: Tue Sep 13 02:25:10 2016 +0200
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Tue Sep 13 02:25:10 2016 +0200

----------------------------------------------------------------------
 bin/debug-joshua                                               | 2 +-
 .../joshua/decoder/phrase/decode/PhraseDecodingTest.java       | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/55caf244/bin/debug-joshua
----------------------------------------------------------------------
diff --git a/bin/debug-joshua b/bin/debug-joshua
index 0fd76f4..b453b22 100755
--- a/bin/debug-joshua
+++ b/bin/debug-joshua
@@ -44,5 +44,5 @@ JAR_PATH=$(ls -t $JOSHUA/target/joshua-*-jar-with-dependencies.jar | head -n1)
 exec java -Xmx${mem} \
 	-Dfile.encoding=utf8 \
 	-Djava.library.path=$JOSHUA/lib \
-	-cp $JOSHUA/target/classes:$JAR_PATH \
+	-cp $JOSHUA/joshua-core/target/classes:$JAR_PATH \
 	org.apache.joshua.decoder.JoshuaDecoder -v 2 "$@"

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/55caf244/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/decode/PhraseDecodingTest.java
----------------------------------------------------------------------
diff --git a/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/decode/PhraseDecodingTest.java b/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/decode/PhraseDecodingTest.java
index 66515de..b17799f 100644
--- a/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/decode/PhraseDecodingTest.java
+++ b/joshua-core/src/test/java/org/apache/joshua/decoder/phrase/decode/PhraseDecodingTest.java
@@ -38,8 +38,10 @@ public class PhraseDecodingTest {
 
   private static final String CONFIG = "src/test/resources/phrase_decoder/config";
   private static final String INPUT = "una estrategia republicana para obstaculizar la reelecci�n de Obama";
-  private static final String OUTPUT = "0 ||| a strategy republican to hinder reelection Obama ||| tm_pt_0=-9.702 tm_pt_1=-10.800 tm_pt_2=-7.543 tm_pt_3=-8.555 lm_0=-19.117 OOVPenalty=0.000 WordPenalty=-3.040 Distortion=0.000 PhrasePenalty=5.000 ||| -7.496";
-  private static final String OUTPUT_WITH_ALIGNMENTS = "0 ||| a strategy |0-1| republican |2-2| to hinder |3-4| reelection |5-6| Obama |7-8| ||| tm_pt_0=-9.702 tm_pt_1=-10.800 tm_pt_2=-7.543 tm_pt_3=-8.555 lm_0=-19.117 OOVPenalty=0.000 WordPenalty=-3.040 Distortion=0.000 PhrasePenalty=5.000 ||| -7.496";
+
+
+  private static final String OUTPUT = "0 ||| a strategy republican to hinder reelection Obama ||| Distortion=0.000000 WordPenalty=-3.040061 PhrasePenalty=5.000000 pt_0=-9.702445 pt_1=-10.799793 pt_2=-7.542729 pt_3=-8.555386 lm_0=-19.116861 ||| -7.496";
+  private static final String OUTPUT_WITH_ALIGNMENTS = "0 ||| a strategy |0-1| republican |2-2| to hinder |3-4| reelection |5-6| Obama |7-8| ||| Distortion=0.000000 WordPenalty=-3.040061 PhrasePenalty=5.000000 pt_0=-9.702445 pt_1=-10.799793 pt_2=-7.542729 pt_3=-8.555386 lm_0=-19.116861 ||| -7.496";
   
   private JoshuaConfiguration joshuaConfig = null;
   private Decoder decoder = null;