org.maltparser.parser.algorithm.nivre
Class NivreStandard
java.lang.Object
org.maltparser.parser.algorithm.nivre.Nivre
org.maltparser.parser.algorithm.nivre.NivreStandard
- All Implemented Interfaces:
- ParsingAlgorithm
public class NivreStandard
- extends Nivre
- Since:
- 1.0
- Author:
- Joakim Nivre, Johan Hall
Fields inherited from class org.maltparser.parser.algorithm.nivre.Nivre |
actionContainers, arcLabelActionContainers, complexTransition, configuration, currentAction, history, input, NORMAL, postProcessing, pushActionContainer, pushTable, RELAXED, rootHandling, SHIFT, stack, STRICT, tableHandlers, transActionContainer, transitionTableHandler |
Methods inherited from class org.maltparser.parser.algorithm.nivre.Nivre |
addEdgeLabels, addTransition, clear, getArcLabels, getConfiguration, getHistory, getInputNode, getLeftTarget, getNode, getRightTarget, getRootHandling, getStackNode, initHistory, initPostProcessing, initRootHandling, isActionContainersLabeled, oracleParse, parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RIGHTARC
protected static final int RIGHTARC
- See Also:
- Constant Field Values
LEFTARC
protected static final int LEFTARC
- See Also:
- Constant Field Values
NivreStandard
public NivreStandard(SingleMalt configuration)
throws MaltChainedException
- Throws:
MaltChainedException
transition
protected void transition(DependencyStructure parseDependencyGraph)
throws MaltChainedException
- Specified by:
transition
in class Nivre
- Throws:
MaltChainedException
checkParserAction
protected boolean checkParserAction(DependencyStructure dg)
throws MaltChainedException
- Specified by:
checkParserAction
in class Nivre
- Throws:
MaltChainedException
oraclePredict
protected void oraclePredict(DependencyStructure gold,
DependencyStructure parseDependencyGraph)
throws MaltChainedException
- Specified by:
oraclePredict
in class Nivre
- Throws:
MaltChainedException
getTransition
protected int getTransition()
- Specified by:
getTransition
in class Nivre
updateActionContainers
protected void updateActionContainers(int transition,
LabelSet arcLabels)
throws MaltChainedException
- Specified by:
updateActionContainers
in class Nivre
- Throws:
MaltChainedException
addAvailableTransitionToTable
protected void addAvailableTransitionToTable(TransitionTable ttable)
throws MaltChainedException
- Specified by:
addAvailableTransitionToTable
in class Nivre
- Throws:
MaltChainedException
initWithDefaultTransitions
protected void initWithDefaultTransitions()
throws MaltChainedException
- Specified by:
initWithDefaultTransitions
in class Nivre
- Throws:
MaltChainedException
getName
public String getName()
- Specified by:
getName
in interface ParsingAlgorithm
- Specified by:
getName
in class Nivre
Copyright 2007-2008 Johan Hall, Jens Nilsson and Joakim Nivre.