org.maltparser.ml
Interface LearningMethod
- All Known Implementing Classes:
- Libsvm, LibsvmMalt04
public interface LearningMethod
TRAIN
static final int TRAIN
- See Also:
- Constant Field Values
CLASSIFY
static final int CLASSIFY
- See Also:
- Constant Field Values
addInstance
void addInstance(SingleDecision decision,
FeatureVector featureVector)
throws MaltChainedException
- Throws:
MaltChainedException
finalizeSentence
void finalizeSentence(DependencyStructure dependencyGraph)
throws MaltChainedException
- Throws:
MaltChainedException
noMoreInstances
void noMoreInstances()
throws MaltChainedException
- Throws:
MaltChainedException
train
void train(FeatureVector featureVector)
throws MaltChainedException
- Throws:
MaltChainedException
moveAllInstances
void moveAllInstances(LearningMethod method,
FeatureFunction divideFeature,
ArrayList<Integer> divideFeatureIndexVector)
throws MaltChainedException
- Throws:
MaltChainedException
terminate
void terminate()
throws MaltChainedException
- Throws:
MaltChainedException
predict
boolean predict(FeatureVector features,
SingleDecision decision)
throws MaltChainedException
- Throws:
MaltChainedException
getInstanceWriter
BufferedWriter getInstanceWriter()
increaseNumberOfInstances
void increaseNumberOfInstances()
decreaseNumberOfInstances
void decreaseNumberOfInstances()
Copyright 2007-2008 Johan Hall, Jens Nilsson and Joakim Nivre.