MaltParser 1.5.3

org.maltparser.parser.history.action
Class SimpleDecisionAction

java.lang.Object
  extended by 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

Constructor Summary
SimpleDecisionAction(History history, TableContainer tableContainer)
           
 
Method Summary
 void addDecision(int code)
           
 void addDecision(String symbol)
           
 void clear()
           
 boolean continueWithNextDecision()
           
 History getActionHistory()
           
 int getDecisionCode()
           
 int getDecisionCode(String symbol)
           
 String getDecisionSymbol()
           
 GuideHistory getGuideHistory()
           
 KBestList getKBestList()
           
 TableContainer.RelationToNextDecision getRelationToNextDecision()
           
 TableContainer getTableContainer()
           
 int numberOfDecisions()
           
 String toString()
           
 boolean updateFromKBestList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleDecisionAction

public SimpleDecisionAction(History history,
                            TableContainer tableContainer)
                     throws MaltChainedException
Throws:
MaltChainedException
Method Detail

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()

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

toString

public String toString()
Overrides:
toString in class Object

MaltParser 1.5.3

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