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.
@FunctionalInterface public interface LabelFilter extends Predicate<CharSequence>
A cluster label candidate filter.- Since:
- 4.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LabelFilter
and(Predicate<? super CharSequence> other)
boolean
test(CharSequence label)
-
-
-
Method Detail
-
test
boolean test(CharSequence label)
- 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
default LabelFilter and(Predicate<? super CharSequence> other)
- Specified by:
and
in interfacePredicate<CharSequence>
-
-