public class PlanarConfig extends ParserConfiguration
Modifier and Type | Field and Description |
---|---|
boolean |
acyclicity |
int |
connectedness |
static int |
FULL_CONNECTEDNESS |
static int |
NO_CONNECTEDNESS |
boolean |
noCoveredRoots |
static int |
NORMAL |
static int |
REDUCE_ONLY |
static int |
RELAXED |
boolean |
SINGLE_HEAD |
historyNode
Constructor and Description |
---|
PlanarConfig(java.lang.String noCoveredRoots,
java.lang.String acyclicity,
java.lang.String connectedness,
java.lang.String rootHandling) |
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.Stack<DependencyNode> |
getInput() |
DependencyNode |
getInputNode(int index) |
int |
getRootHandling() |
java.util.Stack<DependencyNode> |
getStack() |
DependencyNode |
getStackNode(int index) |
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 |
requiresAcyclicity() |
boolean |
requiresConnectednessCheckOnReduce() |
boolean |
requiresConnectednessCheckOnShift() |
boolean |
requiresNoCoveredRoots() |
boolean |
requiresSingleHead() |
void |
setAcyclicity(boolean value) |
protected void |
setConnectedness(java.lang.String conn) |
void |
setDependencyGraph(DependencyStructure source)
Sets the dependency structure
|
void |
setNoCoveredRoots(boolean value) |
protected void |
setRootHandling(java.lang.String rh) |
java.lang.String |
toString() |
getHistoryNode, setHistoryNode
public static final int NO_CONNECTEDNESS
public static final int REDUCE_ONLY
public static final int FULL_CONNECTEDNESS
public static final int NORMAL
public static final int RELAXED
public final boolean SINGLE_HEAD
public boolean noCoveredRoots
public boolean acyclicity
public int connectedness
public PlanarConfig(java.lang.String noCoveredRoots, java.lang.String acyclicity, java.lang.String connectedness, java.lang.String rootHandling) throws MaltChainedException
MaltChainedException
public java.util.Stack<DependencyNode> getStack()
public java.util.Stack<DependencyNode> getInput()
public DependencyStructure getDependencyStructure()
public boolean isTerminalState()
ParserConfiguration
isTerminalState
in class ParserConfiguration
public DependencyNode getStackNode(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 boolean requiresSingleHead()
public boolean requiresNoCoveredRoots()
public boolean requiresAcyclicity()
public boolean requiresConnectednessCheckOnReduce()
public boolean requiresConnectednessCheckOnShift()
public void setNoCoveredRoots(boolean value)
public void setAcyclicity(boolean value)
protected void setConnectedness(java.lang.String conn) throws MaltChainedException
MaltChainedException
public int getRootHandling()
protected void setRootHandling(java.lang.String rh) throws MaltChainedException
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.