Package opennlp.tools.lemmatizer
Class LemmatizerModel
- java.lang.Object
-
- opennlp.tools.util.model.BaseModel
-
- opennlp.tools.lemmatizer.LemmatizerModel
-
- All Implemented Interfaces:
Serializable,ArtifactProvider
public class LemmatizerModel extends BaseModel
TheLemmatizerModelis the model used by a learnableLemmatizer.- See Also:
LemmatizerME, Serialized Form
-
-
Field Summary
-
Fields inherited from class opennlp.tools.util.model.BaseModel
TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description LemmatizerModel(File modelFile)LemmatizerModel(InputStream in)LemmatizerModel(String languageCode, MaxentModel lemmatizerModel, int beamSize, Map<String,String> manifestInfoEntries, LemmatizerFactory factory)LemmatizerModel(String languageCode, MaxentModel lemmatizerModel, Map<String,String> manifestInfoEntries, LemmatizerFactory factory)LemmatizerModel(String languageCode, MaxentModel lemmatizerModel, LemmatizerFactory factory)LemmatizerModel(String languageCode, SequenceClassificationModel<String> lemmatizerModel, Map<String,String> manifestInfoEntries, LemmatizerFactory factory)LemmatizerModel(URL modelURL)LemmatizerModel(Path modelPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LemmatizerFactorygetFactory()SequenceClassificationModel<String>getLemmatizerSequenceModel()-
Methods inherited from class opennlp.tools.util.model.BaseModel
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, serialize, serialize
-
-
-
-
Constructor Detail
-
LemmatizerModel
public LemmatizerModel(String languageCode, SequenceClassificationModel<String> lemmatizerModel, Map<String,String> manifestInfoEntries, LemmatizerFactory factory)
-
LemmatizerModel
public LemmatizerModel(String languageCode, MaxentModel lemmatizerModel, Map<String,String> manifestInfoEntries, LemmatizerFactory factory)
-
LemmatizerModel
public LemmatizerModel(String languageCode, MaxentModel lemmatizerModel, int beamSize, Map<String,String> manifestInfoEntries, LemmatizerFactory factory)
-
LemmatizerModel
public LemmatizerModel(String languageCode, MaxentModel lemmatizerModel, LemmatizerFactory factory)
-
LemmatizerModel
public LemmatizerModel(InputStream in) throws IOException, InvalidFormatException
- Throws:
IOExceptionInvalidFormatException
-
LemmatizerModel
public LemmatizerModel(File modelFile) throws IOException, InvalidFormatException
- Throws:
IOExceptionInvalidFormatException
-
LemmatizerModel
public LemmatizerModel(Path modelPath) throws IOException, InvalidFormatException
- Throws:
IOExceptionInvalidFormatException
-
LemmatizerModel
public LemmatizerModel(URL modelURL) throws IOException, InvalidFormatException
- Throws:
IOExceptionInvalidFormatException
-
-
Method Detail
-
getLemmatizerSequenceModel
public SequenceClassificationModel<String> getLemmatizerSequenceModel()
-
getFactory
public LemmatizerFactory getFactory()
-
-