From 7d3fb5215496dc4e2bbc93234492ce3e00596036 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 19 Oct 2018 08:36:03 +0200 Subject: mv --- compare | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 compare (limited to 'compare') diff --git a/compare b/compare deleted file mode 100755 index ed8460c..0000000 --- a/compare +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env ruby - -require 'zipf' - -f = ReadFile.new ARGV[0] -g = ReadFile.new ARGV[1] -h = ReadFile.new ARGV[2] - -i = 0 -while line = f.gets - line1 = g.gets - line2 = h.gets - b1 = (BLEU::per_sentence_bleu(line1.strip, line.split, 4)*100).round 1 - b2 = (BLEU::per_sentence_bleu(line2.strip, line.split, 4)*100).round 1 - puts i - puts "ref) " + line - puts "org #{b1}) " + line1 - puts "ada #{b2}) " + line2 - puts " >>> #{(b2-b1).round 1} <<<" - puts - i += 1 -end - -- cgit v1.2.3