Class ConlluSentenceSampleStream
public class ConlluSentenceSampleStream : FilterObjectStream<ConlluSentence?, SentenceSample?>, IObjectStream<SentenceSample?>, IDisposable
- Inheritance
-
ConlluSentenceSampleStream
- Implements
- Inherited Members
Constructors
ConlluSentenceSampleStream(IObjectStream<ConlluSentence?>, int)
public ConlluSentenceSampleStream(IObjectStream<ConlluSentence?> samples, int sentencesPerSample)
Parameters
samplesIObjectStream<ConlluSentence>sentencesPerSampleint
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