public abstract class AbstractEventTrainer extends AbstractTrainer implements EventTrainer
| Modifier and Type | Field and Description |
|---|---|
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_PARAMEVENT_VALUE| Constructor and Description |
|---|
AbstractEventTrainer() |
| Modifier and Type | Method and Description |
|---|---|
abstract MaxentModel |
doTrain(DataIndexer indexer) |
DataIndexer |
getDataIndexer(ObjectStream<Event> events) |
abstract boolean |
isSortAndMerge() |
boolean |
isValid() |
MaxentModel |
train(ObjectStream<Event> events) |
getAlgorithm, getCutoff, getIterations, initequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic 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 boolean isValid()
isValid in class AbstractTrainerpublic abstract boolean isSortAndMerge()
public DataIndexer getDataIndexer(ObjectStream<Event> events) throws IOException
IOExceptionpublic abstract MaxentModel doTrain(DataIndexer indexer) throws IOException
IOExceptionpublic final MaxentModel train(ObjectStream<Event> events) throws IOException
train in interface EventTrainerIOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.