Package org.carrot2.language
Interface StopwordFilter
-
- 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 StopwordFilter extends Predicate<CharSequence>
A stop word filter.- Since:
- 4.1.0
- See Also:
EphemeralDictionaries
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StopwordFilter
and(Predicate<? super CharSequence> other)
boolean
test(CharSequence word)
-
-
-
Method Detail
-
test
boolean test(CharSequence word)
- Specified by:
test
in interfacePredicate<CharSequence>
- Parameters:
word
- The word to test. Input words are guaranteed to be in lower case (consistent withCharacter.toLowerCase(int)
.- Returns:
- Return
false
if the provided term should be ignored in processing.
-
and
default StopwordFilter and(Predicate<? super CharSequence> other)
- Specified by:
and
in interfacePredicate<CharSequence>
-
-