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