Permalink
Browse files

Revert "Added WordSieve class"

This reverts commit d79b4c3.
  • Loading branch information...
1 parent 7e00fa7 commit a644c0e380e0be476ec3b254d55d7bef1374b9ef Stanislav Gatev committed Feb 3, 2013
View
@@ -23,7 +23,6 @@ GEM
PLATFORMS
ruby
- x86-mingw32
DEPENDENCIES
jeweler (= 1.8.4)
@@ -1,4 +1,3 @@
module Stopwords::Snowball
require_relative 'snowball/filter'
- require_relative 'snowball/wordsieve'
end
@@ -1,16 +0,0 @@
-class Stopwords::Snowball::WordSieve
- def initialize
- @filters = Dir[File.dirname(__FILE__) + '/locales/*.csv'].each_with_object({}) do |file, filters|
- lang = File.basename(file, '.csv').to_sym
- filters[lang] = Stopwords::Snowball::Filter.new lang
- end
- end
-
- def stopword? args={}
- args[:lang] ? @filters[args[:lang]].stopword?(args[:word] ) : false
- end
-
- def filter args={}
- args[:lang] ? @filters[args[:lang]].filter(args[:words] ) : args[:words]
- end
-end
Binary file not shown.
View
@@ -25,8 +25,6 @@ Gem::Specification.new do |s|
"lib/stopwords/filter.rb",
"lib/stopwords/snowball.rb",
"lib/stopwords/snowball/filter.rb",
- "lib/stopwords/snowball/wordsieve.rb",
- "lib/stopwords/snowball/locales/bg.csv",
"lib/stopwords/snowball/locales/da.csv",
"lib/stopwords/snowball/locales/de.csv",
"lib/stopwords/snowball/locales/en.csv",

0 comments on commit a644c0e

Please sign in to comment.