org.maltparser.parser.algorithm.planar
Class PlanarConfig
java.lang.Object
   org.maltparser.parser.ParserConfiguration
org.maltparser.parser.ParserConfiguration
       org.maltparser.parser.algorithm.planar.PlanarConfig
org.maltparser.parser.algorithm.planar.PlanarConfig
- public class PlanarConfig 
- extends ParserConfiguration
- Author:
- Carlos Gomez Rodriguez
 
 
 
 
 
 
NO_CONNECTEDNESS
public static final int NO_CONNECTEDNESS
- See Also:
- Constant Field Values
REDUCE_ONLY
public static final int REDUCE_ONLY
- See Also:
- Constant Field Values
FULL_CONNECTEDNESS
public static final int FULL_CONNECTEDNESS
- See Also:
- Constant Field Values
SINGLE_HEAD
public final boolean SINGLE_HEAD
- See Also:
- Constant Field Values
noCoveredRoots
public boolean noCoveredRoots
acyclicity
public boolean acyclicity
connectedness
public int connectedness
PlanarConfig
public PlanarConfig(SymbolTableHandler symbolTableHandler,
                    String noCoveredRoots,
                    String acyclicity,
                    String connectedness)
             throws MaltChainedException
- Throws:
- MaltChainedException
getStack
public Stack<DependencyNode> getStack()
- 
 
getInput
public Stack<DependencyNode> getInput()
- 
 
getDependencyStructure
public DependencyStructure getDependencyStructure()
- 
 
isTerminalState
public boolean isTerminalState()
- Description copied from class: ParserConfiguration
- Returns true if the parser configuration is in a terminal state, otherwise false.
 
- 
- Specified by:
- isTerminalStatein class- ParserConfiguration
 
- 
- Returns:
- true if the parser configuration is in a terminal state, otherwise false.
 
getStackNode
public DependencyNode getStackNode(int index)
                            throws MaltChainedException
- 
- Throws:
- MaltChainedException
 
getInputNode
public DependencyNode getInputNode(int index)
                            throws MaltChainedException
- 
- Throws:
- MaltChainedException
 
setDependencyGraph
public void setDependencyGraph(DependencyStructure source)
                        throws MaltChainedException
- Description copied from class: ParserConfiguration
- Sets the dependency structure
 
- 
- Specified by:
- setDependencyGraphin class- ParserConfiguration
 
- 
- Parameters:
- source- a dependency structure
- Throws:
- MaltChainedException
 
getDependencyGraph
public DependencyStructure getDependencyGraph()
- Description copied from class: ParserConfiguration
- Returns the dependency structure
 
- 
- Specified by:
- getDependencyGraphin class- ParserConfiguration
 
- 
- Returns:
- the dependency structure
 
initialize
public void initialize(ParserConfiguration parserConfiguration)
                throws MaltChainedException
- Description copied from class: ParserConfiguration
- Initialize the parser configuration with the same state as the parameter config
 
- 
- Specified by:
- initializein class- ParserConfiguration
 
- 
- Parameters:
- parserConfiguration- a parser configuration
- Throws:
- MaltChainedException
 
requiresSingleHead
public boolean requiresSingleHead()
- 
 
requiresNoCoveredRoots
public boolean requiresNoCoveredRoots()
- 
 
requiresAcyclicity
public boolean requiresAcyclicity()
- 
 
requiresConnectednessCheckOnReduce
public boolean requiresConnectednessCheckOnReduce()
- 
 
requiresConnectednessCheckOnShift
public boolean requiresConnectednessCheckOnShift()
- 
 
setNoCoveredRoots
public void setNoCoveredRoots(boolean value)
- 
 
setAcyclicity
public void setAcyclicity(boolean value)
- 
 
setConnectedness
protected void setConnectedness(String conn)
                         throws MaltChainedException
- 
- Throws:
- MaltChainedException
 
clear
public void clear()
           throws MaltChainedException
- Description copied from class: ParserConfiguration
- Clears the parser configuration
 
- 
- Specified by:
- clearin class- ParserConfiguration
 
- 
- Throws:
- MaltChainedException
 
equals
public boolean equals(Object obj)
- 
- Overrides:
- equalsin class- Object
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.