Class ConllXPOSSampleStream
Parses the data from the CONLL 06 shared task into POS Samples.
More information about the data format can be found here:
http://www.cnts.ua.ac.be/conll2006/
public class ConllXPOSSampleStream : FilterObjectStream<string?, POSSample?>, IObjectStream<POSSample?>, IDisposable
- Inheritance
-
ConllXPOSSampleStream
- Implements
- Inherited Members
Constructors
ConllXPOSSampleStream(IInputStreamFactory, Encoding)
public ConllXPOSSampleStream(IInputStreamFactory @in, Encoding charset)
Parameters
inIInputStreamFactorycharsetEncoding
Exceptions
- IOException
if there is an error during reading
ConllXPOSSampleStream(IObjectStream<string?>)
public ConllXPOSSampleStream(IObjectStream<string?> lineStream)
Parameters
lineStreamIObjectStream<string>
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 POSSample? Read()
Returns
- POSSample
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