public class TrainUtil extends Object
Constructor and Description |
---|
TrainUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSequenceTraining(Map<String,String> trainParams)
Deprecated.
Use
TrainerFactory.isSequenceTraining(Map) instead. |
static boolean |
isValid(Map<String,String> trainParams)
Deprecated.
Use
TrainerFactory.isValid(Map) instead. |
static MaxentModel |
train(ObjectStream<Event> events,
Map<String,String> trainParams,
Map<String,String> reportMap)
Deprecated.
Use
TrainerFactory.getEventTrainer(Map, Map) to get an
EventTrainer instead. |
static MaxentModel |
train(SequenceStream events,
Map<String,String> trainParams,
Map<String,String> reportMap)
Deprecated.
Use
TrainerFactory.getSequenceTrainer(Map, Map) to get an
EventModelSequenceTrainer instead. |
public static boolean isValid(Map<String,String> trainParams)
TrainerFactory.isValid(Map)
instead.public static MaxentModel train(ObjectStream<Event> events, Map<String,String> trainParams, Map<String,String> reportMap) throws IOException
IOException
public static boolean isSequenceTraining(Map<String,String> trainParams)
TrainerFactory.isSequenceTraining(Map)
instead.public static MaxentModel train(SequenceStream events, Map<String,String> trainParams, Map<String,String> reportMap) throws IOException
TrainerFactory.getSequenceTrainer(Map, Map)
to get an
EventModelSequenceTrainer
instead.IOException
Copyright © 2015 The Apache Software Foundation. All rights reserved.