MaltParser 1.0.1

org.maltparser.ml
Interface LearningMethod

All Known Implementing Classes:
Libsvm, LibsvmMalt04

public interface LearningMethod


Field Summary
static int CLASSIFY
           
static int TRAIN
           
 
Method Summary
 void addInstance(ClassTable classCodeTable, FeatureVector features)
           
 void decreaseNumberOfInstances()
           
 void finalize()
           
 void finalizeSentence(Sentence sentence, DependencyGraph dependencyGraph)
           
 BufferedWriter getInstanceWriter()
           
 void increaseNumberOfInstances()
           
 void moveAllInstances(LearningMethod method, Feature divideFeature, ArrayList<Integer> divideFeatureIndexVector)
           
 void noMoreInstances()
           
 boolean predict(FeatureVector features, KBestList kBestList)
           
 void train(FeatureVector features)
           
 

Field Detail

TRAIN

static final int TRAIN
See Also:
Constant Field Values

CLASSIFY

static final int CLASSIFY
See Also:
Constant Field Values
Method Detail

addInstance

void addInstance(ClassTable classCodeTable,
                 FeatureVector features)
                 throws MaltChainedException
Throws:
MaltChainedException

finalizeSentence

void finalizeSentence(Sentence sentence,
                      DependencyGraph dependencyGraph)
                      throws MaltChainedException
Throws:
MaltChainedException

noMoreInstances

void noMoreInstances()
                     throws MaltChainedException
Throws:
MaltChainedException

train

void train(FeatureVector features)
           throws MaltChainedException
Throws:
MaltChainedException

moveAllInstances

void moveAllInstances(LearningMethod method,
                      Feature divideFeature,
                      ArrayList<Integer> divideFeatureIndexVector)
                      throws MaltChainedException
Throws:
MaltChainedException

finalize

void finalize()
              throws MaltChainedException
Throws:
MaltChainedException

predict

boolean predict(FeatureVector features,
                KBestList kBestList)
                throws MaltChainedException
Throws:
MaltChainedException

getInstanceWriter

BufferedWriter getInstanceWriter()

increaseNumberOfInstances

void increaseNumberOfInstances()

decreaseNumberOfInstances

void decreaseNumberOfInstances()

MaltParser 1.0.1

Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.