MaltParser 1.2

org.maltparser.parser.algorithm.nivre
Class NivreStandard

java.lang.Object
  extended by org.maltparser.parser.algorithm.nivre.Nivre
      extended by org.maltparser.parser.algorithm.nivre.NivreStandard
All Implemented Interfaces:
ParsingAlgorithm

public class NivreStandard
extends Nivre

Since:
1.0
Author:
Joakim Nivre, Johan Hall

Field Summary
protected static int LEFTARC
           
protected static int RIGHTARC
           
 
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
 
Constructor Summary
NivreStandard(SingleMalt configuration)
           
 
Method Summary
protected  void addAvailableTransitionToTable(TransitionTable ttable)
           
protected  boolean checkParserAction(DependencyStructure dg)
           
 String getName()
           
protected  int getTransition()
           
protected  void initWithDefaultTransitions()
           
protected  void oraclePredict(DependencyStructure gold, DependencyStructure parseDependencyGraph)
           
protected  void transition(DependencyStructure parseDependencyGraph)
           
protected  void updateActionContainers(int transition, LabelSet arcLabels)
           
 
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
 

Field Detail

RIGHTARC

protected static final int RIGHTARC
See Also:
Constant Field Values

LEFTARC

protected static final int LEFTARC
See Also:
Constant Field Values
Constructor Detail

NivreStandard

public NivreStandard(SingleMalt configuration)
              throws MaltChainedException
Throws:
MaltChainedException
Method Detail

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

MaltParser 1.2

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