Package opennlp.tools.tokenize
Interface AlphanumericCheck
- All Known Implementing Classes:
TokenizerFactory.PatternCheck
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Checks whether a candidate token is accepted by the alphanumeric optimization of
TokenizerME and TokSpanEventStream, so it is not split further.-
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(CharSequence candidate) Returnstrueifcandidateis accepted as alphanumeric.
-
Method Details
-
check
Returnstrueifcandidateis accepted as alphanumeric.- Parameters:
candidate- The candidate token.- Returns:
trueifcandidateis accepted as alphanumeric
-