Class ChunkSampleStream

Namespace
NOpenNLP.Tools.Parser
Assembly
NOpenNLP.Tools.dll
public class ChunkSampleStream : FilterObjectStream<Parse?, ChunkSample?>, IObjectStream<ChunkSample?>, IDisposable
Inheritance
ChunkSampleStream
Implements
Inherited Members

Constructors

ChunkSampleStream(IObjectStream<Parse?>)

public ChunkSampleStream(IObjectStream<Parse?> @in)

Parameters

in IObjectStream<Parse>

Methods

GetInitialChunks(Parse)

public static Parse[] GetInitialChunks(Parse p)

Parameters

p Parse

Returns

Parse[]

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

Returns

ChunkSample

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