Modifier and Type | Field and Description |
---|---|
static WhitespaceTokenizer |
INSTANCE
Use this static reference to retrieve an instance of the
WhitespaceTokenizer . |
Modifier and Type | Method and Description |
---|---|
String[] |
tokenize(String s)
Splits a string into its atomic parts
|
Span[] |
tokenizePos(String d)
Finds the boundaries of atomic parts in a string.
|
public static final WhitespaceTokenizer INSTANCE
WhitespaceTokenizer
.public Span[] tokenizePos(String d)
Tokenizer
d
- The string to be tokenized.Copyright © 2017 The Apache Software Foundation. All rights reserved.