Class MosesSentenceSampleStream

Namespace
NOpenNLP.Tools.Formats.Moses
Assembly
NOpenNLP.Tools.dll
public class MosesSentenceSampleStream : FilterObjectStream<string?, SentenceSample?>, IObjectStream<SentenceSample?>, IDisposable
Inheritance
MosesSentenceSampleStream
Implements
Inherited Members

Constructors

MosesSentenceSampleStream(IObjectStream<string?>)

public MosesSentenceSampleStream(IObjectStream<string?> sentences)

Parameters

sentences IObjectStream<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 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