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/03/29 06:10:43 UTC
[1/4] incubator-joshua git commit: joshua symlink
Repository: incubator-joshua
Updated Branches:
refs/heads/master 9a7700b2b -> fa1ea3e85
joshua symlink
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/090cb8c5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/090cb8c5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/090cb8c5
Branch: refs/heads/master
Commit: 090cb8c5287c85bec08ba4b48c16088e2b9a8449
Parents: 9a7700b
Author: Matt Post <po...@cs.jhu.edu>
Authored: Thu Mar 10 09:57:25 2016 -0500
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Thu Mar 10 09:57:25 2016 -0500
----------------------------------------------------------------------
bin/joshua | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/090cb8c5/bin/joshua
----------------------------------------------------------------------
diff --git a/bin/joshua b/bin/joshua
new file mode 120000
index 0000000..a3f23fe
--- /dev/null
+++ b/bin/joshua
@@ -0,0 +1 @@
+joshua-decoder
\ No newline at end of file
[3/4] incubator-joshua git commit: updated Hadoop commands,
absolutizing aligner conf path
Posted by mj...@apache.org.
updated Hadoop commands, absolutizing aligner conf path
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/21eae7d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/21eae7d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/21eae7d0
Branch: refs/heads/master
Commit: 21eae7d08b7e655d7f682b1cc64d5d9505e49743
Parents: dca7dba
Author: Matt Post <po...@cs.jhu.edu>
Authored: Mon Mar 28 10:56:53 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Mon Mar 28 10:56:53 2016 -0400
----------------------------------------------------------------------
scripts/training/pipeline.pl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/21eae7d0/scripts/training/pipeline.pl
----------------------------------------------------------------------
diff --git a/scripts/training/pipeline.pl b/scripts/training/pipeline.pl
index b82691c..f43ee8d 100755
--- a/scripts/training/pipeline.pl
+++ b/scripts/training/pipeline.pl
@@ -323,6 +323,8 @@ if (! -x $NORMALIZER) {
exit 1;
}
+my $ALIGNER_CONF = get_absolute_path($ALIGNER_CONF);
+
# capitalize these to offset a common error:
$FIRST_STEP = uc($FIRST_STEP);
$LAST_STEP = uc($LAST_STEP);
@@ -1146,7 +1148,7 @@ if (! defined $GRAMMAR_FILE) {
system("mv $thrax_file.tmp $thrax_file");
$cachepipe->cmd("thrax-run",
- "$HADOOP/bin/hadoop jar $THRAX/bin/thrax.jar -D mapred.child.java.opts='-Xmx$HADOOP_MEM' -D hadoop.tmp.dir=$TMPDIR $thrax_file $THRAXDIR > thrax.log 2>&1; rm -f grammar grammar.gz; $HADOOP/bin/hadoop fs -getmerge $THRAXDIR/final/ grammar.gz", #; $HADOOP/bin/hadoop fs -rm -r $THRAXDIR",
+ "$HADOOP/bin/hadoop jar $THRAX/bin/thrax.jar -D mapreduce.task.timeout=0 -D mapreduce.map.java.opts='-Xmx$HADOOP_MEM' -D mapreduce.reduce.java.opts='-Xmx$HADOOP_MEM' -D hadoop.tmp.dir=$TMPDIR $thrax_file $THRAXDIR > thrax.log 2>&1; rm -f grammar grammar.gz; $HADOOP/bin/hadoop fs -getmerge $THRAXDIR/final/ grammar.gz", #; $HADOOP/bin/hadoop fs -rm -r $THRAXDIR",
"$DATA_DIRS{train}/thrax-input-file",
$thrax_file,
"grammar.gz");
[2/4] incubator-joshua git commit: better error checking
Posted by mj...@apache.org.
better error checking
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/dca7dba2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/dca7dba2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/dca7dba2
Branch: refs/heads/master
Commit: dca7dba22889fad2626f2e5176ee63bf15ab8a85
Parents: 090cb8c
Author: Matt Post <po...@cs.jhu.edu>
Authored: Mon Mar 28 10:56:17 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Mon Mar 28 10:56:17 2016 -0400
----------------------------------------------------------------------
scripts/support/grammar-packer.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/dca7dba2/scripts/support/grammar-packer.pl
----------------------------------------------------------------------
diff --git a/scripts/support/grammar-packer.pl b/scripts/support/grammar-packer.pl
index f5e8481..d2b1627 100755
--- a/scripts/support/grammar-packer.pl
+++ b/scripts/support/grammar-packer.pl
@@ -27,6 +27,7 @@ my %opts = (
v => 0, # verbose
);
getopts("m:T:vg:o:", \%opts) || die usage();
+die usage() if (@ARGV);
my $JOSHUA = $ENV{JOSHUA} or die "you must defined \$JOSHUA";
my $CAT = "$JOSHUA/scripts/training/scat";
@@ -40,7 +41,7 @@ my @grammars = split(' ', $opts{g});
my @outputs = split(' ', $opts{o});
# make sure outputs is same size as inputs, or 0
-die usage() if (scalar(@outputs) != 0 && scalar(@outputs) != scalar(@grammars));
+die usage() if (scalar(@outputs) == 0 || scalar(@grammars) == 0 || scalar(@outputs) != scalar(@grammars));
# if no outputs given, generate default names
if (scalar(@outputs) < scalar(@grammars)) {
[4/4] incubator-joshua git commit: big bugfix: was detokenizing
target side, instead of tokenizing
Posted by mj...@apache.org.
big bugfix: was detokenizing target side, instead of tokenizing
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/fa1ea3e8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/fa1ea3e8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/fa1ea3e8
Branch: refs/heads/master
Commit: fa1ea3e85b36ffc22354322125ee07d8e0b4254f
Parents: 21eae7d
Author: Matt Post <po...@cs.jhu.edu>
Authored: Mon Mar 28 14:46:23 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Mon Mar 28 14:46:23 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/fa1ea3e8/scripts/training/pipeline.pl
----------------------------------------------------------------------
diff --git a/scripts/training/pipeline.pl b/scripts/training/pipeline.pl
index f43ee8d..7b241b0 100755
--- a/scripts/training/pipeline.pl
+++ b/scripts/training/pipeline.pl
@@ -71,7 +71,7 @@ my $DO_SUBSAMPLE = 0;
my $DO_PACK_GRAMMARS = 1;
my $SCRIPTDIR = "$JOSHUA/scripts";
my $TOKENIZER_SOURCE = "$SCRIPTDIR/preparation/tokenize.pl";
-my $TOKENIZER_TARGET = "$SCRIPTDIR/preparation/detokenize.pl";
+my $TOKENIZER_TARGET = "$SCRIPTDIR/preparation/tokenize.pl";
my $NORMALIZER = "$SCRIPTDIR/preparation/normalize.pl";
my $LOWERCASER = "$SCRIPTDIR/preparation/lowercase.pl";
my $GIZA_TRAINER = "$SCRIPTDIR/training/run-giza.pl";