|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.tokenize.SimpleTokenizer
public class SimpleTokenizer
Performs tokenization using character classes.
Field Summary | |
---|---|
static SimpleTokenizer |
INSTANCE
|
Constructor Summary | |
---|---|
SimpleTokenizer()
Deprecated. Use INSTANCE field instead to obtain an instance, constructor will be made private in the future. |
Method Summary | |
---|---|
static void |
main(String[] args)
Deprecated. |
String[] |
tokenize(String s)
Splits a string into its atomic parts |
Span[] |
tokenizePos(String s)
Finds the boundaries of atomic parts in a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SimpleTokenizer INSTANCE
Constructor Detail |
---|
@Deprecated public SimpleTokenizer()
Method Detail |
---|
public Span[] tokenizePos(String s)
Tokenizer
s
- The string to be tokenized.
@Deprecated public static void main(String[] args) throws IOException
args
-
IOException
public String[] tokenize(String s)
Tokenizer
tokenize
in interface Tokenizer
s
- The string to be tokenized.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |