From 9e5ee85fda1219e023d0e418669bd12a0fe6f7a5 Mon Sep 17 00:00:00 2001 From: Matt Post Date: Fri, 10 Apr 2015 20:59:59 -0400 Subject: [PATCH] Removed tm_args complication from pipeline --- scripts/training/pipeline.pl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/training/pipeline.pl b/scripts/training/pipeline.pl index faf27e805..5fb8f69b1 100755 --- a/scripts/training/pipeline.pl +++ b/scripts/training/pipeline.pl @@ -1524,10 +1524,8 @@ sub parse_tm_line { system("mkdir -p $tunedir") unless -d $tunedir; my $tmtype = "thrax"; - my $tmargs = ""; if ($GRAMMAR_TYPE eq "phrase") { $tmtype = "moses"; - $tmargs = "-max-source-len $MAX_PHRASE_LEN"; } foreach my $key (keys %TUNEFILES) { @@ -1554,7 +1552,6 @@ sub parse_tm_line { s//$GRAMMAR_TYPE/g; s//$TUNE_GRAMMAR/g; s//$tmtype/g; - s//$tmargs/g; s//$GLUE_GRAMMAR_FILE/g; s//$MAXSPAN/g; s//$OOV/g; @@ -1733,7 +1730,7 @@ sub parse_tm_line { # Copy the config file over. $cachepipe->cmd("test-joshua-config-from-tune-$run", - "cat $tunedir/joshua.config.final | $COPY_CONFIG -mark-oovs false -tm '$tmtype -owner pt -maxspan $MAXSPAN -path $TEST_GRAMMAR $tmargs' > $testrun/joshua.config", + "cat $tunedir/joshua.config.final | $COPY_CONFIG -mark-oovs false -tm '$tmtype -owner pt -maxspan $MAXSPAN -path $TEST_GRAMMAR' > $testrun/joshua.config", "$tunedir/joshua.config.final", "$testrun/joshua.config"); @@ -1892,13 +1889,11 @@ sub parse_tm_line { # copy over the config file my $tmtype = "thrax"; -my $tmargs = ""; if ($GRAMMAR_TYPE eq "phrase") { $tmtype = "moses"; - $tmargs = "-max-source-len $MAX_PHRASE_LEN"; } $cachepipe->cmd("test-$NAME-copy-config", - "cat $TUNEFILES{'joshua.config'} | $COPY_CONFIG -mark-oovs false -tm/pt '$tmtype -owner pt -maxspan $MAXSPAN -path $TEST_GRAMMAR $tmargs' -default-non-terminal $OOV -search $SEARCH_ALGORITHM > $testrun/joshua.config", + "cat $TUNEFILES{'joshua.config'} | $COPY_CONFIG -mark-oovs false -tm/pt '$tmtype -owner pt -maxspan $MAXSPAN -path $TEST_GRAMMAR' -default-non-terminal $OOV -search $SEARCH_ALGORITHM > $testrun/joshua.config", $TUNEFILES{'joshua.config'}, "$testrun/joshua.config");