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, setHistoryNodepublic CovingtonConfig(boolean cr, boolean cs) throws MaltChainedException
MaltChainedExceptionpublic DependencyStructure getDependencyStructure()
public java.util.ArrayList<DependencyNode> getInput()
public boolean isTerminalState()
ParserConfigurationisTerminalState in class ParserConfigurationpublic 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
MaltChainedExceptionpublic DependencyNode getRightNode(int index) throws MaltChainedException
MaltChainedExceptionpublic DependencyNode getLeftContextNode(int index) throws MaltChainedException
MaltChainedExceptionpublic DependencyNode getRightContextNode(int index) throws MaltChainedException
MaltChainedExceptionpublic DependencyNode getLeftTarget()
public DependencyNode getRightTarget()
public void setDependencyGraph(DependencyStructure source) throws MaltChainedException
ParserConfigurationsetDependencyGraph in class ParserConfigurationsource - a dependency structureMaltChainedExceptionpublic DependencyStructure getDependencyGraph()
ParserConfigurationgetDependencyGraph in class ParserConfigurationpublic void initialize(ParserConfiguration parserConfiguration) throws MaltChainedException
MaltChainedExceptionpublic void initialize() throws MaltChainedException
ParserConfigurationinitialize in class ParserConfigurationMaltChainedExceptionpublic void clear() throws MaltChainedException
ParserConfigurationclear in class ParserConfigurationMaltChainedExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.