Sha256: e397c45c71887d147b95cbdfc96142067452630f1e67505d9499f7473b48a041

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

require "bundler/gem_tasks"

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

task :default => :test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
greek_stemmer-1.0.1 Rakefile
greek_stemmer-1.0.0 Rakefile