summaryrefslogtreecommitdiff
path: root/cmp
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2018-06-21 14:12:00 +0200
committerPatrick Simianer <pks@pks.rocks>2018-06-21 14:12:00 +0200
commit6d9f77693dc39c2cf3c33a5af419f9bfebda71ec (patch)
treebdcd89d437f65421cd60fd5005126bacccc37bc2 /cmp
parent0b17d6e580efd3faac939612c8de2058f24c128f (diff)
mv
Diffstat (limited to 'cmp')
-rwxr-xr-xcmp23
1 files changed, 0 insertions, 23 deletions
diff --git a/cmp b/cmp
deleted file mode 100755
index ed8460c..0000000
--- a/cmp
+++ /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
-