opennlp.tools.util.featuregen

## Class DefinitionFeatureGeneratorFactory

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

-     public class DefinitionFeatureGeneratorFactory
      extends GeneratorFactory.AbstractXmlFeatureGeneratorFactory

  See Also:
    `DefinitionFeatureGeneratorFactory`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefinitionFeatureGeneratorFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `AdaptiveFeatureGenerator` | `create()`
    `AdaptiveFeatureGenerator` | `create(Element generatorElement, FeatureGeneratorResourceProvider resourceManager)` Deprecated.

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

    - #### DefinitionFeatureGeneratorFactory

          public DefinitionFeatureGeneratorFactory()

  - ### Method Detail

    - #### create

          @Deprecated
          public AdaptiveFeatureGenerator create(Element generatorElement,
                                                             FeatureGeneratorResourceProvider resourceManager)
                                                      throws InvalidFormatException

      Deprecated.
      Creates an `AdaptiveFeatureGenerator` from a the describing XML element.
      Parameters:
        `generatorElement` - the element which contains the configuration
        `resourceManager` - the resource manager which could be used to access referenced resources
      Returns:
        the configured `AdaptiveFeatureGenerator`
      Throws:
        `InvalidFormatException`

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

Copyright © 2026 The Apache Software Foundation. All rights reserved.