Package opennlp.tools.lemmatizer
Klasse LemmatizerFactory
java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.lemmatizer.LemmatizerFactory
The factory that provides
Lemmatizer
default implementation and
resources.-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiates aLemmatizerFactory
that provides the default implementation of the resources. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic LemmatizerFactory
Instantiates aLemmatizerFactory
via a givensubclassName
.void
Validates the parsed artifacts.Von Klasse geerbte Methoden opennlp.tools.util.BaseToolFactory
create, create, createArtifactMap, createArtifactSerializersMap, createManifestEntries
-
Konstruktordetails
-
LemmatizerFactory
public LemmatizerFactory()Instantiates aLemmatizerFactory
that provides the default implementation of the resources.
-
-
Methodendetails
-
create
Instantiates aLemmatizerFactory
via a givensubclassName
.- Parameter:
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
.- Gibt zurück:
- A valid
LemmatizerFactory
instance. - Löst aus:
InvalidFormatException
-
validateArtifactMap
Beschreibung aus Klasse kopiert:BaseToolFactory
Validates the parsed artifacts.Note: Subclasses should generally invoke
super.validateArtifactMap
at the beginning of this method.- Angegeben von:
validateArtifactMap
in KlasseBaseToolFactory
- Löst aus:
InvalidFormatException
- Thrown if validation found invalid states.
-
getSequenceValidator
- Gibt zurück:
- Retrieves a new
SequenceValidator
instance.
-
getContextGenerator
- Gibt zurück:
- Retrieves a new
LemmatizerContextGenerator
instance.
-