|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.maltparser.core.syntaxgraph.feature.NumOfFeature
public class NumOfFeature
Nested Class Summary | |
---|---|
static class |
NumOfFeature.NumOfRelation
|
Field Summary | |
---|---|
protected AddressFunction |
addressFunction
|
protected SingleFeatureValue |
featureValue
|
protected Map<Integer,String> |
normalization
|
protected String |
normalizationString
|
protected NumOfFeature.NumOfRelation |
numOfRelation
|
protected String |
numOfRelationName
|
protected SymbolTable |
table
|
protected SymbolTableHandler |
tableHandler
|
Constructor Summary | |
---|---|
NumOfFeature(SymbolTableHandler tableHandler)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
AddressFunction |
getAddressFunction()
Returns the address function |
int |
getCode(String symbol)
Returns the integer representation of the string symbol according to the numof feature function. |
FeatureValue |
getFeatureValue()
Returns the feature value |
NumOfFeature.NumOfRelation |
getNumOfRelation()
|
Class<?>[] |
getParameterTypes()
Returns an array of class types used by the feature extraction system to invoke initialize with correct arguments. |
String |
getSymbol(int code)
Returns the string representation of the integer code according to the numof feature function. |
SymbolTable |
getSymbolTable()
Returns the symbol table used by the numof feature function |
int |
hashCode()
|
void |
initialize(Object[] arguments)
Initialize the distance feature function |
void |
setAddressFunction(AddressFunction addressFunction)
Sets the address function |
void |
setNumOfRelation(String numOfRelationName)
|
void |
setSymbolTable(SymbolTable table)
Sets the symbol table used by the numof feature function |
void |
setTableHandler(SymbolTableHandler tableHandler)
Sets the symbol table handler |
String |
toString()
|
void |
update()
Cause the feature function to update the feature value. |
void |
updateCardinality()
Cause the numof feature function to update the cardinality of the feature value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AddressFunction addressFunction
protected SymbolTableHandler tableHandler
protected SymbolTable table
protected SingleFeatureValue featureValue
protected NumOfFeature.NumOfRelation numOfRelation
protected String numOfRelationName
protected String normalizationString
protected Map<Integer,String> normalization
Constructor Detail |
---|
public NumOfFeature(SymbolTableHandler tableHandler) throws MaltChainedException
MaltChainedException
Method Detail |
---|
public void initialize(Object[] arguments) throws MaltChainedException
initialize
in interface Function
arguments
- an array of arguments with the type returned by getParameterTypes()
MaltChainedException
public Class<?>[] getParameterTypes()
getParameterTypes
in interface Function
public String getSymbol(int code) throws MaltChainedException
code
according to the numof feature function.
getSymbol
in interface FeatureFunction
code
- the integer representation of the symbol
code
according to the numof feature function.
MaltChainedException
public int getCode(String symbol) throws MaltChainedException
symbol
according to the numof feature function.
getCode
in interface FeatureFunction
symbol
- the string representation of the symbol
symbol
according to the numof feature function.
MaltChainedException
public void updateCardinality()
updateCardinality
in interface FeatureFunction
MaltChainedException
public void update() throws MaltChainedException
update
in interface Function
MaltChainedException
public void setNumOfRelation(String numOfRelationName)
public NumOfFeature.NumOfRelation getNumOfRelation()
public FeatureValue getFeatureValue()
getFeatureValue
in interface FeatureFunction
public SymbolTable getSymbolTable()
getSymbolTable
in interface FeatureFunction
public AddressFunction getAddressFunction()
public void setAddressFunction(AddressFunction addressFunction)
addressFunction
- a address functionpublic void setTableHandler(SymbolTableHandler tableHandler)
tableHandler
- a symbol table handlerpublic void setSymbolTable(SymbolTable table)
table
- public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |