From 00977dd98588261a04b9a7f55c8d9ab3a791d887 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 28 Nov 2017 20:17:36 +0100 Subject: vocab2 --- vocab2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 vocab2 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 + -- cgit v1.2.3