org.maltparser.parser.guide.decision
Class BranchedDecisionModel
java.lang.Object
   org.maltparser.parser.guide.decision.BranchedDecisionModel
org.maltparser.parser.guide.decision.BranchedDecisionModel
- All Implemented Interfaces: 
- DecisionModel, Model
- public class BranchedDecisionModel 
- extends Object- implements DecisionModel
- Since:
- 1.1
- Author:
- Johan Hall
 
 
 
BranchedDecisionModel
public BranchedDecisionModel(ClassifierGuide guide,
                             FeatureModel featureModel)
                      throws MaltChainedException
- Throws:
- MaltChainedException
BranchedDecisionModel
public BranchedDecisionModel(ClassifierGuide guide,
                             DecisionModel parentDecisionModel,
                             String branchedDecisionSymbol)
                      throws MaltChainedException
- Throws:
- MaltChainedException
updateFeatureModel
public void updateFeatureModel()
                        throws MaltChainedException
- 
- Specified by:
- updateFeatureModelin interface- DecisionModel
 
- 
- Throws:
- MaltChainedException
 
updateCardinality
public void updateCardinality()
                       throws MaltChainedException
- 
- Specified by:
- updateCardinalityin interface- DecisionModel
 
- 
- Throws:
- MaltChainedException
 
finalizeSentence
public void finalizeSentence(DependencyStructure dependencyGraph)
                      throws MaltChainedException
- 
- Specified by:
- finalizeSentencein interface- Model
 
- 
- Throws:
- MaltChainedException
 
noMoreInstances
public void noMoreInstances()
                     throws MaltChainedException
- 
- Specified by:
- noMoreInstancesin interface- Model
 
- 
- Throws:
- MaltChainedException
 
terminate
public void terminate()
               throws MaltChainedException
- 
- Specified by:
- terminatein interface- Model
 
- 
- Throws:
- MaltChainedException
 
addInstance
public void addInstance(GuideDecision decision)
                 throws MaltChainedException
- 
- Specified by:
- addInstancein interface- DecisionModel
 
- 
- Throws:
- MaltChainedException
 
predict
public boolean predict(GuideDecision decision)
                throws MaltChainedException
- 
- Specified by:
- predictin interface- DecisionModel
 
- 
- Throws:
- MaltChainedException
 
predictExtract
public FeatureVector predictExtract(GuideDecision decision)
                             throws MaltChainedException
- 
- Specified by:
- predictExtractin interface- DecisionModel
 
- 
- Throws:
- MaltChainedException
 
extract
public FeatureVector extract()
                      throws MaltChainedException
- 
- Specified by:
- extractin interface- DecisionModel
 
- 
- Throws:
- MaltChainedException
 
predictFromKBestList
public boolean predictFromKBestList(GuideDecision decision)
                             throws MaltChainedException
- 
- Specified by:
- predictFromKBestListin interface- DecisionModel
 
- 
- Throws:
- MaltChainedException
 
getGuide
public ClassifierGuide getGuide()
- 
- Specified by:
- getGuidein interface- Model
 
- 
 
getModelName
public String getModelName()
- 
- Specified by:
- getModelNamein interface- Model
 
- 
 
getFeatureModel
public FeatureModel getFeatureModel()
- 
- Specified by:
- getFeatureModelin interface- DecisionModel
 
- 
 
getDecisionIndex
public int getDecisionIndex()
- 
- Specified by:
- getDecisionIndexin interface- DecisionModel
 
- 
 
getParentDecisionModel
public DecisionModel getParentDecisionModel()
- 
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.