Class ChunkSampleStream
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
samplesIObjectStream<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
nullto signal that the stream is exhausted
Exceptions
- IOException
if there is an error during reading
- IOException
if there is an error during reading