Package opennlp.tools.util.featuregen

# Class TokenClassFeatureGeneratorFactory

java.lang.Object
opennlp.tools.util.featuregen.GeneratorFactory.AbstractXmlFeatureGeneratorFactory
opennlp.tools.util.featuregen.TokenClassFeatureGeneratorFactory

public class TokenClassFeatureGeneratorFactory extends GeneratorFactory.AbstractXmlFeatureGeneratorFactory
A `GeneratorFactory` that produces `TokenClassFeatureGenerator` instances when `create()` is called.

See Also:
  - `TokenClassFeatureGenerator`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TokenClassFeatureGeneratorFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AdaptiveFeatureGenerator`
  `create()`

  ### Methods inherited from class opennlp.tools.util.featuregen.GeneratorFactory.AbstractXmlFeatureGeneratorFactory

  `getArtifactSerializerMapping, getBool, getBool, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getStr, getStr`

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

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

- ## Constructor Details

  - ### TokenClassFeatureGeneratorFactory

    public TokenClassFeatureGeneratorFactory()

- ## Method Details

  - ### create

    public AdaptiveFeatureGenerator create() throws InvalidFormatException
    Specified by:
      `create` in class `GeneratorFactory.AbstractXmlFeatureGeneratorFactory`
    Returns:
      `null` if the subclass uses `GeneratorFactory.AbstractXmlFeatureGeneratorFactory.resourceManager` to instantiate.
    Throws:
      `InvalidFormatException` - Thrown if the format is incorrect.