}
}
public ChunkSample read() throws IOException {
Paragraph paragraph;
while ((paragraph = this.adSentenceStream.read()) != null) {
if (end > -1 && index >= end) {
// leave
return null;
}
if (start > -1 && index < start) {
index++;
// skip this one
} else {
Node root = paragraph.getRoot();
List<String> sentence = new ArrayList<String>();
List<String> tags = new ArrayList<String>();
List<String> target = new ArrayList<String>();
processRoot(root, sentence, tags, target);