org.maltparser.parser.transition
Class TransitionTable
java.lang.Object
org.maltparser.parser.transition.TransitionTable
- All Implemented Interfaces:
- Table, DecisionPropertyTable
public class TransitionTable
- extends Object
- implements Table, DecisionPropertyTable
- Since:
- 1.1
- Author:
- Johan Hall
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransitionTable
public TransitionTable(String tableName)
addTransition
public void addTransition(int code,
String symbol,
boolean labeled,
TransitionTable childrenTable)
continueWithNextDecision
public boolean continueWithNextDecision(int code)
throws MaltChainedException
- Specified by:
continueWithNextDecision
in interface DecisionPropertyTable
- Throws:
MaltChainedException
continueWithNextDecision
public boolean continueWithNextDecision(String symbol)
throws MaltChainedException
- Specified by:
continueWithNextDecision
in interface DecisionPropertyTable
- Throws:
MaltChainedException
getTableForNextDecision
public Table getTableForNextDecision(int code)
throws MaltChainedException
- Specified by:
getTableForNextDecision
in interface DecisionPropertyTable
- Throws:
MaltChainedException
getTableForNextDecision
public Table getTableForNextDecision(String symbol)
throws MaltChainedException
- Specified by:
getTableForNextDecision
in interface DecisionPropertyTable
- Throws:
MaltChainedException
getTransition
public Transition getTransition(String symbol)
getTransition
public Transition getTransition(int code)
addSymbol
public int addSymbol(String symbol)
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
setName
protected void setName(String name)
size
public int size()
- Specified by:
size
in interface Table
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.