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, setHistoryNode
public 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
MaltChainedException
public 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()
ParserConfiguration
isTerminalState
in class ParserConfiguration
public DependencyNode getActiveStackNode(int index) throws MaltChainedException
MaltChainedException
public DependencyNode getInactiveStackNode(int index) throws MaltChainedException
MaltChainedException
public DependencyNode getInputNode(int index) throws MaltChainedException
MaltChainedException
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 int getRootHandling()
protected void setRootHandling(java.lang.String rh) throws MaltChainedException
MaltChainedException
public boolean requiresSingleHead()
public boolean requiresNoCoveredRoots()
public boolean requiresAcyclicity()
public void setNoCoveredRoots(boolean value)
public void setAcyclicity(boolean value)
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.