public class TwoPlanarConfig extends ParserConfiguration
| Modifier and Type | Field and Description |
|---|---|
boolean |
acyclicity |
static boolean |
FIRST_STACK |
boolean |
noCoveredRoots |
static int |
NORMAL |
boolean |
reduceAfterSwitch |
static int |
RELAXED |
static boolean |
SECOND_STACK |
boolean |
SINGLE_HEAD |
historyNode| Constructor and Description |
|---|
TwoPlanarConfig(java.lang.String noCoveredRoots,
java.lang.String acyclicity,
java.lang.String reduceAfterSwitch,
java.lang.String rootHandling) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the parser configuration
|
boolean |
equals(java.lang.Object obj) |
java.util.Stack<DependencyNode> |
getActiveStack() |
DependencyNode |
getActiveStackNode(int index) |
DependencyStructure |
getDependencyGraph()
Returns the dependency structure
|
DependencyStructure |
getDependencyStructure() |
java.util.Stack<DependencyNode> |
getInactiveStack() |
DependencyNode |
getInactiveStackNode(int index) |
java.util.Stack<DependencyNode> |
getInput() |
DependencyNode |
getInputNode(int index) |
int |
getLastAction() |
int |
getRootHandling() |
boolean |
getStackActivityState() |
void |
initialize()
Initialize the parser configuration
|
void |
initialize(ParserConfiguration parserConfiguration) |
boolean |
isTerminalState()
Returns true if the parser configuration is in a terminal state, otherwise false.
|
boolean |
reduceAfterSwitch() |
boolean |
requiresAcyclicity() |
boolean |
requiresNoCoveredRoots() |
boolean |
requiresSingleHead() |
void |
setAcyclicity(boolean value) |
void |
setDependencyGraph(DependencyStructure source)
Sets the dependency structure
|
void |
setLastAction(int action) |
void |
setNoCoveredRoots(boolean value) |
void |
setReduceAfterSwitch(boolean ras) |
protected void |
setRootHandling(java.lang.String rh) |
void |
switchStacks() |
java.lang.String |
toString() |
getHistoryNode, setHistoryNodepublic static final int NORMAL
public static final int RELAXED
public final boolean SINGLE_HEAD
public boolean noCoveredRoots
public boolean acyclicity
public boolean reduceAfterSwitch
public static final boolean FIRST_STACK
public static final boolean SECOND_STACK
public TwoPlanarConfig(java.lang.String noCoveredRoots, java.lang.String acyclicity, java.lang.String reduceAfterSwitch, java.lang.String rootHandling) throws MaltChainedException
MaltChainedExceptionpublic void switchStacks()
public boolean reduceAfterSwitch()
public void setReduceAfterSwitch(boolean ras)
public void setLastAction(int action)
public int getLastAction()
public boolean getStackActivityState()
public java.util.Stack<DependencyNode> getActiveStack()
public java.util.Stack<DependencyNode> getInactiveStack()
public java.util.Stack<DependencyNode> getInput()
public DependencyStructure getDependencyStructure()
public boolean isTerminalState()
ParserConfigurationisTerminalState in class ParserConfigurationpublic DependencyNode getActiveStackNode(int index) throws MaltChainedException
MaltChainedExceptionpublic DependencyNode getInactiveStackNode(int index) throws MaltChainedException
MaltChainedExceptionpublic DependencyNode getInputNode(int index) throws MaltChainedException
MaltChainedExceptionpublic 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 int getRootHandling()
protected void setRootHandling(java.lang.String rh) throws MaltChainedException
MaltChainedExceptionpublic boolean requiresSingleHead()
public boolean requiresNoCoveredRoots()
public boolean requiresAcyclicity()
public void setNoCoveredRoots(boolean value)
public void setAcyclicity(boolean value)
public 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.