public class SentenceSample extends Object
SentenceSample contains a document with
begin indexes of the individual sentences.| Constructor and Description |
|---|
SentenceSample(CharSequence document,
Span... sentences)
Initializes the current instance.
|
SentenceSample(Detokenizer detokenizer,
String[][] sentences) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDocument()
Retrieves the document.
|
Span[] |
getSentences()
Retrieves the sentences.
|
int |
hashCode() |
String |
toString() |
public SentenceSample(CharSequence document, Span... sentences)
document - sentences - public SentenceSample(Detokenizer detokenizer, String[][] sentences)
Copyright © 2017 The Apache Software Foundation. All rights reserved.