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
Methods inherited from class org.maltparser.parser.history.container.TableContainer |
continueWithNextDecision, continueWithNextDecision, getRelationToNextDecision, getTable, getTableContainerName, getTableName, setName, setRelationToNextDecision, setTable, size, toString |
Methods inherited from interface org.maltparser.core.symbol.Table |
size |
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
getCombinedCode
public int getCombinedCode(ActionContainer[] codesToCombine,
int start)
throws MaltChainedException
- Throws:
MaltChainedException
setActionContainer
public void setActionContainer(List<ActionContainer> actionContainers,
int decision)
throws MaltChainedException
- Throws:
MaltChainedException
setActionContainer
public void setActionContainer(ActionContainer[] actionContainers,
int start,
int decision)
throws MaltChainedException
- Throws:
MaltChainedException
split
protected void split()
throws MaltChainedException
- Throws:
MaltChainedException
getSeparator
public char getSeparator()
initSymbolTable
protected void initSymbolTable()
throws MaltChainedException
- Throws:
MaltChainedException
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.