MaltParser 1.2

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

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

public abstract class NivreMalt04
extends Nivre

Since:
1.0
Author:
Joakim Nivre, Johan Hall

Field Summary
protected  SymbolTable deprel
           
protected  boolean 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
NivreMalt04(SingleMalt configuration)
           
 
Method Summary
protected abstract  boolean checkParserAction(DependencyStructure dg)
           
abstract  String getName()
           
 DependencyStructure oracleParse(DependencyStructure goldDependencyGraph, DependencyStructure parseDependencyGraph)
           
protected abstract  void oraclePredict(DependencyStructure gold, DependencyStructure parseDependencyGraph)
           
 DependencyStructure parse(DependencyStructure parseDependencyGraph)
           
protected abstract  void transition(DependencyStructure dg)
           
 
Methods inherited from class org.maltparser.parser.algorithm.nivre.Nivre
addAvailableTransitionToTable, addEdgeLabels, addTransition, clear, getArcLabels, getConfiguration, getHistory, getInputNode, getLeftTarget, getNode, getRightTarget, getRootHandling, getStackNode, getTransition, initHistory, initPostProcessing, initRootHandling, initWithDefaultTransitions, isActionContainersLabeled, updateActionContainers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deprel

protected SymbolTable deprel

inPostProcessingMode

protected boolean inPostProcessingMode
Constructor Detail

NivreMalt04

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

parse

public DependencyStructure parse(DependencyStructure parseDependencyGraph)
                          throws MaltChainedException
Specified by:
parse in interface ParsingAlgorithm
Overrides:
parse in class Nivre
Throws:
MaltChainedException

oracleParse

public DependencyStructure oracleParse(DependencyStructure goldDependencyGraph,
                                       DependencyStructure parseDependencyGraph)
                                throws MaltChainedException
Specified by:
oracleParse in interface ParsingAlgorithm
Overrides:
oracleParse in class Nivre
Throws:
MaltChainedException

transition

protected abstract void transition(DependencyStructure dg)
                            throws MaltChainedException
Specified by:
transition in class Nivre
Throws:
MaltChainedException

checkParserAction

protected abstract boolean checkParserAction(DependencyStructure dg)
                                      throws MaltChainedException
Specified by:
checkParserAction in class Nivre
Throws:
MaltChainedException

oraclePredict

protected abstract void oraclePredict(DependencyStructure gold,
                                      DependencyStructure parseDependencyGraph)
                               throws MaltChainedException
Specified by:
oraclePredict in class Nivre
Throws:
MaltChainedException

getName

public abstract 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.