Sha256: e85448f796384c898d5b5119555b217bd1296bcb0b710a0dfd0eb79c31e80064
Contents?: true
Size: 262 Bytes
Versions: 26
Compression:
Stored size: 262 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'lemmatizer' lemmatizer = Lemmatizer.new STDIN.each_line do |line| words = line.scan(/\w+/) words.each do |word| lemma = lemmatizer.lemma(word) # puts "#{word} => #{lemma}" puts lemma end end
Version data entries
26 entries across 26 versions & 1 rubygems