Class AbstractToSentenceSampleStream<T>

Namespace
NOpenNLP.Tools.Formats.Convert
Assembly
NOpenNLP.Tools.dll
public abstract class AbstractToSentenceSampleStream<T> : FilterObjectStream<T?, SentenceSample?>, IObjectStream<SentenceSample?>, IDisposable where T : class

Type Parameters

T
Inheritance
AbstractToSentenceSampleStream<T>
Implements
Derived
Inherited Members

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

ToSentence(T)

protected abstract string[] ToSentence(T sample)

Parameters

sample T

Returns

string[]