|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.sentdetect.SentenceSample
public class SentenceSample
A SentenceSample
contains a document with
begin indexes of the individual sentences.
Constructor Summary | |
---|---|
SentenceSample(Detokenizer detokenizer,
String[][] sentences)
|
|
SentenceSample(String document,
Span... sentences)
Initializes the current instance. |
Method Summary | |
---|---|
String |
getDocument()
Retrieves the document. |
Span[] |
getSentences()
Retrieves the sentences. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SentenceSample(String document, Span... sentences)
sentences
- sentenceSpans
- public SentenceSample(Detokenizer detokenizer, String[][] sentences)
Method Detail |
---|
public String getDocument()
public Span[] getSentences()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |