MaltParser 1.2

org.maltparser.parser.guide.decision
Class BranchedDecisionModel

java.lang.Object
  extended by org.maltparser.parser.guide.decision.BranchedDecisionModel
All Implemented Interfaces:
DecisionModel, Model

public class BranchedDecisionModel
extends Object
implements DecisionModel

Since:
1.1
Author:
Johan Hall

Constructor Summary
BranchedDecisionModel(Guide guide, DecisionModel parentDecisionModel, String branchedDecisionSymbol)
           
BranchedDecisionModel(Guide guide, FeatureModel featureModel)
           
 
Method Summary
 void addInstance(GuideDecision decision)
           
 void finalizeSentence(DependencyStructure dependencyGraph)
           
 int getDecisionIndex()
           
 FeatureModel getFeatureModel()
           
 Guide getGuide()
           
 String getModelName()
           
 DecisionModel getParentDecisionModel()
           
 void noMoreInstances()
           
 boolean predict(GuideDecision decision)
           
 boolean predictFromKBestList(GuideDecision decision)
           
 void terminate()
           
 String toString()
           
 void update()
           
 void updateCardinality()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BranchedDecisionModel

public BranchedDecisionModel(Guide guide,
                             FeatureModel featureModel)
                      throws MaltChainedException
Throws:
MaltChainedException

BranchedDecisionModel

public BranchedDecisionModel(Guide guide,
                             DecisionModel parentDecisionModel,
                             String branchedDecisionSymbol)
                      throws MaltChainedException
Throws:
MaltChainedException
Method Detail

update

public void update()
            throws MaltChainedException
Specified by:
update 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

predictFromKBestList

public boolean predictFromKBestList(GuideDecision decision)
                             throws MaltChainedException
Specified by:
predictFromKBestList in interface DecisionModel
Throws:
MaltChainedException

getGuide

public Guide 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

getParentDecisionModel

public DecisionModel getParentDecisionModel()

toString

public String toString()
Overrides:
toString in class Object

MaltParser 1.2

Copyright 2007-2008 Johan Hall, Jens Nilsson and Joakim Nivre.