Package org.tribuo.util.tokens.impl
Interface SplitFunctionTokenizer.SplitFunction
- All Known Implementing Classes:
SplitCharactersTokenizer.SplitCharactersSplitterFunction
- Enclosing class:
- SplitFunctionTokenizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface for checking if the text should be split at the supplied codepoint.
-
Method Summary
Modifier and TypeMethodDescriptionapply
(int codepoint, int index, CharSequence cs) Applies the split function.
-
Method Details
-
apply
Applies the split function.- Parameters:
codepoint
- The codepoint to check.index
- The character index.cs
- The sequence that's being split.- Returns:
- How the sequence should be split.
-