diff options
author | Patrick Simianer <p@simianer.de> | 2014-01-29 19:14:08 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-01-29 19:14:08 +0100 |
commit | 68acbb9a0c7967cb90a7e3756fc94fdd8a73d154 (patch) | |
tree | 3b445131dcb203e94473ae1d8aa82a1798585276 /num_tok | |
parent | 49158e721bfaf6423dca9fc633873218f691c83a (diff) |
make use of nlp_ruby, LICENSE
Diffstat (limited to 'num_tok')
-rwxr-xr-x | num_tok | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,8 +1,10 @@ #!/usr/bin/env ruby -STDIN.set_encoding('utf-8') +STDIN.set_encoding 'utf-8' +STDOUT.set_encoding 'utf-8' + while line = STDIN.gets - puts line.split.length + puts line.strip.split.length end |