Package opennlp.tools.chunker
Class ChunkerFactory
java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.chunker.ChunkerFactory
- Direct Known Subclasses:
ParserChunkerFactory
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aChunkerFactorythat provides the default implementation of the resources. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkerFactoryInstantiates aChunkerFactoryvia a givensubclassName.voidValidates the parsed artifacts.Methods inherited from class opennlp.tools.util.BaseToolFactory
create, create, createArtifactMap, createArtifactSerializersMap, createManifestEntries
-
Constructor Details
-
ChunkerFactory
public ChunkerFactory()Creates aChunkerFactorythat provides the default implementation of the resources.
-
-
Method Details
-
create
Instantiates aChunkerFactoryvia a givensubclassName.- Parameters:
subclassName- The class name used for instantiation. Ifnull, an instance ofChunkerFactorywill be returned per default. Otherwise, theExtensionLoadermechanism is applied to load the requestedsubclassName.- Returns:
- A valid
ChunkerFactoryinstance. - Throws:
InvalidFormatException- Thrown if theExtensionLoadermechanism failed to create the factory associated withsubclassName.
-
validateArtifactMap
Description copied from class:BaseToolFactoryValidates the parsed artifacts.Note: Subclasses should generally invoke
super.validateArtifactMapat the beginning of this method.- Specified by:
validateArtifactMapin classBaseToolFactory- Throws:
InvalidFormatException- Thrown if validation found invalid states.
-
getSequenceValidator
-
getContextGenerator
-