Package opennlp.tools.tokenize
Class TokenSample
java.lang.Object
opennlp.tools.tokenize.TokenSample
- All Implemented Interfaces:
Serializable
A
TokenSample is text with token spans.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTokenSample(String text, Span[] tokenSpans) Initializes the current instance.TokenSample(Detokenizer detokenizer, String[] tokens) -
Method Summary
-
Field Details
-
DEFAULT_SEPARATOR_CHARS
- See Also:
-
-
Constructor Details
-
TokenSample
Initializes the current instance.- Parameters:
text- the text which contains the tokens.tokenSpans- the spans which mark the begin and end of the tokens.
-
TokenSample
-
-
Method Details