Package opennlp.tools.sentdetect
Class SentenceSample
java.lang.Object
opennlp.tools.sentdetect.SentenceSample
- All Implemented Interfaces:
Serializable
,Sample
A
SentenceSample
contains a document with
begin indexes of the individual sentences.- See Also:
-
Constructor Summary
ConstructorDescriptionSentenceSample
(CharSequence document, Span... sentences) Initializes the current instance.SentenceSample
(Detokenizer detokenizer, String[][] sentences) -
Method Summary
-
Constructor Details
-
SentenceSample
Initializes the current instance.- Parameters:
document
- The document represented as plainCharSequence
.sentences
- One or morespans
that represent a sentence each.
-
SentenceSample
-
-
Method Details