Class: SClust::Util::StemmedWordFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/sclust/util/filters.rb

Overview

Similar to StemFilter, but this will wrap the word in a Filter::StemmedWord object.

Instance Method Summary collapse

Methods inherited from Filter

#after, #apply, #before, #initialize

Constructor Details

This class inherits a constructor from SClust::Util::Filter

Instance Method Details

#filter(term) ⇒ Object



123
124
125
# File 'lib/sclust/util/filters.rb', line 123

def filter(term)
    Filter::StemmedWord.new(term.stem, term)
end