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