summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-04 19:34:47 +0000
committertrevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-04 19:34:47 +0000
commit8541440f49975f2265c56c550fc7424dc8f88453 (patch)
tree113e74c9e99adf7e761106414d2489bb18f4c2f6
parentc668bd808b2123486bd64bdcaa992f7a8fa2da52 (diff)
Added goal option
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@478 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-xgi/pipeline/evaluation-pipeline.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/gi/pipeline/evaluation-pipeline.pl b/gi/pipeline/evaluation-pipeline.pl
index 675fd8c2..2660155f 100755
--- a/gi/pipeline/evaluation-pipeline.pl
+++ b/gi/pipeline/evaluation-pipeline.pl
@@ -9,6 +9,7 @@ my $SCRIPT_DIR; BEGIN { use Cwd qw/ abs_path /; use File::Basename; $SCRIPT_DIR
my $JOBS = 15;
my $PMEM = "9G";
my $NUM_TRANSLATIONS = 30;
+my $GOAL = "S";
# featurize_grammar may add multiple features from a single feature extractor
# the key in this map is the extractor name, the value is a list of the extracted features
@@ -139,6 +140,7 @@ if (GetOptions(
"jobs=i" => \$JOBS,
"out-dir=s" => \$outdir,
"lmorder=i" => \$lmorder,
+ "goal=s" => \$GOAL,
) == 0 || @ARGV!=2 || $help) {
print_help();
exit;
@@ -311,6 +313,7 @@ scfg_default_nt=OOV
scfg_no_hiero_glue_grammar=true
feature_function=WordPenalty
feature_function=LanguageModel -o $lmorder $LANG_MODEL
+goal=$GOAL
EOT
print CDECINI "grammar=$bkoff_grmr\n" if $bkoffgram;
close CDECINI;