Package opennlp.tools.sentdetect
Klasse SentenceSample
java.lang.Object
opennlp.tools.sentdetect.SentenceSample
- Alle implementierten Schnittstellen:
Serializable
,Sample
A
SentenceSample
contains a document with
begin indexes of the individual sentences.- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSentenceSample
(CharSequence document, Span... sentences) Initializes the current instance.SentenceSample
(Detokenizer detokenizer, String[][] sentences) -
Methodenübersicht
-
Konstruktordetails
-
SentenceSample
Initializes the current instance.- Parameter:
document
- The document represented as plainCharSequence
.sentences
- One or morespans
that represent a sentence each.
-
SentenceSample
-
-
Methodendetails
-
getDocument
- Gibt zurück:
- the document as a plain string.
-
getSentences
- Gibt zurück:
- the
spans
of the sentences in a document.
-
toString
-
hashCode
public int hashCode() -
equals
-