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
MaltChainedException
public abstract void update() throws MaltChainedException
Function
update
in interface Function
MaltChainedException
public abstract void initialize(java.lang.Object[] arguments) throws MaltChainedException
Function
initialize
in interface Function
arguments
- an array of arguments with the type returned by getParameterTypes()MaltChainedException
public abstract java.lang.Class<?>[] getParameterTypes()
Function
getParameterTypes
in interface Function
public java.lang.String getSymbol(int value) throws MaltChainedException
FeatureFunction
code
according to the feature function.getSymbol
in interface FeatureFunction
value
- the integer representation of the symbolcode
according to the feature function.MaltChainedException
public int getCode(java.lang.String value) throws MaltChainedException
FeatureFunction
symbol
according to the feature function.getCode
in interface FeatureFunction
value
- the string representation of the symbolsymbol
according to the feature function.MaltChainedException
public SymbolTable getSymbolTable()
FeatureFunction
getSymbolTable
in interface FeatureFunction
public void setSymbolTable(SymbolTable table)
public void setFeatureValue(int indexCode) throws MaltChainedException
Modifiable
setFeatureValue
in interface Modifiable
indexCode
- an integer representation of the symbolMaltChainedException
public void setFeatureValue(java.lang.String symbol) throws MaltChainedException
Modifiable
setFeatureValue
in interface Modifiable
symbol
- an string representation of the symbolMaltChainedException
public FeatureValue getFeatureValue()
FeatureFunction
getFeatureValue
in interface FeatureFunction
public SymbolTableHandler getTableHandler()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setTableName(java.lang.String name)
public java.lang.String getTableName()
public int getType()
getType
in interface FeatureFunction
public void setType(int type)
public java.lang.String getMapIdentifier()
getMapIdentifier
in interface FeatureFunction
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.