Class MosesSentenceSampleStream
public class MosesSentenceSampleStream : FilterObjectStream<string?, SentenceSample?>, IObjectStream<SentenceSample?>, IDisposable
- Inheritance
-
MosesSentenceSampleStream
- Implements
- Inherited Members
Constructors
MosesSentenceSampleStream(IObjectStream<string?>)
public MosesSentenceSampleStream(IObjectStream<string?> sentences)
Parameters
sentencesIObjectStream<string>
Methods
Read()
Returns the next object. Calling this method repeatedly until it returns
null will return each object from the underlying source exactly once.
public override SentenceSample? Read()
Returns
- SentenceSample
the next object or
nullto signal that the stream is exhausted
Exceptions
- IOException
if there is an error during reading
- IOException
if there is an error during reading