MaltParser 1.7.1

org.maltparser.parser.algorithm.nivre
Class NivreConfig

java.lang.Object
  extended by org.maltparser.parser.ParserConfiguration
      extended by org.maltparser.parser.algorithm.nivre.NivreConfig

public class NivreConfig
extends ParserConfiguration

Author:
Johan Hall

Field Summary
 
Fields inherited from class org.maltparser.parser.ParserConfiguration
historyNode
 
Constructor Summary
NivreConfig(SymbolTableHandler symbolTableHandler, boolean allowRoot, boolean allowReduce)
           
 
Method Summary
 void clear()
          Clears the parser configuration
 boolean equals(Object obj)
           
 DependencyStructure getDependencyGraph()
          Returns the dependency structure
 DependencyStructure getDependencyStructure()
           
 Stack<DependencyNode> getInput()
           
 DependencyNode getInputNode(int index)
           
 Stack<DependencyNode> getStack()
           
 DependencyNode getStackNode(int index)
           
 void initialize(ParserConfiguration parserConfiguration)
          Initialize the parser configuration with the same state as the parameter config
 boolean isAllowReduce()
           
 boolean isAllowRoot()
           
 boolean isTerminalState()
          Returns true if the parser configuration is in a terminal state, otherwise false.
 void setAllowReduce(boolean allowReduce)
           
 void setAllowRoot(boolean allowRoot)
           
 void setDependencyGraph(DependencyStructure source)
          Sets the dependency structure
 String toString()
           
 
Methods inherited from class org.maltparser.parser.ParserConfiguration
getHistoryNode, setHistoryNode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NivreConfig

public NivreConfig(SymbolTableHandler symbolTableHandler,
                   boolean allowRoot,
                   boolean allowReduce)
            throws MaltChainedException
Throws:
MaltChainedException
Method Detail

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:
isTerminalState in 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:
setDependencyGraph in class ParserConfiguration
Parameters:
source - a dependency structure
Throws:
MaltChainedException

getDependencyGraph

public DependencyStructure getDependencyGraph()
Description copied from class: ParserConfiguration
Returns the dependency structure

Specified by:
getDependencyGraph in 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:
initialize in class ParserConfiguration
Parameters:
parserConfiguration - a parser configuration
Throws:
MaltChainedException

isAllowRoot

public boolean isAllowRoot()

setAllowRoot

public void setAllowRoot(boolean allowRoot)

isAllowReduce

public boolean isAllowReduce()

setAllowReduce

public void setAllowReduce(boolean allowReduce)

clear

public void clear()
           throws MaltChainedException
Description copied from class: ParserConfiguration
Clears the parser configuration

Specified by:
clear in class ParserConfiguration
Throws:
MaltChainedException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

MaltParser 1.7.1

Copyright 2007-2012 Johan Hall, Jens Nilsson and Joakim Nivre.