From 9f37d60789d3a3101c7634eb7baba3acdcc54e66 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 8 Jun 2016 15:47:16 +0200 Subject: server.rb: cap TER at 1.0 for summary --- server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.rb') diff --git a/server.rb b/server.rb index e6bf258..b93464b 100755 --- a/server.rb +++ b/server.rb @@ -721,7 +721,7 @@ get '/summary' do g.write data["references"][j]+"\n" f.close g.close - ter_scores << (`#{CDEC}/mteval/fast_score -i #{f.path} -r #{g.path} -m ter 2>/dev/null`.to_f).round(2) + ter_scores << [1.0, (`#{CDEC}/mteval/fast_score -i #{f.path} -r #{g.path} -m ter 2>/dev/null`.to_f).round(2)].min f.unlink g.unlink } -- cgit v1.2.3