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 /feature-dict | |
| parent | 8805e95ae94d798c6441f7e1b72c90e049563f17 (diff) | |
Diffstat (limited to 'feature-dict')
| -rwxr-xr-x | feature-dict | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/feature-dict b/feature-dict index 6849769..59ff020 100755 --- a/feature-dict +++ b/feature-dict @@ -7,7 +7,7 @@ l_i = 1 while line = STDIN.gets STDERR.write "#{l_i}\n" if l_i%1000==0&¬_quiet line.split.each { |i| - f, v = i.split('=', 2) + f, v = i.split("=", 2) if !feature_dict.has_key? f feature_dict[f] = n n += 1 @@ -16,9 +16,8 @@ while line = STDIN.gets l_i += 1 end -f = File.new ARGV[0], 'w' +f = File.new ARGV[0], "w" f.write Marshal.dump feature_dict f.close STDERR.write "size = #{feature_dict.size}\n" - |
