From a2d3ef53c27bfaf4a0e9b638d8bfe24d1114fe9c Mon Sep 17 00:00:00 2001 From: redpony Date: Sat, 17 Jul 2010 17:17:49 +0000 Subject: support for running on different clusters git-svn-id: https://ws10smt.googlecode.com/svn/trunk@306 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/pipeline/evaluation-pipeline.pl | 12 +++++++++++- gi/pipeline/valhalla.config | 8 ++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 gi/pipeline/valhalla.config (limited to 'gi') diff --git a/gi/pipeline/evaluation-pipeline.pl b/gi/pipeline/evaluation-pipeline.pl index 8ee41122..c6dcca05 100755 --- a/gi/pipeline/evaluation-pipeline.pl +++ b/gi/pipeline/evaluation-pipeline.pl @@ -70,6 +70,16 @@ assert_exec($CDEC, $PARALLELIZE, $FILTER, $FEATURIZE, $DISTVEST); my $numtopics = 25; my $config = "$SCRIPT_DIR/clsp.config"; +if ((scalar @ARGV) >= 2 && ($ARGV[0] eq '-c')) { + $config = $ARGV[1]; + shift @ARGV; shift @ARGV; + unless (-f $config) { + $config = "$SCRIPT_DIR/$config"; + unless (-f $config) { + $config .= ".config"; + } + } +} print STDERR "CORPORA CONFIGURATION: $config\n"; open CONF, "<$config" or die "Can't read $config: $!"; my %paths; @@ -296,7 +306,7 @@ EOT sub print_help { print STDERR<