opennlp.tools.util.featuregen
Interface FeatureGeneratorFactory


public interface FeatureGeneratorFactory

The FeatureGeneratorFactory interface is factory for AdaptiveFeatureGenerators.

Note:
All implementing classes must be thread safe.

See Also:
AdaptiveFeatureGenerator, FeatureGeneratorResourceProvider

Method Summary
 AdaptiveFeatureGenerator createFeatureGenerator(FeatureGeneratorResourceProvider resourceProvider)
          Constructs a new AdaptiveFeatureGenerator.
 

Method Detail

createFeatureGenerator

AdaptiveFeatureGenerator createFeatureGenerator(FeatureGeneratorResourceProvider resourceProvider)
Constructs a new AdaptiveFeatureGenerator.

Note:
It is assumed that all resource objects are thread safe and can be shared between multiple instances of feature generators. If that is not the case the implementor should make a copy of the resource object. All resource objects that are included in OpenNLP can be assumed to be thread safe.

Parameters:
resourceProvider - provides access to resources which are needed for feature generation.
Returns:
the newly created feature generator


Copyright © 2010. All Rights Reserved.