diff options
| author | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
|---|---|---|
| committer | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
| commit | b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d (patch) | |
| tree | 31f2b599fa5f6996aeb134390d58deb63eefe04a /length-ratio | |
| parent | 8805e95ae94d798c6441f7e1b72c90e049563f17 (diff) | |
Diffstat (limited to 'length-ratio')
| -rwxr-xr-x | length-ratio | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/length-ratio b/length-ratio index 4b4432d..5b38826 100755 --- a/length-ratio +++ b/length-ratio @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require 'zipf' +require "zipf" a = ReadFile.new ARGV[0] b = ReadFile.new ARGV[1] @@ -9,4 +9,3 @@ while linea = a.gets lineb = b.gets puts linea.strip.split.size.to_f / lineb.strip.split.size.to_f end - |
