Interface LabelFilter
-
- All Known Implementing Classes:
CompleteLabelFilter
,GenitiveLabelFilter
,MinLengthLabelFilter
,NumericLabelFilter
,QueryLabelFilter
,SingleLabelFilterBase
,StopLabelFilter
,StopWordLabelFilter
public interface LabelFilter
Defines the contract for label filtering components, which mark words and phrases that should not be considered as candidates for cluster labels- See Also:
LabelFilterProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
filter(PreprocessingContext context, boolean[] acceptedStems, boolean[] acceptedPhrases)
Called to perform label filtering.
-
-
-
Method Detail
-
filter
void filter(PreprocessingContext context, boolean[] acceptedStems, boolean[] acceptedPhrases)
Called to perform label filtering.- Parameters:
context
- contains words and phrases to be filteredacceptedStems
- the filter should set tofalse
those elements that correspond to the stems to be filtered outacceptedPhrases
- the filter should set tofalse
those elements that correspond to the phrases to be filtered out
-
-