public interface ILabelFilter
LabelFilterProcessor
Modifier and Type | Method and Description |
---|---|
void |
filter(PreprocessingContext context,
boolean[] acceptedStems,
boolean[] acceptedPhrases)
Called to perform label filtering.
|
boolean |
isEnabled() |
void filter(PreprocessingContext context, boolean[] acceptedStems, boolean[] acceptedPhrases)
context
- contains words and phrases to be filteredacceptedStems
- the filter should set to false
those elements
that correspond to the stems to be filtered outacceptedPhrases
- the filter should set to false
those elements
that correspond to the phrases to be filtered outboolean isEnabled()
true
if the filter is to be applied, false
if the
filter should be omitted by the LabelFilterProcessor
.