From 4df1aea9e6edce1c79059d3310d55947be0a302e Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 3 Nov 2011 00:38:04 +0100 Subject: local hacks --- compound-split/compound-split.pl | 2 +- environment/LocalConfig.pm | 6 +++++- mira/kbest_mira.cc | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/compound-split/compound-split.pl b/compound-split/compound-split.pl index 62259146..807ddb0f 100755 --- a/compound-split/compound-split.pl +++ b/compound-split/compound-split.pl @@ -32,7 +32,7 @@ $LANG = lc $LANG; die "Can't find $CDEC\n" unless -f $CDEC; die "Can't execute $CDEC\n" unless -x $CDEC; die "Don't know about language: $LANG\n" unless -d "./$LANG"; -my $CONFIG="cdec-$LANG.ini"; +my $CONFIG="/mnt/proj/developer/simianer/cdec_head/compound-split/cdec-$LANG.ini"; die "Can't find $CONFIG" unless -f $CONFIG; die "--output must be '1best' or 'plf'\n" unless ($OUTPUT =~ /^(plf|1best)$/); print STDERR "(Run with --help for options)\n"; diff --git a/environment/LocalConfig.pm b/environment/LocalConfig.pm index 4e5e0d5f..db83696c 100644 --- a/environment/LocalConfig.pm +++ b/environment/LocalConfig.pm @@ -48,10 +48,14 @@ my $CCONFIG = { 'HOST_REGEXP' => qr/^(taipan|tiger).cs.ox.ac.uk$/, 'QSubMemFlag' => '-l pmem=', }, - 'LOCAL' => { + 'LOCALx' => { 'HOST_REGEXP' => qr/local\./, 'QSubMemFlag' => ' ', }, + 'LOCAL' => { + 'HOST_REGEXP' => qr/coltrane/, + 'QSubMemFlag' => ' ', + }, }; our $senvironment_name; diff --git a/mira/kbest_mira.cc b/mira/kbest_mira.cc index 459a5e6f..811bbd4b 100644 --- a/mira/kbest_mira.cc +++ b/mira/kbest_mira.cc @@ -52,7 +52,7 @@ bool InitCommandLine(int argc, char** argv, po::variables_map* conf) { ("reference,r",po::value >(), "[REQD] Reference translation(s) (tokenized text file)") ("mt_metric,m",po::value()->default_value("ibm_bleu"), "Scoring metric (ibm_bleu, nist_bleu, koehn_bleu, ter, combi)") ("max_step_size,C", po::value()->default_value(0.01), "regularization strength (C)") - ("mt_metric_scale,s", po::value()->default_value(1.0), "Amount to scale MT loss function by") + //("mt_metric_scale,s", po::value()->default_value(1.0), "Amount to scale MT loss function by") ("k_best_size,k", po::value()->default_value(250), "Size of hypothesis list to search for oracles") ("random_seed,S", po::value(), "Random seed (if not specified, /dev/random will be used)") ("decoder_config,c",po::value(),"Decoder configuration file"); @@ -190,7 +190,7 @@ int main(int argc, char** argv) { Weights::InitSparseVector(dense_weights, &lambdas); const double max_step_size = conf["max_step_size"].as(); - const double mt_metric_scale = conf["mt_metric_scale"].as(); + const double mt_metric_scale = 1.0;//conf["mt_metric_scale"].as(); assert(corpus.size() > 0); vector oracles(corpus.size()); -- cgit v1.2.3