Class POSToTokenSampleStream

Namespace
NOpenNLP.Tools.Formats.Convert
Assembly
NOpenNLP.Tools.dll

Note: Do not use this class, internal use only!

public class POSToTokenSampleStream : FilterObjectStream<POSSample?, TokenSample?>, IObjectStream<TokenSample?>, IDisposable
Inheritance
POSToTokenSampleStream
Implements
Inherited Members

Constructors

POSToTokenSampleStream(IDetokenizer, IObjectStream<POSSample?>)

Note: Do not use this class, internal use only!

public POSToTokenSampleStream(IDetokenizer detokenizer, IObjectStream<POSSample?> samples)

Parameters

detokenizer IDetokenizer
samples IObjectStream<POSSample>

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 TokenSample? Read()

Returns

TokenSample

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