Package opennlp.tools.ml
Interface EventTrainer
-
- All Superinterfaces:
Trainer
- All Known Implementing Classes:
AbstractEventTrainer
,GISTrainer
,NaiveBayesTrainer
,PerceptronTrainer
,QNTrainer
public interface EventTrainer extends Trainer
-
-
Field Summary
Fields Modifier and Type Field Description static String
EVENT_VALUE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MaxentModel
train(DataIndexer indexer)
Trains aMaxentModel
for givenevents
.MaxentModel
train(ObjectStream<Event> events)
Trains aMaxentModel
for givenevents
.
-
-
-
Field Detail
-
EVENT_VALUE
static final String EVENT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
train
MaxentModel train(ObjectStream<Event> events) throws IOException
Trains aMaxentModel
for givenevents
.- Parameters:
events
- The inputevents
.- Returns:
- The trained
MaxentModel
. - Throws:
IOException
- Thrown if IO errors occurred.
-
train
MaxentModel train(DataIndexer indexer) throws IOException
Trains aMaxentModel
for givenevents
.- Parameters:
indexer
- The inputindexer
to use.- Returns:
- The trained
MaxentModel
. - Throws:
IOException
- Thrown if IO errors occurred.
-
-