org.maltparser.parser.history.action
Class SimpleDecisionAction
java.lang.Object
   org.maltparser.parser.history.action.SimpleDecisionAction
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:
- clearin interface- ActionDecision
 
- 
 
numberOfDecisions
public int numberOfDecisions()
- 
- Specified by:
- numberOfDecisionsin interface- GuideDecision
 
- 
 
addDecision
public void addDecision(int code)
                 throws MaltChainedException
- 
- Specified by:
- addDecisionin interface- SingleDecision
 
- 
- Throws:
- MaltChainedException
 
addDecision
public void addDecision(String symbol)
                 throws MaltChainedException
- 
- Specified by:
- addDecisionin interface- SingleDecision
 
- 
- Throws:
- MaltChainedException
 
getDecisionCode
public int getDecisionCode()
                    throws MaltChainedException
- 
- Specified by:
- getDecisionCodein interface- SingleDecision
 
- 
- Throws:
- MaltChainedException
 
getDecisionCode
public int getDecisionCode(String symbol)
                    throws MaltChainedException
- 
- Specified by:
- getDecisionCodein interface- SingleDecision
 
- 
- Throws:
- MaltChainedException
 
getDecisionSymbol
public String getDecisionSymbol()
                         throws MaltChainedException
- 
- Specified by:
- getDecisionSymbolin interface- SingleDecision
 
- 
- Throws:
- MaltChainedException
 
updateFromKBestList
public boolean updateFromKBestList()
                            throws MaltChainedException
- 
- Specified by:
- updateFromKBestListin interface- SingleDecision
 
- 
- Throws:
- MaltChainedException
 
continueWithNextDecision
public boolean continueWithNextDecision()
                                 throws MaltChainedException
- 
- Specified by:
- continueWithNextDecisionin interface- SingleDecision
 
- 
- Throws:
- MaltChainedException
 
getGuideHistory
public GuideHistory getGuideHistory()
- 
- Specified by:
- getGuideHistoryin interface- GuideDecision
 
- 
 
getActionHistory
public History getActionHistory()
- 
 
- 
 
setHistory
protected void setHistory(History history)
- 
 
- 
 
getTableContainer
public TableContainer getTableContainer()
- 
- Specified by:
- getTableContainerin interface- SingleDecision
 
- 
 
getKBestList
public KBestList getKBestList()
                       throws MaltChainedException
- 
- Specified by:
- getKBestListin interface- SingleDecision
 
- 
- Throws:
- MaltChainedException
 
getRelationToNextDecision
public TableContainer.RelationToNextDecision getRelationToNextDecision()
- 
- Specified by:
- getRelationToNextDecisionin interface- SingleDecision
 
- 
 
setTableContainer
protected void setTableContainer(TableContainer tableContainer)
- 
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.