org.maltparser.parser
Class TransitionSystem
java.lang.Object
org.maltparser.parser.TransitionSystem
- Direct Known Subclasses:
- ArcEager, ArcStandard, NonProjective, NonProjective, Planar, Projective, Projective, TwoPlanar
public abstract class TransitionSystem
- extends Object
- Author:
- Johan Hall
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tableHandlers
protected HashMap<String,TableHandler> tableHandlers
transitionTableHandler
protected TransitionTableHandler transitionTableHandler
actionContainers
protected ActionContainer[] actionContainers
transActionContainer
protected ActionContainer transActionContainer
arcLabelActionContainers
protected ActionContainer[] arcLabelActionContainers
propagationManager
protected PropagationManager propagationManager
TransitionSystem
public TransitionSystem()
throws MaltChainedException
- Throws:
MaltChainedException
apply
public abstract void apply(GuideUserAction currentAction,
ParserConfiguration config)
throws MaltChainedException
- Throws:
MaltChainedException
permissible
public abstract boolean permissible(GuideUserAction currentAction,
ParserConfiguration config)
throws MaltChainedException
- Throws:
MaltChainedException
getDeterministicAction
public abstract GuideUserAction getDeterministicAction(GuideUserHistory history,
ParserConfiguration config)
throws MaltChainedException
- Throws:
MaltChainedException
addAvailableTransitionToTable
protected abstract void addAvailableTransitionToTable(TransitionTable ttable)
throws MaltChainedException
- Throws:
MaltChainedException
initWithDefaultTransitions
protected abstract void initWithDefaultTransitions(GuideUserHistory history)
throws MaltChainedException
- Throws:
MaltChainedException
getName
public abstract String getName()
defaultAction
public abstract GuideUserAction defaultAction(GuideUserHistory history,
ParserConfiguration configuration)
throws MaltChainedException
- Throws:
MaltChainedException
updateActionContainers
protected GuideUserAction updateActionContainers(GuideUserHistory history,
int transition,
LabelSet arcLabels)
throws MaltChainedException
- Throws:
MaltChainedException
isActionContainersLabeled
protected boolean isActionContainersLabeled()
addEdgeLabels
protected void addEdgeLabels(Edge e)
throws MaltChainedException
- Throws:
MaltChainedException
initTransitionSystem
public void initTransitionSystem(GuideUserHistory history)
throws MaltChainedException
- Throws:
MaltChainedException
initTableHandlers
public void initTableHandlers(String decisionSettings,
SymbolTableHandler symbolTableHandler)
throws MaltChainedException
- Throws:
MaltChainedException
copyAction
public void copyAction(GuideUserAction source,
GuideUserAction target)
throws MaltChainedException
- Throws:
MaltChainedException
getTableHandlers
public HashMap<String,TableHandler> getTableHandlers()
getTransitionTableHandler
public TransitionTableHandler getTransitionTableHandler()
getPropagationManager
public PropagationManager getPropagationManager()
setPropagationManager
public void setPropagationManager(PropagationManager propagationManager)
getActionString
public String getActionString(GuideUserAction action)
throws MaltChainedException
- Throws:
MaltChainedException
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.