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 13:31:34 UTC
[08/13] incubator-joshua git commit: Moved regression test
decoder/phrase/unique-hypothesis to unit test. Replaced broken soft-links
with actual files and cleaned up the directory.
Moved regression test decoder/phrase/unique-hypothesis to unit test. Replaced broken soft-links with actual files and cleaned up the directory.
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/b429cc7d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/b429cc7d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/b429cc7d
Branch: refs/heads/master
Commit: b429cc7d8802a67c0eb948339984d5c7f5bef24e
Parents: d9bb3e5
Author: Michael A. Hedderich <mi...@users.noreply.github.com>
Authored: Thu Sep 15 14:09:51 2016 +0200
Committer: Michael A. Hedderich <mi...@users.noreply.github.com>
Committed: Thu Sep 15 14:21:05 2016 +0200
----------------------------------------------------------------------
.../decoder/cky/UniqueHypothesesTest.java | 72 +++++
.../decoder/phrase/unique-hypotheses/README | 1 -
.../decoder/phrase/unique-hypotheses/corpus.es | 1 -
.../phrase/unique-hypotheses/joshua.config | 4 +-
.../decoder/phrase/unique-hypotheses/lm.1.gz | Bin 17 -> 2235 bytes
.../phrase/unique-hypotheses/output.gold | 300 -------------------
.../decoder/phrase/unique-hypotheses/rules.1.gz | Bin 20 -> 2998042 bytes
.../decoder/phrase/unique-hypotheses/test.sh | 32 --
8 files changed, 74 insertions(+), 336 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b429cc7d/src/test/java/org/apache/joshua/decoder/cky/UniqueHypothesesTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/joshua/decoder/cky/UniqueHypothesesTest.java b/src/test/java/org/apache/joshua/decoder/cky/UniqueHypothesesTest.java
new file mode 100644
index 0000000..8dc0e56
--- /dev/null
+++ b/src/test/java/org/apache/joshua/decoder/cky/UniqueHypothesesTest.java
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.joshua.decoder.cky;
+
+import static org.apache.joshua.decoder.cky.TestUtil.decodeList;
+import static org.testng.Assert.assertEquals;
+
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import org.apache.joshua.decoder.Decoder;
+import org.apache.joshua.decoder.JoshuaConfiguration;
+import org.apache.joshua.util.io.KenLmTestUtil;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.Test;
+
+/**
+ * Ensures that derivations are unique for the phrase-based decoder.
+ */
+public class UniqueHypothesesTest {
+
+ public static final String INPUT = "una estrategia republicana para obstaculizar la reelecci�n de Obama";
+
+ private JoshuaConfiguration joshuaConfig = null;
+ private Decoder decoder = null;
+
+ @Test
+ public void givenInputSentence_whenDecodingWithUniqueHypotheses_thenAllHypothesesUnique()
+ throws Exception {
+ configureDecoder("src/test/resources/decoder/phrase/unique-hypotheses/joshua.config");
+ List<String> decodedStrings = decodeList(Arrays.asList(new String[] { INPUT }), decoder,
+ joshuaConfig);
+
+ assertEquals(decodedStrings.size(), 300);
+
+ // if all strings are unique than the set should have the same size as the
+ // list
+ Set<String> uniqueDecodedStrings = new HashSet<>(decodedStrings);
+ assertEquals(decodedStrings.size(), uniqueDecodedStrings.size());
+ }
+
+ public void configureDecoder(String pathToConfig) throws Exception {
+ joshuaConfig = new JoshuaConfiguration();
+ joshuaConfig.readConfigFile(pathToConfig);
+ KenLmTestUtil.Guard(() -> decoder = new Decoder(joshuaConfig, ""));
+ }
+
+ @AfterMethod
+ public void tearDown() throws Exception {
+ decoder.cleanUp();
+ decoder = null;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b429cc7d/src/test/resources/decoder/phrase/unique-hypotheses/README
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/unique-hypotheses/README b/src/test/resources/decoder/phrase/unique-hypotheses/README
deleted file mode 100644
index 753f57e..0000000
--- a/src/test/resources/decoder/phrase/unique-hypotheses/README
+++ /dev/null
@@ -1 +0,0 @@
-Ensures that derivations are unique for the phrase-based decoder.
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b429cc7d/src/test/resources/decoder/phrase/unique-hypotheses/corpus.es
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/unique-hypotheses/corpus.es b/src/test/resources/decoder/phrase/unique-hypotheses/corpus.es
deleted file mode 120000
index 11373db..0000000
--- a/src/test/resources/decoder/phrase/unique-hypotheses/corpus.es
+++ /dev/null
@@ -1 +0,0 @@
-../decode/corpus.es
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b429cc7d/src/test/resources/decoder/phrase/unique-hypotheses/joshua.config
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/unique-hypotheses/joshua.config b/src/test/resources/decoder/phrase/unique-hypotheses/joshua.config
index c35b267..7cef08e 100644
--- a/src/test/resources/decoder/phrase/unique-hypotheses/joshua.config
+++ b/src/test/resources/decoder/phrase/unique-hypotheses/joshua.config
@@ -1,7 +1,7 @@
-tm = moses pt 0 rules.1.gz
+tm = moses pt 0 src/test/resources/decoder/phrase/unique-hypotheses/rules.1.gz
default-non-terminal = X
goal-symbol = GOAL
-lm = kenlm 5 true false 100 lm.1.gz
+lm = kenlm 5 true false 100 src/test/resources/decoder/phrase/unique-hypotheses/lm.1.gz
mark-oovs = false
pop-limit = 100
top-n = 300
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b429cc7d/src/test/resources/decoder/phrase/unique-hypotheses/lm.1.gz
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/unique-hypotheses/lm.1.gz b/src/test/resources/decoder/phrase/unique-hypotheses/lm.1.gz
deleted file mode 120000
index 3655f03..0000000
--- a/src/test/resources/decoder/phrase/unique-hypotheses/lm.1.gz
+++ /dev/null
@@ -1 +0,0 @@
-../decode/lm.1.gz
\ No newline at end of file
diff --git a/src/test/resources/decoder/phrase/unique-hypotheses/lm.1.gz b/src/test/resources/decoder/phrase/unique-hypotheses/lm.1.gz
new file mode 100644
index 0000000..3f4c453
Binary files /dev/null and b/src/test/resources/decoder/phrase/unique-hypotheses/lm.1.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b429cc7d/src/test/resources/decoder/phrase/unique-hypotheses/output.gold
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/unique-hypotheses/output.gold b/src/test/resources/decoder/phrase/unique-hypotheses/output.gold
deleted file mode 100644
index 0e5fb98..0000000
--- a/src/test/resources/decoder/phrase/unique-hypotheses/output.gold
+++ /dev/null
@@ -1,300 +0,0 @@
-a strategy republican for hinder the re @-@ election of Obama
-a strategy republican for hinder the reelection of Obama
-a strategy republican for obstruct the re @-@ election of Obama
-a strategy republican for obstruct the reelection of Obama
-a strategy republican for hamper the re @-@ election of Obama
-a strategy republican for hamper the reelection of Obama
-a strategy republican to obstruct the re @-@ election of Obama
-a strategy republican for hinder reelection of Obama
-a strategy republican to obstruct the reelection of Obama
-a strategy republican to hinder the re @-@ election of Obama
-a strategy republican to hinder the reelection of Obama
-a strategy republican for obstruct reelection of Obama
-a strategy republican for hinder the reelection Obama
-a strategy republican for hamper reelection of Obama
-a strategy republican for hindering the re @-@ election of Obama
-a strategy republican for obstruct the reelection Obama
-a strategy republican for hindering the reelection of Obama
-an strategy republican for hinder the re @-@ election of Obama
-a strategy republican for hamper the reelection Obama
-an strategy republican for hinder the reelection of Obama
-a strategy republican for obstructing the re @-@ election of Obama
-a strategy republican to hinder reelection of Obama
-a strategy republican hinder for the re @-@ election of Obama
-a strategy republican for obstructing the reelection of Obama
-an strategy republican for obstruct the re @-@ election of Obama
-a strategy republican for the hinder reelection of Obama
-a strategy republican hinder for the reelection of Obama
-a strategy republican for hinder reelection the of Obama
-an strategy republican for obstruct the reelection of Obama
-a strategy republican for hinder reelection Obama
-a strategy republican to obstruct the reelection Obama
-strategy a republican for hinder the re @-@ election of Obama
-a strategy republican obstruct for the re @-@ election of Obama
-a strategy republican for hinder the reelection Obama of
-a strategy republican to hinder the reelection Obama
-a strategy republican for hinder reelection of the Obama
-strategy a republican for hinder the reelection of Obama
-a strategy republican obstruct for the reelection of Obama
-an strategy republican for hamper the re @-@ election of Obama
-a strategy republican for obstruct reelection the of Obama
-a strategy republican for hinder the of reelection Obama
-a strategy republican to obstruct reelection of Obama
-a strategy republican for obstruct reelection Obama
-an strategy republican for hamper the reelection of Obama
-strategy a republican for obstruct the re @-@ election of Obama
-a strategy republican for obstruct the reelection Obama of
-a strategy republican hamper for the re @-@ election of Obama
-a strategy republican for obstruct reelection of the Obama
-strategy a republican for obstruct the reelection of Obama
-a strategy republican for obstruct the of reelection Obama
-a strategy republican for hinder the of Obama reelection
-a strategy republican for hindering reelection of Obama
-a strategy republican hamper for the reelection of Obama
-a strategy republican for hamper reelection the of Obama
-an strategy republican to obstruct the re @-@ election of Obama
-a strategy republican for hamper reelection Obama
-a strategy republican for hinder of the reelection Obama
-an strategy republican for hinder reelection of Obama
-strategy a republican for hamper the re @-@ election of Obama
-an strategy republican to obstruct the reelection of Obama
-an strategy republican to hinder the re @-@ election of Obama
-a strategy republican for hamper the reelection Obama of
-a strategy republican for hindering the reelection Obama
-a strategy republican for hinder the re @-@ election Obama
-a strategy republican for obstruct the of Obama reelection
-a strategy republican for hamper reelection of the Obama
-strategy a republican for hamper the reelection of Obama
-an strategy republican to hinder the reelection of Obama
-one strategy republican for hinder the re @-@ election of Obama
-a strategy republican for obstructing reelection of Obama
-a strategy republican for hamper the of reelection Obama
-a strategy republican for hinder the reelection from Obama
-a strategy republican for hinder reelection the Obama
-one strategy republican for hinder the reelection of Obama
-a strategy republican for obstruct of the reelection Obama
-a strategy republican for hinder the Obama reelection of
-an strategy republican for obstruct reelection of Obama
-a strategy republican for hinder reelection of Obama the
-a strategy republican for the reelection hinder of Obama
-a strategy republican for obstruct the re @-@ election Obama
-an strategy republican for hinder the reelection Obama
-a strategy republican to hinder reelection the of Obama
-a strategy republican for hinder 's reelection Obama
-strategy a republican to obstruct the re @-@ election of Obama
-one strategy republican for obstruct the re @-@ election of Obama
-a strategy republican for obstruct the reelection from Obama
-a strategy republican for hamper the of Obama reelection
-a strategy republican for hinder reelection Obama of
-a strategy republican to hinder reelection Obama
-strategy a republican for hinder reelection of Obama
-a strategy republican to obstruct the reelection Obama of
-a strategy republican for obstruct reelection the Obama
-strategy a republican to obstruct the reelection of Obama
-one strategy republican for obstruct the reelection of Obama
-strategy a republican to hinder the re @-@ election of Obama
-a strategy republican for obstructing the reelection Obama
-a strategy republican for obstruct the Obama reelection of
-a strategy republican for obstruct reelection of Obama the
-a strategy republican to obstruct the of reelection Obama
-a strategy republican to hinder the reelection Obama of
-a strategy republican for the hinder reelection Obama
-a strategy republican hinder for the reelection Obama
-a strategy republican for hamper of the reelection Obama
-a strategy republican to hinder reelection of the Obama
-an strategy republican for hamper reelection of Obama
-a strategy republican for the reelection obstruct of Obama
-strategy a republican to hinder the reelection of Obama
-an strategy republican for hindering the re @-@ election of Obama
-an strategy republican for obstruct the reelection Obama
-a strategy republican for hinder the reelection Obama 's
-a strategy republican to hinder the of reelection Obama
-a strategy republican for obstruct 's reelection Obama
-a strategy republican for hinder the reelection for Obama
-a strategy republican for hamper the re @-@ election Obama
-a strategy republican for obstruct reelection Obama of
-an strategy republican for hindering the reelection of Obama
-strategy a republican for obstruct reelection of Obama
-one strategy republican for hamper the re @-@ election of Obama
-a strategy republican for hamper the reelection from Obama
-a strategy republican for hinder the Obama of reelection
-a strategy republican for hinder the Obama reelection
-a strategy republican for the re @-@ election of Obama hinder
-a strategy republican to obstruct reelection the of Obama
-a strategy republican for hinder of Obama the reelection
-a strategy republican to obstruct the of Obama reelection
-strategy a republican for hinder the reelection Obama
-a strategy republican for hamper reelection the Obama
-a strategy republican obstruct for the reelection Obama
-one strategy republican for hamper the reelection of Obama
-a strategy republican for hamper the Obama reelection of
-a strategy republican for hamper reelection of Obama the
-a strategy republican for the reelection of Obama hinder
-a strategy republican to obstruct reelection Obama
-a strategy republican for obstruct the reelection Obama 's
-a strategy republican to hinder the of Obama reelection
-a strategy republican for obstruct the reelection for Obama
-an strategy republican for hamper the reelection Obama
-a strategy republican for hinder reelection Obama of the
-a strategy republican for hamper 's reelection Obama
-a strategy republican to obstruct reelection of the Obama
-a strategy republican for obstruct the Obama of reelection
-a strategy republican for hamper reelection Obama of
-a strategy republican for obstruct the Obama reelection
-a strategy republican for hinder 's re @-@ election Obama
-a strategy republican for the re @-@ election of Obama obstruct
-an strategy republican for obstructing the re @-@ election of Obama
-strategy a republican for hamper reelection of Obama
-a strategy republican to hinder of the reelection Obama
-a strategy republican for obstruct of Obama the reelection
-a strategy republican to obstruct the re @-@ election Obama
-strategy a republican for hindering the re @-@ election of Obama
-strategy a republican for obstruct the reelection Obama
-an strategy republican to hinder reelection of Obama
-a strategy republican for hindering reelection the of Obama
-a strategy republican for hinder reelection from Obama
-an strategy republican hinder for the re @-@ election of Obama
-strategy an republican for hinder the re @-@ election of Obama
-one strategy republican to obstruct the re @-@ election of Obama
-a strategy republican for the reelection of Obama obstruct
-a strategy republican to obstruct the reelection from Obama
-an strategy republican for obstructing the reelection of Obama
-a strategy republican for hindering the reelection Obama of
-a strategy republican for hinder the re @-@ election Obama of
-a strategy republican for hindering reelection Obama
-a strategy republican hamper for the reelection Obama
-strategy a republican for hindering the reelection of Obama
-a strategy republican to hinder the re @-@ election Obama
-one strategy republican for hinder reelection of Obama
-an strategy republican for the hinder reelection of Obama
-an strategy republican hinder for the reelection of Obama
-strategy an republican for hinder the reelection of Obama
-a strategy republican for hamper the reelection Obama 's
-a strategy republican for hindering the of reelection Obama
-one strategy republican to obstruct the reelection of Obama
-one strategy republican to hinder the re @-@ election of Obama
-an strategy republican for hinder reelection the of Obama
-a strategy republican to hinder the reelection from Obama
-a strategy republican for hinder re @-@ election of the Obama
-a strategy republican to obstruct the Obama reelection of
-a strategy republican for obstruct reelection Obama of the
-a strategy republican for hamper the reelection for Obama
-a strategy republican for reelection hinder of Obama
-a strategy republican for hinder reelection the Obama of
-a strategy republican for hindering reelection of the Obama
-a strategy republican for obstruct 's re @-@ election Obama
-an strategy republican for hinder reelection Obama
-a strategy republican to hinder reelection the Obama
-a strategy republican hinder the re @-@ election of Obama for
-one strategy republican to hinder the reelection of Obama
-a strategy republican for hinder of reelection the Obama
-a strategy republican to hinder the Obama reelection of
-an strategy republican to obstruct the reelection Obama
-a strategy republican to hinder reelection of Obama the
-a strategy republican for hamper the Obama of reelection
-a strategy republican for hinder the of re @-@ election Obama
-a strategy republican for hamper the Obama reelection
-a strategy republican for obstruct reelection from Obama
-an strategy republican obstruct for the re @-@ election of Obama
-a strategy republican for the re @-@ election of Obama hamper
-strategy an republican for obstruct the re @-@ election of Obama
-a strategy republican for obstructing reelection the of Obama
-a strategy republican for hinder of Obama reelection the
-a strategy republican for reelection of Obama hinder the
-a strategy republican for hamper of Obama the reelection
-a strategy republican hinder the reelection of Obama for
-strategy a republican for hamper the reelection Obama
-a strategy republican for obstruct the re @-@ election Obama of
-an strategy republican for hinder the reelection Obama of
-an strategy republican to hinder the reelection Obama
-an strategy republican for hinder reelection of the Obama
-one strategy republican for obstruct reelection of Obama
-a strategy republican for obstructing reelection Obama
-an strategy republican obstruct for the reelection of Obama
-a strategy republican for the reelection of Obama hamper
-strategy an republican for obstruct the reelection of Obama
-a strategy republican to hinder 's reelection Obama
-a strategy republican to obstruct of the reelection Obama
-a strategy republican for hindering the of Obama reelection
-an strategy republican for obstruct reelection the of Obama
-a strategy republican for obstruct re @-@ election of the Obama
-an strategy republican for hinder the of reelection Obama
-strategy a republican for obstructing the re @-@ election of Obama
-an strategy republican to obstruct reelection of Obama
-a strategy republican to hinder reelection Obama of
-a strategy republican for reelection obstruct of Obama
-strategy a republican to hinder reelection of Obama
-one strategy republican for hinder the reelection Obama
-a strategy republican for obstruct reelection the Obama of
-a strategy republican to the reelection hinder of Obama
-strategy a republican hinder for the re @-@ election of Obama
-an strategy republican for obstruct reelection Obama
-a strategy republican for obstructing the reelection Obama of
-a strategy republican for hinder reelection Obama the
-a strategy republican for hinder reelection Obama 's
-a strategy republican obstruct the re @-@ election of Obama for
-a strategy republican for hamper reelection Obama of the
-a strategy republican for reelection of hinder the Obama
-a strategy republican for obstructing reelection of the Obama
-a strategy republican for obstruct of reelection the Obama
-strategy a republican for obstructing the reelection of Obama
-a strategy republican to obstruct the reelection Obama 's
-a strategy republican for obstruct the of re @-@ election Obama
-a strategy republican for hinder reelection for Obama
-a strategy republican for hamper 's re @-@ election Obama
-a strategy republican for the hinder reelection Obama of
-a strategy republican hinder for the reelection Obama of
-a strategy republican for hinder of the re @-@ election Obama
-a strategy republican for the reelection hinder Obama
-a strategy republican to obstruct the reelection for Obama
-a strategy republican for hinder reelection Obama the of
-a strategy republican for obstructing the of reelection Obama
-a strategy republican for obstruct of Obama reelection the
-strategy a republican for the hinder reelection of Obama
-strategy a republican hinder for the reelection of Obama
-a strategy republican obstruct the reelection of Obama for
-a strategy republican for the reelection of hinder Obama
-an strategy republican for obstruct the reelection Obama of
-a strategy republican for hamper reelection from Obama
-an strategy republican hamper for the re @-@ election of Obama
-strategy a republican for hinder reelection the of Obama
-a strategy republican to hinder the reelection Obama 's
-an strategy republican for obstruct reelection of the Obama
-strategy an republican for hamper the re @-@ election of Obama
-a strategy republican hinder for the of reelection Obama
-a strategy republican to obstruct reelection the Obama
-a strategy republican to obstruct the Obama of reelection
-a strategy republican to hinder the reelection for Obama
-a strategy republican for hamper the re @-@ election Obama of
-a strategy republican for hindering the re @-@ election Obama
-a strategy republican to obstruct the Obama reelection
-an strategy republican for obstruct the of reelection Obama
-a strategy republican for hindering of the reelection Obama
-a strategy republican to obstruct reelection of Obama the
-strategy a republican for hinder reelection Obama
-an strategy republican for hinder the of Obama reelection
-one strategy republican for hamper reelection of Obama
-an strategy republican for hindering reelection of Obama
-an strategy republican hamper for the reelection of Obama
-one strategy republican for hindering the re @-@ election of Obama
-strategy a republican to obstruct the reelection Obama
-strategy an republican for hamper the reelection of Obama
-one strategy republican for obstruct the reelection Obama
-a strategy republican for hindering the reelection from Obama
-a strategy republican to the reelection obstruct of Obama
-a strategy republican for reelection of Obama hinder
-a strategy republican for hinder of Obama reelection
-an strategy republican for hamper reelection the of Obama
-strategy a republican obstruct for the re @-@ election of Obama
-a strategy republican for hamper re @-@ election of the Obama
-a strategy republican for obstruct reelection Obama the
-a strategy republican for obstruct reelection Obama 's
-a strategy republican to hinder the Obama of reelection
-a strategy republican to hinder the Obama reelection
-a strategy for hinder the re @-@ election of Obama republican
-a strategy republican for obstruct reelection for Obama
-strategy a republican for hinder the reelection Obama of
-a strategy republican for hamper reelection the Obama of
-a strategy republican obstruct for the reelection Obama of
-a strategy republican for obstruct of the re @-@ election Obama
-one strategy republican for hindering the reelection of Obama
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b429cc7d/src/test/resources/decoder/phrase/unique-hypotheses/rules.1.gz
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/unique-hypotheses/rules.1.gz b/src/test/resources/decoder/phrase/unique-hypotheses/rules.1.gz
deleted file mode 120000
index a6183d9..0000000
--- a/src/test/resources/decoder/phrase/unique-hypotheses/rules.1.gz
+++ /dev/null
@@ -1 +0,0 @@
-../decode/rules.1.gz
\ No newline at end of file
diff --git a/src/test/resources/decoder/phrase/unique-hypotheses/rules.1.gz b/src/test/resources/decoder/phrase/unique-hypotheses/rules.1.gz
new file mode 100644
index 0000000..14466e9
Binary files /dev/null and b/src/test/resources/decoder/phrase/unique-hypotheses/rules.1.gz differ
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b429cc7d/src/test/resources/decoder/phrase/unique-hypotheses/test.sh
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/unique-hypotheses/test.sh b/src/test/resources/decoder/phrase/unique-hypotheses/test.sh
deleted file mode 100755
index 6b25957..0000000
--- a/src/test/resources/decoder/phrase/unique-hypotheses/test.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-set -u
-
-cat corpus.es | $JOSHUA/bin/joshua-decoder -threads 1 -c joshua.config > output 2> log
-
-# Compare
-num=$(sort -u output | wc -l)
-
-if [ $num -eq 300 ]; then
- rm -f output log
- exit 0
-else
- exit 1
-fi
-
-