public abstract class AbstractEventTrainer extends AbstractTrainer implements EventTrainer
Modifier and Type | Field and Description |
---|---|
static String |
DATA_INDEXER_ONE_PASS_REAL_VALUE |
static String |
DATA_INDEXER_ONE_PASS_VALUE |
static String |
DATA_INDEXER_PARAM |
static String |
DATA_INDEXER_TWO_PASS_VALUE |
ALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM, VERBOSE_DEFAULT, VERBOSE_PARAM
EVENT_VALUE
Constructor and Description |
---|
AbstractEventTrainer() |
AbstractEventTrainer(TrainingParameters parameters) |
Modifier and Type | Method and Description |
---|---|
abstract MaxentModel |
doTrain(DataIndexer indexer) |
DataIndexer |
getDataIndexer(ObjectStream<Event> events) |
abstract boolean |
isSortAndMerge() |
boolean |
isValid()
Deprecated.
|
MaxentModel |
train(DataIndexer indexer) |
MaxentModel |
train(ObjectStream<Event> events) |
void |
validate()
Check parameters.
|
getAlgorithm, getCutoff, getIterations, init, init
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, init
public static final String DATA_INDEXER_PARAM
public static final String DATA_INDEXER_ONE_PASS_VALUE
public static final String DATA_INDEXER_TWO_PASS_VALUE
public static final String DATA_INDEXER_ONE_PASS_REAL_VALUE
public AbstractEventTrainer()
public AbstractEventTrainer(TrainingParameters parameters)
public void validate()
AbstractTrainer
validate
in class AbstractTrainer
@Deprecated public boolean isValid()
isValid
in class AbstractTrainer
public abstract boolean isSortAndMerge()
public DataIndexer getDataIndexer(ObjectStream<Event> events) throws IOException
IOException
public abstract MaxentModel doTrain(DataIndexer indexer) throws IOException
IOException
public final MaxentModel train(DataIndexer indexer) throws IOException
train
in interface EventTrainer
IOException
public final MaxentModel train(ObjectStream<Event> events) throws IOException
train
in interface EventTrainer
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.