Package opennlp.tools.doccat
Class DoccatFactory
java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.doccat.DoccatFactory
The factory that provides Doccat default implementations and resources.
- 
Constructor SummaryConstructorsConstructorDescriptionInstantiates aDoccatFactorythat provides the default implementation of the resources.DoccatFactory(FeatureGenerator[] featureGenerators) Instantiates aDoccatFactorythat provides the default implementation of the resources.
- 
Method SummaryModifier and TypeMethodDescriptionstatic DoccatFactorycreate(String subclassName, FeatureGenerator[] featureGenerators) Factory method the framework uses create a newDoccatFactory.voidsetFeatureGenerators(FeatureGenerator[] featureGenerators) voidValidates the parsed artifacts.Methods inherited from class opennlp.tools.util.BaseToolFactorycreate, create, createArtifactMap, createArtifactSerializersMap
- 
Constructor Details- 
DoccatFactorypublic DoccatFactory()Instantiates aDoccatFactorythat provides the default implementation of the resources.
- 
DoccatFactoryInstantiates aDoccatFactorythat provides the default implementation of the resources.- Parameters:
- featureGenerators- The- featureGeneratorsto use.
 
 
- 
- 
Method Details- 
createManifestEntries- Overrides:
- createManifestEntriesin class- BaseToolFactory
- Returns:
- Retrieves the manifest entries to be added to the model manifest.
 
- 
validateArtifactMapDescription copied from class:BaseToolFactoryValidates the parsed artifacts.Note: Subclasses should generally invoke super.validateArtifactMapat the beginning of this method.- Specified by:
- validateArtifactMapin class- BaseToolFactory
- Throws:
- InvalidFormatException- Thrown if validation found invalid states.
 
- 
createpublic static DoccatFactory create(String subclassName, FeatureGenerator[] featureGenerators) throws InvalidFormatException Factory method the framework uses create a newDoccatFactory.- Parameters:
- subclassName- The name of the class implementing the- DoccatFactory.
- featureGenerators- The- featureGeneratorsto use.
- Returns:
- A valid DoccatFactoryinstance.
- Throws:
- InvalidFormatException- Thrown if the- ExtensionLoadermechanism failed to create the factory associated with- subclassName.
 
- 
getFeatureGenerators- Returns:
- Retrieves the generatorsused.
 
- 
setFeatureGenerators- Parameters:
- featureGenerators- The- featureGeneratorsto use.
 
 
-