Sha256: 9691e1f4ea69318353a50666fd0dd2f78ba255fd1f275d941e0825d015c84b73

Contents?: true

Size: 475 Bytes

Versions: 11

Compression:

Stored size: 475 Bytes

Contents

require "bundler/gem_tasks"
require "greek_stemmer"

desc "Update the stems of the sample words"
task :update_greek_stemming_sample do

  words = Set.new
  File.open("benchmarks/stemming_sample.txt", "r") do |sample|
    while(line = sample.gets)
      word, _ = line.split(",")
      words << word
    end
  end

  File.open("benchmarks/stemming_sample.txt", "w") do |sample|
    words.each do |word|
      sample.puts "#{word},#{GreekStemmer.stem(word)}"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
greek_stemmer-1.3.3 Rakefile
greek_stemmer-1.3.2 Rakefile
greek_stemmer-1.3.1 Rakefile
greek_stemmer-1.3.0 Rakefile
greek_stemmer-1.2.0 Rakefile
greek_stemmer-1.1.10 Rakefile
greek_stemmer-1.1.9 Rakefile
greek_stemmer-1.1.7 Rakefile
greek_stemmer-1.1.5 Rakefile
greek_stemmer-1.1.4 Rakefile
greek_stemmer-1.0.4 Rakefile