org.maltparser.parser.history.container
Class CombinedTableContainer
java.lang.Object
org.maltparser.parser.history.container.TableContainer
org.maltparser.parser.history.container.CombinedTableContainer
- All Implemented Interfaces:
- Table
public class CombinedTableContainer
- extends TableContainer
- implements Table
- Since:
- 1.1
- Author:
- Johan Hall
tableHandler
protected TableHandler tableHandler
separator
protected final char separator
containers
protected List<TableContainer> containers
cachedSymbols
protected final StringBuilder[] cachedSymbols
cachedCodes
protected final int[] cachedCodes
CombinedTableContainer
public CombinedTableContainer(TableHandler tableHandler,
String separator,
List<TableContainer> containers,
char decisionSeparator)
throws MaltChainedException
- Throws:
MaltChainedException
clearCache
public void clearCache()
- Overrides:
clearCache
in class TableContainer
addSymbol
public int addSymbol(String value)
throws MaltChainedException
- Specified by:
addSymbol
in interface Table
- Throws:
MaltChainedException
getName
public String getName()
- Specified by:
getName
in interface Table
getSymbolCodeToString
public String getSymbolCodeToString(int code)
throws MaltChainedException
- Specified by:
getSymbolCodeToString
in interface Table
- Throws:
MaltChainedException
getSymbolStringToCode
public int getSymbolStringToCode(String symbol)
throws MaltChainedException
- Specified by:
getSymbolStringToCode
in interface Table
- Throws:
MaltChainedException
getNumberContainers
public int getNumberContainers()
getSymbol
public String getSymbol(int code)
throws MaltChainedException
- Overrides:
getSymbol
in class TableContainer
- Throws:
MaltChainedException
getCode
public int getCode(String symbol)
throws MaltChainedException
- Overrides:
getCode
in class TableContainer
- Throws:
MaltChainedException
containCode
public boolean containCode(int code)
throws MaltChainedException
- Overrides:
containCode
in class TableContainer
- Throws:
MaltChainedException
containSymbol
public boolean containSymbol(String symbol)
throws MaltChainedException
- Overrides:
containSymbol
in class TableContainer
- Throws:
MaltChainedException
getCombinedCode
public int getCombinedCode(List<ActionContainer> codesToCombine)
throws MaltChainedException
- Throws:
MaltChainedException
setActionContainer
public void setActionContainer(List<ActionContainer> actionContainers,
int decision)
throws MaltChainedException
- Throws:
MaltChainedException
split
protected void split()
throws MaltChainedException
- Throws:
MaltChainedException
getSeparator
public char getSeparator()
getContainers
public List<TableContainer> getContainers()
setContainers
protected void setContainers(List<TableContainer> containers)
initSymbolTable
protected void initSymbolTable()
throws MaltChainedException
- Throws:
MaltChainedException
Copyright 2007-2008 Johan Hall, Jens Nilsson and Joakim Nivre.