Package opennlp.tools.ml
Class TrainerFactory
- java.lang.Object
-
- opennlp.tools.ml.TrainerFactory
-
public class TrainerFactory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrainerFactory.TrainerType
-
Constructor Summary
Constructors Constructor Description TrainerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventModelSequenceTrainer
getEventModelSequenceTrainer(TrainingParameters trainParams, java.util.Map<java.lang.String,java.lang.String> reportMap)
static EventTrainer
getEventTrainer(TrainingParameters trainParams, java.util.Map<java.lang.String,java.lang.String> reportMap)
static SequenceTrainer
getSequenceModelTrainer(TrainingParameters trainParams, java.util.Map<java.lang.String,java.lang.String> reportMap)
static TrainerFactory.TrainerType
getTrainerType(TrainingParameters trainParams)
Determines the trainer type based on the ALGORITHM_PARAM value.static boolean
isValid(TrainingParameters trainParams)
-
-
-
Method Detail
-
getTrainerType
public static TrainerFactory.TrainerType getTrainerType(TrainingParameters trainParams)
Determines the trainer type based on the ALGORITHM_PARAM value.- Parameters:
trainParams
- - Map of training parameters- Returns:
- the trainer type or null if type couldn't be determined.
-
getSequenceModelTrainer
public static SequenceTrainer getSequenceModelTrainer(TrainingParameters trainParams, java.util.Map<java.lang.String,java.lang.String> reportMap)
-
getEventModelSequenceTrainer
public static EventModelSequenceTrainer getEventModelSequenceTrainer(TrainingParameters trainParams, java.util.Map<java.lang.String,java.lang.String> reportMap)
-
getEventTrainer
public static EventTrainer getEventTrainer(TrainingParameters trainParams, java.util.Map<java.lang.String,java.lang.String> reportMap)
-
isValid
public static boolean isValid(TrainingParameters trainParams)
-
-