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:44:07 UTC

[08/15] incubator-joshua git commit: Removed resources of unused regression test decoder/phrase/include-align-index.

Removed resources of unused regression test decoder/phrase/include-align-index.


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

Branch: refs/heads/7
Commit: d9bb3e5a841998c0bb8b87018c06ef28b46176c4
Parents: 99b475b
Author: Michael A. Hedderich <mi...@users.noreply.github.com>
Authored: Thu Sep 15 13:03:04 2016 +0200
Committer: Michael A. Hedderich <mi...@users.noreply.github.com>
Committed: Thu Sep 15 14:21:05 2016 +0200

----------------------------------------------------------------------
 .../decoder/phrase/include-align-index/README   |   2 --
 .../decoder/phrase/include-align-index/config   |  29 -----------------
 .../phrase/include-align-index/corpus.es        |   1 -
 .../decoder/phrase/include-align-index/lm.1.gz  | Bin 2235 -> 0 bytes
 .../phrase/include-align-index/output.gold      |   1 -
 .../phrase/include-align-index/rules.1.gz       | Bin 2998042 -> 0 bytes
 .../decoder/phrase/include-align-index/test.sh  |  32 -------------------
 7 files changed, 65 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/d9bb3e5a/src/test/resources/decoder/phrase/include-align-index/README
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/include-align-index/README b/src/test/resources/decoder/phrase/include-align-index/README
deleted file mode 100644
index d0c0813..0000000
--- a/src/test/resources/decoder/phrase/include-align-index/README
+++ /dev/null
@@ -1,2 +0,0 @@
-Added non-functioning example that will test outputting phrase alignments if
-that ability is ever restored.

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/d9bb3e5a/src/test/resources/decoder/phrase/include-align-index/config
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/include-align-index/config b/src/test/resources/decoder/phrase/include-align-index/config
deleted file mode 100644
index f30014d..0000000
--- a/src/test/resources/decoder/phrase/include-align-index/config
+++ /dev/null
@@ -1,29 +0,0 @@
-tm = moses -owner pt -maxspan 0 -path rules.1.gz -max-source-len 5
-feature-function = StateMinimizingLanguageModel -lm_order 5 -lm_file lm.1.gz
-
-search = stack
-
-mark-oovs = false
-pop-limit = 10
-top-n = 1
-
-output-format = %i ||| %s ||| %f ||| %c
-
-include-align-index = true
-reordering-limit = 6
-
-# And these are the feature functions to activate.
-feature-function = OOVPenalty
-feature-function = WordPenalty
-feature-function = Distortion
-feature-function = PhrasePenalty -owner pt
-
-OOVPenalty 1.0
-Distortion 0.114849
-WordPenalty -0.201544
-PhrasePenalty -0.236965
-tm_pt_0 0.0370068
-tm_pt_1 0.0495759
-tm_pt_2 0.196742
-tm_pt_3 0.0745423
-lm_0 0.204412452147565

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/d9bb3e5a/src/test/resources/decoder/phrase/include-align-index/corpus.es
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/include-align-index/corpus.es b/src/test/resources/decoder/phrase/include-align-index/corpus.es
deleted file mode 100644
index 6e255f9..0000000
--- a/src/test/resources/decoder/phrase/include-align-index/corpus.es
+++ /dev/null
@@ -1 +0,0 @@
-una estrategia republicana para obstaculizar la reelecci�n de Obama 

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/d9bb3e5a/src/test/resources/decoder/phrase/include-align-index/lm.1.gz
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/include-align-index/lm.1.gz b/src/test/resources/decoder/phrase/include-align-index/lm.1.gz
deleted file mode 100644
index 3f4c453..0000000
Binary files a/src/test/resources/decoder/phrase/include-align-index/lm.1.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/d9bb3e5a/src/test/resources/decoder/phrase/include-align-index/output.gold
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/include-align-index/output.gold b/src/test/resources/decoder/phrase/include-align-index/output.gold
deleted file mode 100644
index 509a3de..0000000
--- a/src/test/resources/decoder/phrase/include-align-index/output.gold
+++ /dev/null
@@ -1 +0,0 @@
-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

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/d9bb3e5a/src/test/resources/decoder/phrase/include-align-index/rules.1.gz
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/include-align-index/rules.1.gz b/src/test/resources/decoder/phrase/include-align-index/rules.1.gz
deleted file mode 100644
index 14466e9..0000000
Binary files a/src/test/resources/decoder/phrase/include-align-index/rules.1.gz and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/d9bb3e5a/src/test/resources/decoder/phrase/include-align-index/test.sh
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/phrase/include-align-index/test.sh b/src/test/resources/decoder/phrase/include-align-index/test.sh
deleted file mode 100644
index 7703aa4..0000000
--- a/src/test/resources/decoder/phrase/include-align-index/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 config > output 2> log
-
-# Compare
-diff -u output output.gold > diff
-
-if [ $? -eq 0 ]; then
-  rm -f diff output log
-  exit 0
-else
-  exit 1
-fi
-
-