diff options
author | Patrick Simianer <p@simianer.de> | 2016-06-08 15:47:16 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-06-08 15:47:16 +0200 |
commit | 9f37d60789d3a3101c7634eb7baba3acdcc54e66 (patch) | |
tree | d51103ac385e6aa2e0be1cf06132b27945fa027c /server.rb | |
parent | 5242b5b1b5991eb08c9578b299c383c604ed4f33 (diff) |
server.rb: cap TER at 1.0 for summary
Diffstat (limited to 'server.rb')
-rwxr-xr-x | server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |