public class SentenceSampleStream extends FilterObjectStream<String,SentenceSample>
Reader
and converts them into SentenceSample
objects.
An empty line indicates the begin of a new document.Constructor and Description |
---|
SentenceSampleStream(ObjectStream<String> sentences) |
Modifier and Type | Method and Description |
---|---|
SentenceSample |
read()
Returns the next object.
|
static String |
replaceNewLineEscapeTags(String s) |
close, reset
public SentenceSampleStream(ObjectStream<String> sentences)
public SentenceSample read() throws IOException
ObjectStream
IOException
- if there is an error during readingCopyright © 2015 The Apache Software Foundation. All rights reserved.