Class ChunkSampleStream

Namespace
NOpenNLP.Tools.Chunker
Assembly
NOpenNLP.Tools.dll

Parses the conll 2000 shared task shallow parser training data.

Data format is specified on the conll page:
http://www.cnts.ua.ac.be/conll2000/chunking/

public class ChunkSampleStream : FilterObjectStream<string?, ChunkSample?>, IObjectStream<ChunkSample?>, IDisposable
Inheritance
ChunkSampleStream
Implements
Inherited Members

Constructors

ChunkSampleStream(IObjectStream<string?>)

Initializes the current instance.

public ChunkSampleStream(IObjectStream<string?> samples)

Parameters

samples IObjectStream<string>

a plain text line stream

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