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

Version Path
ix-cli-0.0.27 bin/ix-lemmatize
ix-cli-0.0.26 bin/ix-lemmatize
ix-cli-0.0.25 bin/ix-lemmatize
ix-cli-0.0.24 bin/ix-lemmatize
ix-cli-0.0.23 bin/ix-lemmatize
ix-cli-0.0.22 bin/ix-lemmatize
ix-cli-0.0.21 bin/ix-lemmatize
ix-cli-0.0.20 bin/ix-lemmatize
ix-cli-0.0.19 bin/ix-lemmatize
ix-cli-0.0.18 bin/ix-lemmatize
ix-cli-0.0.17 bin/ix-lemmatize
ix-cli-0.0.16 bin/ix-lemmatize
ix-cli-0.0.15 bin/ix-lemmatize
ix-cli-0.0.14 bin/ix-lemmatize
ix-cli-0.0.13 bin/ix-lemmatize
ix-cli-0.0.12 bin/ix-lemmatize
ix-cli-0.0.11 bin/ix-lemmatize
ix-cli-0.0.10 bin/ix-lemmatize
ix-cli-0.0.9 bin/ix-lemmatize
ix-cli-0.0.7 bin/ix-lemmatize