Package opennlp.tools.sentdetect
Class SentenceSample
- java.lang.Object
-
- opennlp.tools.sentdetect.SentenceSample
-
- All Implemented Interfaces:
Serializable
public class SentenceSample extends Object implements Serializable
ASentenceSample
contains a document with begin indexes of the individual sentences.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SentenceSample(CharSequence document, Span... sentences)
Initializes the current instance.SentenceSample(Detokenizer detokenizer, String[][] sentences)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDocument()
Retrieves the document.Span[]
getSentences()
Retrieves the sentences.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SentenceSample
public SentenceSample(CharSequence document, Span... sentences)
Initializes the current instance.- Parameters:
document
-sentences
-
-
SentenceSample
public SentenceSample(Detokenizer detokenizer, String[][] sentences)
-
-