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
ConstructorsConstructorDescriptionSentenceSample(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 morespansthat represent a sentence each.
-
SentenceSample
-
-
Method Details
-
getDocument
- Returns:
- the document as a plain string.
-
getSentences
-
toString
-
hashCode
-
equals
-