org.maltparser.parser.guide.decision
Class SeqDecisionModel
java.lang.Object
org.maltparser.parser.guide.decision.SeqDecisionModel
- All Implemented Interfaces:
- DecisionModel, Model
public class SeqDecisionModel
- extends Object
- implements DecisionModel
- Since:
- 1.1
- Author:
- Johan Hall
SeqDecisionModel
public SeqDecisionModel(ClassifierGuide guide,
FeatureModel featureModel)
throws MaltChainedException
- Throws:
MaltChainedException
SeqDecisionModel
public SeqDecisionModel(ClassifierGuide guide,
DecisionModel prevDecisionModel,
String branchedDecisionSymbol)
throws MaltChainedException
- Throws:
MaltChainedException
updateFeatureModel
public void updateFeatureModel()
throws MaltChainedException
- Specified by:
updateFeatureModel
in interface DecisionModel
- Throws:
MaltChainedException
updateCardinality
public void updateCardinality()
throws MaltChainedException
- Specified by:
updateCardinality
in interface DecisionModel
- Throws:
MaltChainedException
finalizeSentence
public void finalizeSentence(DependencyStructure dependencyGraph)
throws MaltChainedException
- Specified by:
finalizeSentence
in interface Model
- Throws:
MaltChainedException
noMoreInstances
public void noMoreInstances()
throws MaltChainedException
- Specified by:
noMoreInstances
in interface Model
- Throws:
MaltChainedException
terminate
public void terminate()
throws MaltChainedException
- Specified by:
terminate
in interface Model
- Throws:
MaltChainedException
addInstance
public void addInstance(GuideDecision decision)
throws MaltChainedException
- Specified by:
addInstance
in interface DecisionModel
- Throws:
MaltChainedException
predict
public boolean predict(GuideDecision decision)
throws MaltChainedException
- Specified by:
predict
in interface DecisionModel
- Throws:
MaltChainedException
predictExtract
public FeatureVector predictExtract(GuideDecision decision)
throws MaltChainedException
- Specified by:
predictExtract
in interface DecisionModel
- Throws:
MaltChainedException
extract
public FeatureVector extract()
throws MaltChainedException
- Specified by:
extract
in interface DecisionModel
- Throws:
MaltChainedException
predictFromKBestList
public boolean predictFromKBestList(GuideDecision decision)
throws MaltChainedException
- Specified by:
predictFromKBestList
in interface DecisionModel
- Throws:
MaltChainedException
getGuide
public ClassifierGuide getGuide()
- Specified by:
getGuide
in interface Model
getModelName
public String getModelName()
- Specified by:
getModelName
in interface Model
getFeatureModel
public FeatureModel getFeatureModel()
- Specified by:
getFeatureModel
in interface DecisionModel
getDecisionIndex
public int getDecisionIndex()
- Specified by:
getDecisionIndex
in interface DecisionModel
getPrevDecisionModel
public DecisionModel getPrevDecisionModel()
getNextDecisionModel
public DecisionModel getNextDecisionModel()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.