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/12 19:32:33 UTC

[2/2] incubator-joshua git commit: bugfix in head

bugfix in head


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

Branch: refs/heads/master
Commit: 5d1fc27ddd19a6f1bc4007010ac1d8ff19c46a23
Parents: bbc6010
Author: Matt Post <po...@cs.jhu.edu>
Authored: Wed Jul 6 16:36:06 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Wed Jul 6 16:36:06 2016 -0400

----------------------------------------------------------------------
 scripts/training/pipeline.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/5d1fc27d/scripts/training/pipeline.pl
----------------------------------------------------------------------
diff --git a/scripts/training/pipeline.pl b/scripts/training/pipeline.pl
index bdf5caa..286370f 100755
--- a/scripts/training/pipeline.pl
+++ b/scripts/training/pipeline.pl
@@ -1818,7 +1818,7 @@ sub prepare_data {
     my @files =  map { "$_.$ext" } @$corpora;
     push(@indeps, @files);
     if ($MAXLINES != 0) {
-      push(@infiles, "<(head -n $MAXLINES " . join(" ", @files) . ")");
+      push(@infiles, "<(head -qn $MAXLINES " . join(" ", @files) . ")");
     } else {
       push(@infiles, "<(cat " . join(" ", @files) . ")");
     }