public class ConlluSentenceSampleStream extends FilterObjectStream<ConlluSentence,SentenceSample>
| Constructor and Description |
|---|
ConlluSentenceSampleStream(ObjectStream<ConlluSentence> samples,
int sentencesPerSample) |
| Modifier and Type | Method and Description |
|---|---|
SentenceSample |
read()
Returns the next object.
|
close, resetpublic ConlluSentenceSampleStream(ObjectStream<ConlluSentence> samples, int sentencesPerSample)
public SentenceSample read() throws IOException
ObjectStreamIOException - if there is an error during readingCopyright © 2020 The Apache Software Foundation. All rights reserved.