Package opennlp.tools.ml
Interface EventTrainer
- All Superinterfaces:
Trainer
- All Known Implementing Classes:
AbstractEventTrainer
,GISTrainer
,NaiveBayesTrainer
,PerceptronTrainer
,QNTrainer
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiontrain
(DataIndexer indexer) Trains aMaxentModel
for givenevents
.train
(ObjectStream<Event> events) Trains aMaxentModel
for givenevents
.
-
Field Details
-
EVENT_VALUE
- See Also:
-
-
Method Details
-
train
Trains aMaxentModel
for givenevents
.- Parameters:
events
- The inputevents
.- Returns:
- The trained
MaxentModel
. - Throws:
IOException
- Thrown if IO errors occurred.
-
train
Trains aMaxentModel
for givenevents
.- Parameters:
indexer
- The inputindexer
to use.- Returns:
- The trained
MaxentModel
. - Throws:
IOException
- Thrown if IO errors occurred.
-