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/05/27 00:34:10 UTC

[04/32] incubator-joshua git commit: fixed grammar packing tests

fixed grammar packing tests

packer now defaults to NOT packing alignments, but run bundler asks it to by default


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

Branch: refs/heads/JOSHUA-252
Commit: 357f5783d4e53f54079ca0e818da9dd7ec14c03f
Parents: ad84b96
Author: Matt Post <po...@cs.jhu.edu>
Authored: Tue May 24 18:18:59 2016 +0200
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Tue May 24 18:18:59 2016 +0200

----------------------------------------------------------------------
 scripts/support/grammar-packer.pl | 2 +-
 scripts/support/run_bundler.py    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/357f5783/scripts/support/grammar-packer.pl
----------------------------------------------------------------------
diff --git a/scripts/support/grammar-packer.pl b/scripts/support/grammar-packer.pl
index 170973d..e485513 100755
--- a/scripts/support/grammar-packer.pl
+++ b/scripts/support/grammar-packer.pl
@@ -20,7 +20,7 @@ use File::Temp qw/tempfile/;
 use File::Basename qw/basename/;
 
 my %opts = (
-  a => 1,         # whether alignments are included in the grammar(s)
+  a => 0,         # whether alignments are included in the grammar(s)
   g => '',        # comma-separated list of grammars to pack
   o => '',        # comma-separated list of grammar output directories
   m => '8g',      # amount of memory to give the packer

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/357f5783/scripts/support/run_bundler.py
----------------------------------------------------------------------
diff --git a/scripts/support/run_bundler.py b/scripts/support/run_bundler.py
index 11a7e64..734ccb6 100755
--- a/scripts/support/run_bundler.py
+++ b/scripts/support/run_bundler.py
@@ -342,6 +342,7 @@ def recursive_copy(src, dest, symlink = False):
 
 def run_grammar_packer(src_path, dest_path):
     cmd = [os.path.join(JOSHUA_PATH, "scripts/support/grammar-packer.pl"),
+           "-a",
            "-T", opts.tmpdir,
            "-g", src_path, "-o", dest_path]
     logging.info(