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