Package opennlp.tools.lemmatizer
Class LemmatizerFactory
- java.lang.Object
-
- opennlp.tools.util.BaseToolFactory
-
- opennlp.tools.lemmatizer.LemmatizerFactory
-
public class LemmatizerFactory extends BaseToolFactory
-
-
Constructor Summary
Constructors Constructor Description LemmatizerFactory()
Creates aLemmatizerFactory
that provides the default implementation of the resources.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LemmatizerFactory
create(String subclassName)
LemmatizerContextGenerator
getContextGenerator()
SequenceValidator<String>
getSequenceValidator()
void
validateArtifactMap()
Validates the parsed artifacts.-
Methods inherited from class opennlp.tools.util.BaseToolFactory
create, create, createArtifactMap, createArtifactSerializersMap, createManifestEntries
-
-
-
-
Constructor Detail
-
LemmatizerFactory
public LemmatizerFactory()
Creates aLemmatizerFactory
that provides the default implementation of the resources.
-
-
Method Detail
-
create
public static LemmatizerFactory create(String subclassName) throws InvalidFormatException
- Throws:
InvalidFormatException
-
validateArtifactMap
public void validateArtifactMap() throws InvalidFormatException
Description copied from class:BaseToolFactory
Validates the parsed artifacts. If something is not valid subclasses should throw anInvalidFormatException
. Note: Subclasses should generally invoke super.validateArtifactMap at the beginning of this method.- Specified by:
validateArtifactMap
in classBaseToolFactory
- Throws:
InvalidFormatException
-
getSequenceValidator
public SequenceValidator<String> getSequenceValidator()
-
getContextGenerator
public LemmatizerContextGenerator getContextGenerator()
-
-