public class CovingtonConfig extends ParserConfiguration
historyNode
Constructor and Description |
---|
CovingtonConfig(boolean cr,
boolean cs) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the parser configuration
|
boolean |
equals(java.lang.Object obj) |
DependencyStructure |
getDependencyGraph()
Returns the dependency structure
|
DependencyStructure |
getDependencyStructure() |
java.util.ArrayList<DependencyNode> |
getInput() |
int |
getLeft() |
DependencyNode |
getLeftContextNode(int index) |
DependencyNode |
getLeftNode(int index) |
int |
getLeftstop() |
DependencyNode |
getLeftTarget() |
int |
getRight() |
DependencyNode |
getRightContextNode(int index) |
DependencyNode |
getRightNode(int index) |
int |
getRightstop() |
DependencyNode |
getRightTarget() |
void |
initialize()
Initialize the parser configuration
|
void |
initialize(ParserConfiguration parserConfiguration) |
boolean |
isAllowRoot() |
boolean |
isAllowShift() |
boolean |
isTerminalState()
Returns true if the parser configuration is in a terminal state, otherwise false.
|
void |
setDependencyGraph(DependencyStructure source)
Sets the dependency structure
|
void |
setLeft(int left) |
void |
setRight(int right) |
java.lang.String |
toString() |
getHistoryNode, setHistoryNode
public CovingtonConfig(boolean cr, boolean cs) throws MaltChainedException
MaltChainedException
public DependencyStructure getDependencyStructure()
public java.util.ArrayList<DependencyNode> getInput()
public boolean isTerminalState()
ParserConfiguration
isTerminalState
in class ParserConfiguration
public int getRight()
public void setRight(int right)
public int getLeft()
public void setLeft(int left)
public int getLeftstop()
public int getRightstop()
public boolean isAllowRoot()
public boolean isAllowShift()
public DependencyNode getLeftNode(int index) throws MaltChainedException
MaltChainedException
public DependencyNode getRightNode(int index) throws MaltChainedException
MaltChainedException
public DependencyNode getLeftContextNode(int index) throws MaltChainedException
MaltChainedException
public DependencyNode getRightContextNode(int index) throws MaltChainedException
MaltChainedException
public DependencyNode getLeftTarget()
public DependencyNode getRightTarget()
public void setDependencyGraph(DependencyStructure source) throws MaltChainedException
ParserConfiguration
setDependencyGraph
in class ParserConfiguration
source
- a dependency structureMaltChainedException
public DependencyStructure getDependencyGraph()
ParserConfiguration
getDependencyGraph
in class ParserConfiguration
public void initialize(ParserConfiguration parserConfiguration) throws MaltChainedException
MaltChainedException
public void initialize() throws MaltChainedException
ParserConfiguration
initialize
in class ParserConfiguration
MaltChainedException
public void clear() throws MaltChainedException
ParserConfiguration
clear
in class ParserConfiguration
MaltChainedException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.