Commit bd3697a9 authored by Arne Koehn's avatar Arne Koehn

Always run the evaluation on the local machine

The evaluation doesn't take much time so it's not necessary to run
it on remote machines. This saves some lines of code.
parent 42474fb8
......@@ -206,7 +206,7 @@ sub process_jobresult {
my $tagtime = $job->{'tagtime'};
my $setuptime = $job->{'setuptime'};
# FIXME warn if svmt-standard is not trained on this tset
my $info = $job->{'info'};
my $info = `$cfg{'svmteval'} 0 \$(pwd)/taggers/svmt-standard/models/$tset tfiles/$tset/gold tmp/$tagger-$tset`;
$info =~ m/=== OVERALL ACCURACY ===.*? (\d+\.\d+)%/s;
my $result = $1;
$dbh->do("INSERT INTO results
......@@ -292,12 +292,6 @@ sub test_tagger {
}
print STDERR "running ",$command;
my $time = `$command`;
$command = "$cfg{'svmteval'} 0 $pwd/taggers/svmt-standard/models/$tset $pwd/tfiles/$tset/gold $pwd/tmp/$tagger-$tset";
if ( not ($host eq 'local')) {
$command ="ssh $host $command";
}
print STDERR "running ",$command;
my $info = `$command`;
my $setuptime = -1;
my $tagtime = -1;
if ($time =~ m/SETUPTIME=(\d+)/) {
......@@ -312,7 +306,6 @@ sub test_tagger {
'host'=> $host,
'tagtime'=> $tagtime,
'setuptime'=> $setuptime,
'info'=>$info,
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment