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.
A stop word filter.
- Since:
- 4.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault StopwordFilter
and
(Predicate<? super CharSequence> other) boolean
test
(CharSequence word)
-
Method Details
-
test
- 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
- Specified by:
and
in interfacePredicate<CharSequence>
-