Skip to content

Commit

Permalink
vocab2
Browse files Browse the repository at this point in the history
  • Loading branch information
pks committed Nov 28, 2017
1 parent d946f01 commit 00977dd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vocab2
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env ruby

require 'zipf'

d = {}
while line = STDIN.gets
line.strip.split.each { |tok|
d[tok] = true
}
end

puts d.size

0 comments on commit 00977dd

Please sign in to comment.