LemmaSampleStream (Apache OpenNLP :: Core :: Runtime 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.lemmatizer, class: LemmaSampleStream

Package opennlp.tools.lemmatizer

# Class LemmaSampleStream

java.lang.Object
opennlp.tools.util.FilterObjectStream<String,opennlp.tools.lemmatizer.LemmaSample>
opennlp.tools.lemmatizer.LemmaSampleStream

All Implemented Interfaces:
  `AutoCloseable`, `opennlp.tools.util.ObjectStream<opennlp.tools.lemmatizer.LemmaSample>`

public class LemmaSampleStream extends FilterObjectStream<String,opennlp.tools.lemmatizer.LemmaSample>
Reads data for training and testing the `Lemmatizer`.

The format consists of: `word\tpostag\tlemma`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LemmaSampleStream(opennlp.tools.util.ObjectStream<String> samples)`
  Initializes a `instance`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `opennlp.tools.lemmatizer.LemmaSample`
  `read()`

  ### Methods inherited from class opennlp.tools.util.FilterObjectStream

  `close, reset`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LemmaSampleStream

    public LemmaSampleStream(opennlp.tools.util.ObjectStream<String> samples)
    Initializes a `instance`.
    Parameters:
      `samples` - A plain text `line stream`.

- ## Method Details

  - ### read

    public opennlp.tools.lemmatizer.LemmaSample read() throws IOException
    Throws:
      `IOException`