Class: SClust::Util::StopwordFilter
- Includes:
- StopwordList
- Defined in:
- lib/sclust/util/filters.rb
Constant Summary collapse
- @@stopwords =
{}
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
150 151 152 |
# File 'lib/sclust/util/filters.rb', line 150 def filter(term) ( @@stopwords[term] ) ? nil : term end |