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 LabelFilterand(Predicate<? super CharSequence> other)booleantest(CharSequence label)
-
-
-
Method Detail
-
test
boolean test(CharSequence label)
- Specified by:
testin 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
falseif the label candidate should be ignored in processing.
-
and
default LabelFilter and(Predicate<? super CharSequence> other)
- Specified by:
andin interfacePredicate<CharSequence>
-
-