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/14 18:20:06 UTC

[07/10] incubator-joshua git commit: Removed unused regression test metadata

Removed unused regression test metadata


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

Branch: refs/heads/master
Commit: 510c770710d1356b5f8a0ce98dd6b751a68efb90
Parents: a833bd6
Author: Michael A. Hedderich <mi...@users.noreply.github.com>
Authored: Wed Sep 14 17:55:12 2016 +0200
Committer: Michael A. Hedderich <mi...@users.noreply.github.com>
Committed: Wed Sep 14 17:55:12 2016 +0200

----------------------------------------------------------------------
 .../decoder/metadata/add_rule/output.gold       |  4 ---
 .../resources/decoder/metadata/add_rule/test.sh | 32 --------------------
 2 files changed, 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/510c7707/src/test/resources/decoder/metadata/add_rule/output.gold
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/metadata/add_rule/output.gold b/src/test/resources/decoder/metadata/add_rule/output.gold
deleted file mode 100644
index c4f4e89..0000000
--- a/src/test/resources/decoder/metadata/add_rule/output.gold
+++ /dev/null
@@ -1,4 +0,0 @@
-0 ||| foo ||| tm_glue_0=1.000 OOVPenalty=-100.000 ||| -100.000
-1 ||| bar ||| tm_glue_0=1.000 OOVPenalty=0.000 custom=1.000 ||| 0.000
-0 ||| foo ||| tm_glue_0=0.000 OOVPenalty=-100.000 ||| -100.000
-1 ||| bar ||| tm_glue_0=0.000 OOVPenalty=0.000 custom=1.000 ||| 0.000

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/510c7707/src/test/resources/decoder/metadata/add_rule/test.sh
----------------------------------------------------------------------
diff --git a/src/test/resources/decoder/metadata/add_rule/test.sh b/src/test/resources/decoder/metadata/add_rule/test.sh
deleted file mode 100644
index 71b7502..0000000
--- a/src/test/resources/decoder/metadata/add_rule/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
-
-# Tests the decoder's ability to add and use rules added to it at runtime, for both CKY and stack decoding
-
-(echo -e "foo\n| add_rule foo ,,, bar | foo" | joshua -feature-function OOVPenalty -weight-overwrite "OOVPenalty 1" -v 0
-echo -e "foo\n| add_rule foo ,,, bar | foo" | joshua -feature-function OOVPenalty -weight-overwrite "OOVPenalty 1" -v 0 -search stack) > output
-
-diff -u output output.gold > diff
-
-if [ $? -eq 0 ]; then
-    rm -f log output diff
-    exit 0
-else
-    exit 1
-fi