Package opennlp.tools.tokenize
Class SimpleTokenizer
java.lang.Object
opennlp.tools.tokenize.SimpleTokenizer
- All Implemented Interfaces:
opennlp.tools.tokenize.Tokenizer
A basic
Tokenizer implementation which performs tokenization
using character classes.
To obtain an instance of this tokenizer use the static final
INSTANCE field.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleTokenizerUse this static reference to retrieve an instance of theSimpleTokenizer. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetKeepNewLines(boolean arg0) String[]opennlp.tools.util.Span[]
-
Field Details
-
INSTANCE
Use this static reference to retrieve an instance of theSimpleTokenizer.
-
-
Method Details
-
tokenizePos
-
tokenize
- Specified by:
tokenizein interfaceopennlp.tools.tokenize.Tokenizer
-
setKeepNewLines
public void setKeepNewLines(boolean arg0)
-