gov.sandia.cognition.text.term.filter
Class AbstractSingleTermFilter
java.lang.Object
gov.sandia.cognition.util.AbstractCloneableSerializable
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
AbstractSingleTermFilter
public AbstractSingleTermFilter()
- Creates a new
AbstractSingleTermFilter
.
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.