Class ConllXPOSSampleStream

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

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/

Note: Do not use this class, internal use only!
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

in IInputStreamFactory
charset Encoding

Exceptions

IOException

if there is an error during reading

ConllXPOSSampleStream(IObjectStream<string?>)

public ConllXPOSSampleStream(IObjectStream<string?> lineStream)

Parameters

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