public class BranchedDecisionModel extends java.lang.Object implements DecisionModel
Constructor and Description |
---|
BranchedDecisionModel(ClassifierGuide _guide) |
BranchedDecisionModel(ClassifierGuide _guide,
DecisionModel _parentDecisionModel,
java.lang.String _branchedDecisionSymbol) |
Modifier and Type | Method and Description |
---|---|
void |
addInstance(FeatureModel featureModel,
GuideDecision decision) |
FeatureVector |
extract(FeatureModel featureModel) |
void |
finalizeSentence(DependencyStructure dependencyGraph) |
int |
getDecisionIndex() |
ClassifierGuide |
getGuide() |
java.lang.String |
getModelName() |
DecisionModel |
getParentDecisionModel() |
void |
noMoreInstances(FeatureModel featureModel) |
boolean |
predict(FeatureModel featureModel,
GuideDecision decision) |
FeatureVector |
predictExtract(FeatureModel featureModel,
GuideDecision decision) |
boolean |
predictFromKBestList(FeatureModel featureModel,
GuideDecision decision) |
void |
terminate() |
java.lang.String |
toString() |
public BranchedDecisionModel(ClassifierGuide _guide) throws MaltChainedException
MaltChainedException
public BranchedDecisionModel(ClassifierGuide _guide, DecisionModel _parentDecisionModel, java.lang.String _branchedDecisionSymbol) throws MaltChainedException
MaltChainedException
public void finalizeSentence(DependencyStructure dependencyGraph) throws MaltChainedException
finalizeSentence
in interface Model
MaltChainedException
public void noMoreInstances(FeatureModel featureModel) throws MaltChainedException
noMoreInstances
in interface Model
MaltChainedException
public void terminate() throws MaltChainedException
terminate
in interface Model
MaltChainedException
public void addInstance(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
addInstance
in interface DecisionModel
MaltChainedException
public boolean predict(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
predict
in interface DecisionModel
MaltChainedException
public FeatureVector predictExtract(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
predictExtract
in interface DecisionModel
MaltChainedException
public FeatureVector extract(FeatureModel featureModel) throws MaltChainedException
extract
in interface DecisionModel
MaltChainedException
public boolean predictFromKBestList(FeatureModel featureModel, GuideDecision decision) throws MaltChainedException
predictFromKBestList
in interface DecisionModel
MaltChainedException
public ClassifierGuide getGuide()
public java.lang.String getModelName()
getModelName
in interface Model
public int getDecisionIndex()
getDecisionIndex
in interface DecisionModel
public DecisionModel getParentDecisionModel()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.