org.maltparser.parser.history.action
Class ComplexDecisionAction
java.lang.Object
org.maltparser.parser.history.action.ComplexDecisionAction
- All Implemented Interfaces:
- ActionDecision, GuideDecision, GuideUserAction, MultipleDecision
public class ComplexDecisionAction
- extends Object
- implements GuideUserAction, MultipleDecision
- Since:
- 1.1
- Author:
- Johan Hall
history
protected History history
decisions
protected ArrayList<SimpleDecisionAction> decisions
ComplexDecisionAction
public ComplexDecisionAction(History history)
throws MaltChainedException
- Throws:
MaltChainedException
ComplexDecisionAction
public ComplexDecisionAction(GuideHistory history)
throws MaltChainedException
- Throws:
MaltChainedException
addAction
public void addAction(ArrayList<ActionContainer> actionContainers)
throws MaltChainedException
- Specified by:
addAction
in interface GuideUserAction
- Throws:
MaltChainedException
getAction
public void getAction(ArrayList<ActionContainer> actionContainers)
throws MaltChainedException
- Specified by:
getAction
in interface GuideUserAction
- Throws:
MaltChainedException
addAction
public void addAction(ActionContainer[] actionContainers)
throws MaltChainedException
- Specified by:
addAction
in interface GuideUserAction
- Throws:
MaltChainedException
getAction
public void getAction(ActionContainer[] actionContainers)
throws MaltChainedException
- Specified by:
getAction
in interface GuideUserAction
- Throws:
MaltChainedException
getKBestLists
public void getKBestLists(ArrayList<ScoredKBestList> kbestListContainers)
throws MaltChainedException
- Specified by:
getKBestLists
in interface GuideUserAction
- Throws:
MaltChainedException
getKBestLists
public void getKBestLists(ScoredKBestList[] kbestListContainers)
throws MaltChainedException
- Specified by:
getKBestLists
in interface GuideUserAction
- Throws:
MaltChainedException
numberOfActions
public int numberOfActions()
- Specified by:
numberOfActions
in interface GuideUserAction
getGuideUserHistory
public GuideUserHistory getGuideUserHistory()
- Specified by:
getGuideUserHistory
in interface GuideUserAction
clear
public void clear()
- Specified by:
clear
in interface ActionDecision
getSingleDecision
public SingleDecision getSingleDecision(int decisionIndex)
throws MaltChainedException
- Specified by:
getSingleDecision
in interface MultipleDecision
- Throws:
MaltChainedException
numberOfDecisions
public int numberOfDecisions()
- Specified by:
numberOfDecisions
in interface GuideDecision
getGuideHistory
public GuideHistory getGuideHistory()
- Specified by:
getGuideHistory
in interface GuideDecision
initDecisions
protected void initDecisions()
throws MaltChainedException
- Throws:
MaltChainedException
setHistory
protected void setHistory(History history)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.