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