Package opennlp.tools.formats

# Class TokenSampleStreamFactory

java.lang.Object
opennlp.tools.formats.AbstractSampleStreamFactory<T,P>
opennlp.tools.formats.LanguageSampleStreamFactory<TokenSample,TokenSampleStreamFactory.Parameters>
opennlp.tools.formats.TokenSampleStreamFactory

All Implemented Interfaces:
  `opennlp.tools.cmdline.ObjectStreamFactory<TokenSample,TokenSampleStreamFactory.Parameters>`

public class TokenSampleStreamFactory extends LanguageSampleStreamFactory<TokenSample,TokenSampleStreamFactory.Parameters>
Factory producing OpenNLP `TokenSampleStream`s.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static interface`
  `TokenSampleStreamFactory.Parameters`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ObjectStream<TokenSample>`
  `create(String[] args)`
  Creates an `ObjectStream` of the template type `T`.
  `static void`
  `registerFactory()`

  ### Methods inherited from class opennlp.tools.formats.LanguageSampleStreamFactory

  `getLang`

  ### Methods inherited from class opennlp.tools.formats.AbstractSampleStreamFactory

  `getParameters`

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

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

- ## Method Details

  - ### registerFactory

    public static void registerFactory()

  - ### create

    public ObjectStream<TokenSample> create(String[] args)
    Description copied from interface: `opennlp.tools.cmdline.ObjectStreamFactory`
    Creates an `ObjectStream` of the template type `T`.
    Parameters:
      `args` - arguments
    Returns:
      The created `ObjectStream` instance.