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/07/25 14:25:32 UTC

[3/6] incubator-joshua git commit: bugfix: don't pack a nonexistent TM

bugfix: don't pack a nonexistent TM


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

Branch: refs/heads/master
Commit: ce27c2de672a8d48fb876f38181dbc860b9dc909
Parents: fcdd7cd
Author: Matt Post <po...@cs.jhu.edu>
Authored: Fri Jul 15 11:02:35 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Fri Jul 15 11:02:35 2016 -0400

----------------------------------------------------------------------
 scripts/training/pipeline.pl | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/ce27c2de/scripts/training/pipeline.pl
----------------------------------------------------------------------
diff --git a/scripts/training/pipeline.pl b/scripts/training/pipeline.pl
index b8512fc..bd90707 100755
--- a/scripts/training/pipeline.pl
+++ b/scripts/training/pipeline.pl
@@ -1648,9 +1648,11 @@ if ($OPTIMIZER_RUN == 1) {
 }
 
 $tm_switch = "";
-$tm_copy_config_args = "";
-$tm_switch .= ($DO_PACK_GRAMMARS) ? "--pack-tm" : "--tm";
-$tm_switch .= " $TEST_GRAMMAR";
+if (defined $TEST_GRAMMAR) {
+  $tm_copy_config_args = "";
+  $tm_switch .= ($DO_PACK_GRAMMARS) ? "--pack-tm" : "--tm";
+  $tm_switch .= " $TEST_GRAMMAR";
+}
 
 # Add in the glue grammar
 if (defined $GLUE_GRAMMAR_FILE) {