Package org.carrot2.language
Interface LabelFilter
- All Superinterfaces:
Predicate<CharSequence>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A cluster label candidate filter.
- Since:
- 4.1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault LabelFilter
and
(Predicate<? super CharSequence> other) boolean
test
(CharSequence label)
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<CharSequence>
- Parameters:
label
- The label to test. Input labels may have mixed case, depending on the algorithm and their surface forms collected from input documents.- Returns:
- Return
false
if the label candidate should be ignored in processing.
-
and
- Specified by:
and
in interfacePredicate<CharSequence>
-