MaltParser 1.0.2

org.maltparser.parser.algorithm.nivre
Class NivreEager

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

public class NivreEager
extends Nivre

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.Nivre
configuration, dependencyGraph, deprel, input, NORMAL, parserAction, postProcessing, RELAXED, rootHandling, sentence, SHIFT, stack, STRICT
 
Constructor Summary
NivreEager(SingleMaltConfiguration configuration, Sentence sentence)
           
 
Method Summary
protected  boolean checkParserAction(DependencyGraph dg)
           
 String getName()
           
protected  void initParserAction()
           
protected  void oraclePredict(DependencyGraph gold)
           
protected  void transition(DependencyGraph dg)
           
 
Methods inherited from class org.maltparser.parser.algorithm.nivre.Nivre
getConfiguration, getDependencyGraph, getNode, getParserAction, getRootHandling, isOperation, oracleParse, parse
 
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

NivreEager

public NivreEager(SingleMaltConfiguration configuration,
                  Sentence sentence)
           throws MaltChainedException
Throws:
MaltChainedException
Method Detail

transition

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

checkParserAction

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

oraclePredict

protected void oraclePredict(DependencyGraph gold)
                      throws MaltChainedException
Specified by:
oraclePredict in class Nivre
Throws:
MaltChainedException

getName

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

initParserAction

protected void initParserAction()
Specified by:
initParserAction in class Nivre

MaltParser 1.0.2

Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.