Modifier and Type | Field and Description |
---|---|
static SimpleTokenizer |
INSTANCE |
Constructor and Description |
---|
SimpleTokenizer()
Deprecated.
Use INSTANCE field instead to obtain an instance, constructor
will be made private in the future.
|
Modifier and Type | Method and Description |
---|---|
String[] |
tokenize(String s)
Splits a string into its atomic parts
|
Span[] |
tokenizePos(String s)
Finds the boundaries of atomic parts in a string.
|
public static final SimpleTokenizer INSTANCE
@Deprecated public SimpleTokenizer()
public Span[] tokenizePos(String s)
Tokenizer
s
- The string to be tokenized.Copyright © 2021 The Apache Software Foundation. All rights reserved.