summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvocab213
1 files changed, 13 insertions, 0 deletions
diff --git a/vocab2 b/vocab2
new file mode 100755
index 0000000..1991357
--- /dev/null
+++ b/vocab2
@@ -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
+