gov.sandia.cognition.text.term.filter
Class AbstractSingleTermFilter

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.text.term.filter.AbstractSingleTermFilter
All Implemented Interfaces:
SingleTermFilter, TermFilter, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
DictionaryFilter, LowerCaseTermFilter, PorterEnglishStemmingFilter, StopListFilter, StringEvaluatorSingleTermFilter, SynonymFilter, TermLengthFilter

public abstract class AbstractSingleTermFilter
extends AbstractCloneableSerializable
implements SingleTermFilter

An abstract implementation of the SingleTermFilter interface. It makes the filterTerms method call the filterTerm on each term.

Since:
3.0
Author:
Justin Basilico
See Also:
Serialized Form

Constructor Summary
AbstractSingleTermFilter()
          Creates a new AbstractSingleTermFilter.
 
Method Summary
 Iterable<TermOccurrence> filterTerms(Iterable<? extends TermOccurrence> terms)
          Filters the given list of terms into a new list of terms based on some internal criteria for what constitutes a term.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.text.term.filter.SingleTermFilter
filterTerm
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

AbstractSingleTermFilter

public AbstractSingleTermFilter()
Creates a new AbstractSingleTermFilter.

Method Detail

filterTerms

public Iterable<TermOccurrence> filterTerms(Iterable<? extends TermOccurrence> terms)
Description copied from interface: TermFilter
Filters the given list of terms into a new list of terms based on some internal criteria for what constitutes a term.

Specified by:
filterTerms in interface TermFilter
Parameters:
terms - The terms to filter.
Returns:
The new list of terms.