public abstract class TableFeature extends java.lang.Object implements FeatureFunction, Modifiable
| Modifier and Type | Field and Description |
|---|---|
protected SingleFeatureValue |
featureValue |
protected SymbolTable |
table |
protected SymbolTableHandler |
tableHandler |
protected java.lang.String |
tableName |
protected int |
type |
| Constructor and Description |
|---|
TableFeature(SymbolTableHandler tableHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getCode(java.lang.String value)
Returns the integer representation of the string
symbol according to the feature function. |
FeatureValue |
getFeatureValue()
Returns the feature value
|
java.lang.String |
getMapIdentifier() |
abstract java.lang.Class<?>[] |
getParameterTypes()
Returns an array of class types used by the feature extraction system to invoke initialize with
correct arguments.
|
java.lang.String |
getSymbol(int value)
Returns the string representation of the integer
code according to the feature function. |
SymbolTable |
getSymbolTable()
Returns the symbol table used by the feature function.
|
SymbolTableHandler |
getTableHandler() |
java.lang.String |
getTableName() |
int |
getType() |
abstract void |
initialize(java.lang.Object[] arguments)
Initialize the feature function
|
void |
setFeatureValue(int indexCode)
Override the feature value of the feature function.
|
void |
setFeatureValue(java.lang.String symbol)
Override the feature value of the feature function.
|
void |
setSymbolTable(SymbolTable table) |
void |
setTableName(java.lang.String name) |
void |
setType(int type) |
java.lang.String |
toString() |
abstract void |
update()
Cause the feature function to update the feature value.
|
protected final SingleFeatureValue featureValue
protected SymbolTable table
protected java.lang.String tableName
protected SymbolTableHandler tableHandler
protected int type
public TableFeature(SymbolTableHandler tableHandler) throws MaltChainedException
MaltChainedExceptionpublic abstract void update() throws MaltChainedException
Functionupdate in interface FunctionMaltChainedExceptionpublic abstract void initialize(java.lang.Object[] arguments) throws MaltChainedException
Functioninitialize in interface Functionarguments - an array of arguments with the type returned by getParameterTypes()MaltChainedExceptionpublic abstract java.lang.Class<?>[] getParameterTypes()
FunctiongetParameterTypes in interface Functionpublic java.lang.String getSymbol(int value) throws MaltChainedException
FeatureFunctioncode according to the feature function.getSymbol in interface FeatureFunctionvalue - the integer representation of the symbolcode according to the feature function.MaltChainedExceptionpublic int getCode(java.lang.String value) throws MaltChainedException
FeatureFunctionsymbol according to the feature function.getCode in interface FeatureFunctionvalue - the string representation of the symbolsymbol according to the feature function.MaltChainedExceptionpublic SymbolTable getSymbolTable()
FeatureFunctiongetSymbolTable in interface FeatureFunctionpublic void setSymbolTable(SymbolTable table)
public void setFeatureValue(int indexCode) throws MaltChainedException
ModifiablesetFeatureValue in interface ModifiableindexCode - an integer representation of the symbolMaltChainedExceptionpublic void setFeatureValue(java.lang.String symbol) throws MaltChainedException
ModifiablesetFeatureValue in interface Modifiablesymbol - an string representation of the symbolMaltChainedExceptionpublic FeatureValue getFeatureValue()
FeatureFunctiongetFeatureValue in interface FeatureFunctionpublic SymbolTableHandler getTableHandler()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setTableName(java.lang.String name)
public java.lang.String getTableName()
public int getType()
getType in interface FeatureFunctionpublic void setType(int type)
public java.lang.String getMapIdentifier()
getMapIdentifier in interface FeatureFunctionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.