|
MaltParser 1.6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.maltparser.core.symbol.TableFeature
public abstract class TableFeature
| Field Summary | |
|---|---|
protected SingleFeatureValue |
featureValue
|
protected SymbolTable |
table
|
protected SymbolTableHandler |
tableHandler
|
protected String |
tableName
|
protected int |
type
|
| Constructor Summary | |
|---|---|
TableFeature()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getCode(String value)
Returns the integer representation of the string symbol according to the feature function. |
FeatureValue |
getFeatureValue()
Returns the feature value |
String |
getMapIdentifier()
|
abstract Class<?>[] |
getParameterTypes()
Returns an array of class types used by the feature extraction system to invoke initialize with correct arguments. |
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()
|
String |
getTableName()
|
int |
getType()
|
abstract void |
initialize(Object[] arguments)
Initialize the feature function |
void |
setFeatureValue(int indexCode)
Override the feature value of the feature function. |
void |
setFeatureValue(String symbol)
Override the feature value of the feature function. |
void |
setSymbolTable(SymbolTable table)
|
void |
setTableHandler(SymbolTableHandler tableHandler)
|
void |
setTableName(String name)
|
void |
setType(int type)
|
String |
toString()
|
abstract void |
update()
Cause the feature function to update the feature value. |
void |
updateCardinality()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SingleFeatureValue featureValue
protected SymbolTable table
protected String tableName
protected SymbolTableHandler tableHandler
protected int type
| Constructor Detail |
|---|
public TableFeature()
throws MaltChainedException
MaltChainedException| Method Detail |
|---|
public abstract void update()
throws MaltChainedException
Function
update in interface FunctionMaltChainedException
public abstract void initialize(Object[] arguments)
throws MaltChainedException
Function
initialize in interface Functionarguments - an array of arguments with the type returned by getParameterTypes()
MaltChainedExceptionpublic abstract Class<?>[] getParameterTypes()
Function
getParameterTypes in interface Function
public String getSymbol(int value)
throws MaltChainedException
FeatureFunctioncode according to the feature function.
getSymbol in interface FeatureFunctionvalue - the integer representation of the symbol
code according to the feature function.
MaltChainedException
public int getCode(String value)
throws MaltChainedException
FeatureFunctionsymbol according to the feature function.
getCode in interface FeatureFunctionvalue - the string representation of the symbol
symbol according to the feature function.
MaltChainedExceptionpublic SymbolTable getSymbolTable()
FeatureFunction
getSymbolTable in interface FeatureFunctionpublic void setSymbolTable(SymbolTable table)
public void updateCardinality()
public void setFeatureValue(int indexCode)
throws MaltChainedException
Modifiable
setFeatureValue in interface ModifiableindexCode - an integer representation of the symbol
MaltChainedException
public void setFeatureValue(String symbol)
throws MaltChainedException
Modifiable
setFeatureValue in interface Modifiablesymbol - an string representation of the symbol
MaltChainedExceptionpublic FeatureValue getFeatureValue()
FeatureFunction
getFeatureValue in interface FeatureFunctionpublic SymbolTableHandler getTableHandler()
public void setTableHandler(SymbolTableHandler tableHandler)
public boolean equals(Object obj)
equals in class Objectpublic void setTableName(String name)
public String getTableName()
public int getType()
getType in interface FeatureFunctionpublic void setType(int type)
public String getMapIdentifier()
getMapIdentifier in interface FeatureFunctionpublic String toString()
toString in class Object
|
MaltParser 1.6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||