Package opennlp.tools.doccat
Klasse DoccatFactory
java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.doccat.DoccatFactory
The factory that provides Doccat default implementations and resources.
- 
KonstruktorübersichtKonstruktorenKonstruktorBeschreibungInstantiates aDoccatFactorythat provides the default implementation of the resources.DoccatFactory(FeatureGenerator[] featureGenerators) Instantiates aDoccatFactorythat provides the default implementation of the resources.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungstatic DoccatFactorycreate(String subclassName, FeatureGenerator[] featureGenerators) Factory method the framework uses create a newDoccatFactory.voidsetFeatureGenerators(FeatureGenerator[] featureGenerators) voidValidates the parsed artifacts.Von Klasse geerbte Methoden opennlp.tools.util.BaseToolFactorycreate, create, createArtifactMap, createArtifactSerializersMap
- 
Konstruktordetails- 
DoccatFactorypublic DoccatFactory()Instantiates aDoccatFactorythat provides the default implementation of the resources.
- 
DoccatFactoryInstantiates aDoccatFactorythat provides the default implementation of the resources.- Parameter:
- featureGenerators- The- featureGeneratorsto use.
 
 
- 
- 
Methodendetails- 
createManifestEntries- Setzt außer Kraft:
- createManifestEntriesin Klasse- BaseToolFactory
- Gibt zurück:
- Retrieves the manifest entries to be added to the model manifest.
 
- 
validateArtifactMapBeschreibung aus Klasse kopiert:BaseToolFactoryValidates the parsed artifacts.Note: Subclasses should generally invoke super.validateArtifactMapat the beginning of this method.- Angegeben von:
- validateArtifactMapin Klasse- BaseToolFactory
- Löst aus:
- 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.- Parameter:
- subclassName- The name of the class implementing the- DoccatFactory.
- featureGenerators- The- featureGeneratorsto use.
- Gibt zurück:
- A valid DoccatFactoryinstance.
- Löst aus:
- InvalidFormatException- Thrown if the- ExtensionLoadermechanism failed to create the factory associated with- subclassName.
 
- 
getFeatureGenerators- Gibt zurück:
- Retrieves the generatorsused.
 
- 
setFeatureGenerators- Parameter:
- featureGenerators- The- featureGeneratorsto use.
 
 
-