MaltParser 1.2

org.maltparser.parser.algorithm.nivre.malt04
Class NivreStandardMalt04

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

public class NivreStandardMalt04
extends NivreMalt04

Since:
1.0
Author:
Joakim Nivre, Johan Hall

Field Summary
protected static int LEFTARC
           
protected static int REDUCE
           
protected static int RIGHTARC
           
 
Fields inherited from class org.maltparser.parser.algorithm.nivre.malt04.NivreMalt04
deprel, inPostProcessingMode
 
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
NivreStandardMalt04(SingleMalt configuration)
           
 
Method Summary
protected  void addAvailableTransitionToTable(TransitionTable ttable)
           
protected  boolean checkParserAction(DependencyStructure parseDependencyGraph)
           
 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.malt04.NivreMalt04
oracleParse, parse
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REDUCE

protected static final int REDUCE
See Also:
Constant Field Values

RIGHTARC

protected static final int RIGHTARC
See Also:
Constant Field Values

LEFTARC

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

NivreStandardMalt04

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

transition

protected void transition(DependencyStructure parseDependencyGraph)
                   throws MaltChainedException
Specified by:
transition in class NivreMalt04
Throws:
MaltChainedException

checkParserAction

protected boolean checkParserAction(DependencyStructure parseDependencyGraph)
                             throws MaltChainedException
Specified by:
checkParserAction in class NivreMalt04
Throws:
MaltChainedException

oraclePredict

protected void oraclePredict(DependencyStructure gold,
                             DependencyStructure parseDependencyGraph)
                      throws MaltChainedException
Specified by:
oraclePredict in class NivreMalt04
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

getName

public String getName()
Specified by:
getName in interface ParsingAlgorithm
Specified by:
getName in class NivreMalt04

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

MaltParser 1.2

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