Class ConlluSentenceSampleStream

Namespace
NOpenNLP.Tools.Formats.Conllu
Assembly
NOpenNLP.Tools.dll
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

samples IObjectStream<ConlluSentence>
sentencesPerSample int

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 null to signal that the stream is exhausted

Exceptions

IOException

if there is an error during reading

IOException

if there is an error during reading