MaltParser 1.0.3

org.maltparser.parser.algorithm.covington
Class Covington

java.lang.Object
  extended by org.maltparser.parser.algorithm.covington.Covington
All Implemented Interfaces:
ParsingAlgorithm, Featurable
Direct Known Subclasses:
CovingtonNonProjective, CovingtonProjective

public abstract class Covington
extends Object
implements ParsingAlgorithm

Since:
1.0
Author:
Joakim Nivre, Johan Hall

Field Summary
protected  boolean allowShift
           
protected  int behavior
           
protected  SingleMaltConfiguration configuration
           
protected  DependencyGraph dependencyGraph
           
protected  SymbolTable deprel
           
protected  ArrayList<Node> input
           
protected  int left
           
protected static int LEFTARC
           
protected  int leftstop
           
static int MALT_0_4
           
static int MALT_1_0
           
protected static int NOARC
           
protected  ParserAction parserAction
           
protected  int right
           
protected static int RIGHTARC
           
protected  int rightstop
           
protected  Sentence sentence
           
protected static int SHIFT
           
 
Constructor Summary
Covington(SingleMaltConfiguration configuration, Sentence sentence)
           
 
Method Summary
protected  boolean checkParserAction(DependencyGraph dg)
           
 SingleMaltConfiguration getConfiguration()
           
 DependencyGraph getDependencyGraph()
           
abstract  String getName()
           
 Node getNode(String dataStructure, int index)
           
 ParserAction getParserAction()
           
protected  void initParserAction()
           
 boolean isOperation(String dataStructure)
           
 DependencyGraph oracleParse(DependencyGraph goldDependencyGraph)
           
protected  void oraclePredict(DependencyGraph gold)
           
 DependencyGraph parse()
           
protected  void transition(DependencyGraph dg)
           
protected abstract  void updateLeft(DependencyGraph dg, int trans)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MALT_0_4

public static final int MALT_0_4
See Also:
Constant Field Values

MALT_1_0

public static final int MALT_1_0
See Also:
Constant Field Values

SHIFT

protected static final int SHIFT
See Also:
Constant Field Values

NOARC

protected static final int NOARC
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

sentence

protected Sentence sentence

dependencyGraph

protected DependencyGraph dependencyGraph

parserAction

protected ParserAction parserAction

deprel

protected SymbolTable deprel

configuration

protected SingleMaltConfiguration configuration

allowShift

protected boolean allowShift

behavior

protected int behavior

input

protected ArrayList<Node> input

right

protected int right

left

protected int left

leftstop

protected int leftstop

rightstop

protected int rightstop
Constructor Detail

Covington

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

parse

public DependencyGraph parse()
                      throws MaltChainedException
Specified by:
parse in interface ParsingAlgorithm
Throws:
MaltChainedException

oracleParse

public DependencyGraph oracleParse(DependencyGraph goldDependencyGraph)
                            throws MaltChainedException
Specified by:
oracleParse in interface ParsingAlgorithm
Throws:
MaltChainedException

transition

protected void transition(DependencyGraph dg)
                   throws MaltChainedException
Throws:
MaltChainedException

checkParserAction

protected boolean checkParserAction(DependencyGraph dg)
                             throws MaltChainedException
Throws:
MaltChainedException

oraclePredict

protected void oraclePredict(DependencyGraph gold)
                      throws MaltChainedException
Throws:
MaltChainedException

isOperation

public boolean isOperation(String dataStructure)
Specified by:
isOperation in interface Featurable

getNode

public Node getNode(String dataStructure,
                    int index)
             throws MaltChainedException
Specified by:
getNode in interface Featurable
Throws:
MaltChainedException

initParserAction

protected void initParserAction()

getParserAction

public ParserAction getParserAction()
Specified by:
getParserAction in interface ParsingAlgorithm

getConfiguration

public SingleMaltConfiguration getConfiguration()
Specified by:
getConfiguration in interface ParsingAlgorithm

getDependencyGraph

public DependencyGraph getDependencyGraph()
Specified by:
getDependencyGraph in interface ParsingAlgorithm

getName

public abstract String getName()
Specified by:
getName in interface ParsingAlgorithm

updateLeft

protected abstract void updateLeft(DependencyGraph dg,
                                   int trans)

MaltParser 1.0.3

Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.