org.maltparser.parser.algorithm.covington
Class Covington
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Covington
public Covington(SingleMaltConfiguration configuration,
Sentence sentence)
throws MaltChainedException
- Throws:
MaltChainedException
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)
Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.