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übersicht
KonstruktorenKonstruktorBeschreibungInstantiates aDoccatFactorythat provides the default implementation of the resources.DoccatFactory(FeatureGenerator[] featureGenerators) Instantiates aDoccatFactorythat provides the default implementation of the resources. -
Methodenübersicht
Modifizierer 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.BaseToolFactory
create, create, createArtifactMap, createArtifactSerializersMap
-
Konstruktordetails
-
DoccatFactory
public DoccatFactory()Instantiates aDoccatFactorythat provides the default implementation of the resources. -
DoccatFactory
Instantiates aDoccatFactorythat provides the default implementation of the resources.- Parameter:
featureGenerators- ThefeatureGeneratorsto use.
-
-
Methodendetails
-
createManifestEntries
- Setzt außer Kraft:
createManifestEntriesin KlasseBaseToolFactory- Gibt zurück:
- Retrieves the manifest entries to be added to the model manifest.
-
validateArtifactMap
Beschreibung aus Klasse kopiert:BaseToolFactoryValidates the parsed artifacts.Note: Subclasses should generally invoke
super.validateArtifactMapat the beginning of this method.- Angegeben von:
validateArtifactMapin KlasseBaseToolFactory- Löst aus:
InvalidFormatException- Thrown if validation found invalid states.
-
create
public 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 theDoccatFactory.featureGenerators- ThefeatureGeneratorsto use.- Gibt zurück:
- A valid
DoccatFactoryinstance. - Löst aus:
InvalidFormatException- Thrown if theExtensionLoadermechanism failed to create the factory associated withsubclassName.
-
getFeatureGenerators
- Gibt zurück:
- Retrieves the
generatorsused.
-
setFeatureGenerators
- Parameter:
featureGenerators- ThefeatureGeneratorsto use.
-