org.maltparser.core.syntaxgraph.headrules
Class HeadRules
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,HeadRule>
org.maltparser.core.syntaxgraph.headrules.HeadRules
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,HeadRule>
public class HeadRules
- extends HashMap<String,HeadRule>
- Author:
- Johan Hall
- See Also:
- Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
logger
protected org.apache.log4j.Logger logger
name
protected String name
dataFormatInstance
protected DataFormatInstance dataFormatInstance
nonTerminalSymbolTable
protected SymbolTable nonTerminalSymbolTable
edgelabelSymbolTable
protected SymbolTable edgelabelSymbolTable
HeadRules
public HeadRules(org.apache.log4j.Logger logger,
DataFormatInstance dataFormatInstance)
throws MaltChainedException
- Throws:
MaltChainedException
parseHeadRules
public void parseHeadRules(String fileName)
throws MaltChainedException
- Throws:
MaltChainedException
parseHeadRules
public void parseHeadRules(URL url)
throws MaltChainedException
- Throws:
MaltChainedException
getHeadChild
public PhraseStructureNode getHeadChild(NonTerminalNode nt)
throws MaltChainedException
- Throws:
MaltChainedException
getDefaultDirection
public Direction getDefaultDirection(NonTerminalNode nt)
throws MaltChainedException
- Throws:
MaltChainedException
getLogger
public org.apache.log4j.Logger getLogger()
setLogger
public void setLogger(org.apache.log4j.Logger logger)
getDataFormatInstance
public DataFormatInstance getDataFormatInstance()
setDataFormatInstance
public void setDataFormatInstance(DataFormatInstance dataFormatInstance)
toString
public String toString()
- Overrides:
toString
in class AbstractMap<String,HeadRule>
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.