Package opennlp.tools.lemmatizer
Class LemmatizerFactory
java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.lemmatizer.LemmatizerFactory
The factory that provides
Lemmatizer
default implementation and
resources.-
Constructor Summary
ConstructorDescriptionInstantiates aLemmatizerFactory
that provides the default implementation of the resources. -
Method Summary
Modifier and TypeMethodDescriptionstatic LemmatizerFactory
Instantiates aLemmatizerFactory
via a givensubclassName
.void
Validates the parsed artifacts.Methods inherited from class opennlp.tools.util.BaseToolFactory
create, create, createArtifactMap, createArtifactSerializersMap, createManifestEntries
-
Constructor Details
-
LemmatizerFactory
public LemmatizerFactory()Instantiates aLemmatizerFactory
that provides the default implementation of the resources.
-
-
Method Details
-
create
Instantiates aLemmatizerFactory
via a givensubclassName
.- Parameters:
subclassName
- The class name used for instantiation. Ifnull
, an instance ofLemmatizerFactory
will be returned per default. Otherwise, theExtensionLoader
mechanism is applied to load the requestedsubclassName
.- Returns:
- A valid
LemmatizerFactory
instance. - Throws:
InvalidFormatException
-
validateArtifactMap
Description copied from class:BaseToolFactory
Validates the parsed artifacts.Note: Subclasses should generally invoke
super.validateArtifactMap
at the beginning of this method.- Specified by:
validateArtifactMap
in classBaseToolFactory
- Throws:
InvalidFormatException
- Thrown if validation found invalid states.
-
getSequenceValidator
- Returns:
- Retrieves a new
SequenceValidator
instance.
-
getContextGenerator
- Returns:
- Retrieves a new
LemmatizerContextGenerator
instance.
-