Class LemmaSampleStream
- Namespace
- NOpenNLP.Tools.Lemmatizer
- Assembly
- NOpenNLP.Tools.dll
Reads data for training and testing the lemmatizer. The format consists of: word\tpostag\tlemma.
public class LemmaSampleStream : FilterObjectStream<string?, LemmaSample?>, IObjectStream<LemmaSample?>, IDisposable
- Inheritance
-
LemmaSampleStream
- Implements
- Inherited Members
Constructors
LemmaSampleStream(IObjectStream<string?>)
Reads data for training and testing the lemmatizer. The format consists of: word\tpostag\tlemma.
public LemmaSampleStream(IObjectStream<string?> samples)
Parameters
samplesIObjectStream<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 LemmaSample? Read()
Returns
- LemmaSample
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