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:12:29 UTC

incubator-joshua git commit: Updated test for feature ordering

Repository: incubator-joshua
Updated Branches:
  refs/heads/7 c26ef741b -> e60c77967


Updated test for feature ordering


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

Branch: refs/heads/7
Commit: e60c7796742381d91e7438c30736ea5adcaed25b
Parents: c26ef74
Author: Matt Post <po...@cs.jhu.edu>
Authored: Thu Sep 15 17:12:25 2016 +0200
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Thu Sep 15 17:12:25 2016 +0200

----------------------------------------------------------------------
 .../joshua/decoder/phrase/decode/PhraseDecodingTest.java  | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/e60c7796/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 b17799f..5d40bf7 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,9 +38,7 @@ 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 ||| 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 = "0 ||| a strategy republican to hinder reelection Obama ||| pt_3=-8.555386 pt_2=-7.542729 pt_1=-10.799793 pt_0=-9.702445 lm_0=-19.116861 WordPenalty=-3.040061 PhrasePenalty=5.000000 Distortion=0.000000 ||| -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;
@@ -66,6 +64,12 @@ public class PhraseDecodingTest {
     assertEquals(translation, gold);
   }
   
+  /**
+   * Phrase alignment output is currently not available, has been removed until we refactor the
+   * output (MJP, Sept. 2016)
+   * 
+   * @throws IOException
+   */
   @Test(enabled = false)
   public void givenInput_whenPhraseDecodingWithAlignments_thenOutputHasAlignments() throws IOException {
     final String translation = decode(INPUT).toString().trim();