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 /avg-weights | |
| parent | 8805e95ae94d798c6441f7e1b72c90e049563f17 (diff) | |
Diffstat (limited to 'avg-weights')
| -rwxr-xr-x | avg-weights | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/avg-weights b/avg-weights index f090da9..bc734e8 100755 --- a/avg-weights +++ b/avg-weights @@ -1,8 +1,8 @@ #!/usr/bin/env ruby -require 'zipf' -require 'optimist' -require 'zlib' +require "zipf" +require "optimist" +require "zlib" conf = Optimist::options do opt :weights_files, "a number of weights files: name value", :required => true @@ -30,4 +30,3 @@ h.each_pair { |k,w| next if conf[:filter] and w.size < n puts "#{k} #{w.inject(:+)/n}" } - |
