Package opennlp.tools.tokenize.lattice
Class WhitespaceRuns
java.lang.Object
opennlp.tools.tokenize.lattice.WhitespaceRuns
Splits a text into the maximal stretches that contain no whitespace, as judged by
StringUtil.isWhitespace(char).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfaceReceives one whitespace-free stretch of a text. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidforEachNonWhitespaceRun(String text, WhitespaceRuns.RunHandler handler) Passes each whitespace-free stretch oftexttohandler, in text order.
-
Constructor Details
-
WhitespaceRuns
private WhitespaceRuns()
-
-
Method Details
-
forEachNonWhitespaceRun
Passes each whitespace-free stretch oftexttohandler, in text order.- Parameters:
text- The text to split.handler- Receives each stretch.
-