org.maltparser.parser.history.action
Class SimpleDecisionAction
java.lang.Object
org.maltparser.parser.history.action.SimpleDecisionAction
- All Implemented Interfaces:
- ActionDecision, GuideDecision, SingleDecision
public class SimpleDecisionAction
- extends Object
- implements SingleDecision
- Since:
- 1.1
- Author:
- Johan Hall
history
protected History history
decision
protected int decision
kBestList
protected KBestList kBestList
tableContainer
protected TableContainer tableContainer
SimpleDecisionAction
public SimpleDecisionAction(History history,
TableContainer tableContainer)
throws MaltChainedException
- Throws:
MaltChainedException
clear
public void clear()
- Specified by:
clear
in interface ActionDecision
numberOfDecisions
public int numberOfDecisions()
- Specified by:
numberOfDecisions
in interface GuideDecision
addDecision
public void addDecision(int code)
throws MaltChainedException
- Specified by:
addDecision
in interface SingleDecision
- Throws:
MaltChainedException
addDecision
public void addDecision(String symbol)
throws MaltChainedException
- Specified by:
addDecision
in interface SingleDecision
- Throws:
MaltChainedException
getDecisionCode
public int getDecisionCode()
throws MaltChainedException
- Specified by:
getDecisionCode
in interface SingleDecision
- Throws:
MaltChainedException
getDecisionCode
public int getDecisionCode(String symbol)
throws MaltChainedException
- Specified by:
getDecisionCode
in interface SingleDecision
- Throws:
MaltChainedException
getDecisionSymbol
public String getDecisionSymbol()
throws MaltChainedException
- Specified by:
getDecisionSymbol
in interface SingleDecision
- Throws:
MaltChainedException
updateFromKBestList
public boolean updateFromKBestList()
throws MaltChainedException
- Specified by:
updateFromKBestList
in interface SingleDecision
- Throws:
MaltChainedException
continueWithNextDecision
public boolean continueWithNextDecision()
throws MaltChainedException
- Specified by:
continueWithNextDecision
in interface SingleDecision
- Throws:
MaltChainedException
getGuideHistory
public GuideHistory getGuideHistory()
- Specified by:
getGuideHistory
in interface GuideDecision
getActionHistory
public History getActionHistory()
setHistory
protected void setHistory(History history)
getTableContainer
public TableContainer getTableContainer()
- Specified by:
getTableContainer
in interface SingleDecision
getKBestList
public KBestList getKBestList()
throws MaltChainedException
- Specified by:
getKBestList
in interface SingleDecision
- Throws:
MaltChainedException
getRelationToNextDecision
public TableContainer.RelationToNextDecision getRelationToNextDecision()
- Specified by:
getRelationToNextDecision
in interface SingleDecision
setTableContainer
protected void setTableContainer(TableContainer tableContainer)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.