|
|||||||||
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,
java.lang.String[][] sentences)
|
|
SentenceSample(java.lang.String document,
Span... sentences)
Initializes the current instance. |
Method Summary | |
---|---|
java.lang.String |
getDocument()
Retrieves the document. |
Span[] |
getSentences()
Retrieves the sentences. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SentenceSample(java.lang.String document, Span... sentences)
sentences
- sentenceSpans
- public SentenceSample(Detokenizer detokenizer, java.lang.String[][] sentences)
Method Detail |
---|
public java.lang.String getDocument()
public Span[] getSentences()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |