diff options
-rwxr-xr-x | vocab2 | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 + |
index : nlp_scripts | ||
Mirror of https://github.com/pks/nlp_scripts.git |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | vocab2 | 13 |
@@ -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 + |