diff options
-rwxr-xr-x | ltok | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +#!/usr/bin/ruby + +STDIN.set_encoding 'utf-8' +STDOUT.set_encoding 'utf-8' + +while line = STDIN.gets + puts line.strip.split(/\s/).size +end + |
index : nlp_scripts | ||
Mirror of https://github.com/pks/nlp_scripts.git |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | ltok | 9 |
@@ -0,0 +1,9 @@ +#!/usr/bin/ruby + +STDIN.set_encoding 'utf-8' +STDOUT.set_encoding 'utf-8' + +while line = STDIN.gets + puts line.strip.split(/\s/).size +end + |