public class HeadRules extends HashMap<java.lang.String,HeadRule>
Modifier and Type | Field and Description |
---|---|
protected SymbolTable |
edgelabelSymbolTable |
protected org.apache.log4j.Logger |
logger |
protected java.lang.String |
name |
protected SymbolTable |
nonTerminalSymbolTable |
static long |
serialVersionUID |
Constructor and Description |
---|
HeadRules(org.apache.log4j.Logger logger,
DataFormatInstance dataFormatInstance,
SymbolTableHandler symbolTableHandler) |
Modifier and Type | Method and Description |
---|---|
DataFormatInstance |
getDataFormatInstance() |
Direction |
getDefaultDirection(NonTerminalNode nt) |
PhraseStructureNode |
getHeadChild(NonTerminalNode nt) |
org.apache.log4j.Logger |
getLogger() |
SymbolTableHandler |
getSymbolTableHandler() |
void |
parseHeadRules(java.lang.String fileName) |
void |
parseHeadRules(java.net.URL url) |
void |
setLogger(org.apache.log4j.Logger logger) |
java.lang.String |
toString() |
clear, containsKey, containsValue, doReadObject, doWriteObject, entrySet, equals, get, hashCode, isEmpty, keyEquals, keyHashCode, keySet, put, putAll, remove, size, valueEquals, valueHashCode, values
public static final long serialVersionUID
protected org.apache.log4j.Logger logger
protected java.lang.String name
protected SymbolTable nonTerminalSymbolTable
protected SymbolTable edgelabelSymbolTable
public HeadRules(org.apache.log4j.Logger logger, DataFormatInstance dataFormatInstance, SymbolTableHandler symbolTableHandler) throws MaltChainedException
MaltChainedException
public void parseHeadRules(java.lang.String fileName) throws MaltChainedException
MaltChainedException
public void parseHeadRules(java.net.URL url) throws MaltChainedException
MaltChainedException
public PhraseStructureNode getHeadChild(NonTerminalNode nt) throws MaltChainedException
MaltChainedException
public Direction getDefaultDirection(NonTerminalNode nt) throws MaltChainedException
MaltChainedException
public org.apache.log4j.Logger getLogger()
public void setLogger(org.apache.log4j.Logger logger)
public DataFormatInstance getDataFormatInstance()
public SymbolTableHandler getSymbolTableHandler()
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.