DefinitionFeatureGeneratorFactory (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.util.featuregen, class: DefinitionFeatureGeneratorFactory

# Class DefinitionFeatureGeneratorFactory

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

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

See Also:
  - `OutcomePriorFeatureGenerator`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefinitionFeatureGeneratorFactory()`

- ## Method Summary

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

  ### Methods inherited from class GeneratorFactory.AbstractXmlFeatureGeneratorFactory

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

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### DefinitionFeatureGeneratorFactory

    public DefinitionFeatureGeneratorFactory()

- ## 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.