org.maltparser.parser.history
Class History
java.lang.Object
org.maltparser.parser.history.History
- All Implemented Interfaces:
- GuideHistory, GuideUserHistory
public class History
- extends Object
- implements GuideUserHistory, GuideHistory
- Since:
- 1.1
- Author:
- Johan Hall
actionPool
protected final ObjectPoolList<ComplexDecisionAction> actionPool
kBestListClass
protected Class<? extends KBestList> kBestListClass
kBestSize
protected int kBestSize
separator
protected String separator
decisionSettings
protected String decisionSettings
decisionTables
protected ArrayList<TableContainer> decisionTables
actionTables
protected ArrayList<TableContainer> actionTables
tableHandlers
protected HashMap<String,TableHandler> tableHandlers
History
public History(String decisionSettings,
String separator,
HashMap<String,TableHandler> tableHandlers)
throws MaltChainedException
- Throws:
MaltChainedException
getEmptyGuideUserAction
public GuideUserAction getEmptyGuideUserAction()
throws MaltChainedException
- Specified by:
getEmptyGuideUserAction
in interface GuideUserHistory
- Throws:
MaltChainedException
getActionContainers
public ArrayList<ActionContainer> getActionContainers()
- Specified by:
getActionContainers
in interface GuideUserHistory
getActionContainerArray
public ActionContainer[] getActionContainerArray()
- Specified by:
getActionContainerArray
in interface GuideUserHistory
clear
public void clear()
throws MaltChainedException
- Specified by:
clear
in interface GuideUserHistory
- Throws:
MaltChainedException
getEmptyGuideDecision
public GuideDecision getEmptyGuideDecision()
throws MaltChainedException
- Specified by:
getEmptyGuideDecision
in interface GuideHistory
- Throws:
MaltChainedException
getNumberOfDecisions
public int getNumberOfDecisions()
- Specified by:
getNumberOfDecisions
in interface GuideHistory
- Specified by:
getNumberOfDecisions
in interface GuideUserHistory
getTableHandler
public TableHandler getTableHandler(String name)
- Specified by:
getTableHandler
in interface GuideHistory
getKBestListClass
public Class<? extends KBestList> getKBestListClass()
- Specified by:
getKBestListClass
in interface GuideHistory
setKBestListClass
public void setKBestListClass(Class<?> kBestListClass)
throws MaltChainedException
- Specified by:
setKBestListClass
in interface GuideHistory
- Throws:
MaltChainedException
getKBestSize
public int getKBestSize()
- Specified by:
getKBestSize
in interface GuideHistory
setKBestSize
public void setKBestSize(int kBestSize)
- Specified by:
setKBestSize
in interface GuideHistory
getNumberOfActions
public int getNumberOfActions()
getDecisionTables
public ArrayList<TableContainer> getDecisionTables()
getActionTables
public ArrayList<TableContainer> getActionTables()
getTableHandlers
public HashMap<String,TableHandler> getTableHandlers()
getSeparator
public String getSeparator()
setSeparator
public void setSeparator(String separator)
throws MaltChainedException
- Specified by:
setSeparator
in interface GuideHistory
- Throws:
MaltChainedException
getDecisionSettings
public String getDecisionSettings()
setDecisionSettings
public void setDecisionSettings(String decisionSettings)
setTableHandlers
protected void setTableHandlers(HashMap<String,TableHandler> tableHandlers)
getEmptyActionObject
protected ActionDecision getEmptyActionObject()
throws MaltChainedException
- Throws:
MaltChainedException
initDecisionSettings
protected void initDecisionSettings(String decisionSettings)
throws MaltChainedException
- Throws:
MaltChainedException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.