public final class MergeFeature extends java.lang.Object implements FeatureMapFunction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Class<?>[] |
paramTypes |
| Constructor and Description |
|---|
MergeFeature(SymbolTableHandler tableHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getCode(java.lang.String symbol)
Returns the integer representation of the string
symbol according to the feature function. |
FeatureValue |
getFeatureValue()
Returns the feature value
|
FeatureFunction |
getFirstFeature() |
java.lang.String |
getMapIdentifier() |
java.lang.Class<?>[] |
getParameterTypes()
Returns an array of class types used by the feature extraction system to invoke initialize with
correct arguments.
|
FeatureFunction |
getSecondFeature() |
java.lang.String |
getSymbol(int code)
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() |
int |
getType() |
void |
initialize(java.lang.Object[] arguments)
Initialize the feature function
|
void |
setFirstFeature(FeatureFunction firstFeature) |
void |
setSecondFeature(FeatureFunction secondFeature) |
void |
setSymbolTable(SymbolTable table) |
java.lang.String |
toString() |
void |
update()
Cause the feature function to update the feature value.
|
public static final java.lang.Class<?>[] paramTypes
public MergeFeature(SymbolTableHandler tableHandler) throws MaltChainedException
MaltChainedExceptionpublic void initialize(java.lang.Object[] arguments) throws MaltChainedException
Functioninitialize in interface Functionarguments - an array of arguments with the type returned by getParameterTypes()MaltChainedExceptionpublic void update() throws MaltChainedException
Functionupdate in interface FunctionMaltChainedExceptionpublic java.lang.Class<?>[] getParameterTypes()
FunctiongetParameterTypes in interface Functionpublic FeatureValue getFeatureValue()
FeatureFunctiongetFeatureValue in interface FeatureFunctionpublic java.lang.String getSymbol(int code) throws MaltChainedException
FeatureFunctioncode according to the feature function.getSymbol in interface FeatureFunctioncode - the integer representation of the symbolcode according to the feature function.MaltChainedExceptionpublic int getCode(java.lang.String symbol) throws MaltChainedException
FeatureFunctionsymbol according to the feature function.getCode in interface FeatureFunctionsymbol - the string representation of the symbolsymbol according to the feature function.MaltChainedExceptionpublic FeatureFunction getFirstFeature()
public void setFirstFeature(FeatureFunction firstFeature)
public FeatureFunction getSecondFeature()
public void setSecondFeature(FeatureFunction secondFeature)
public SymbolTableHandler getTableHandler()
public SymbolTable getSymbolTable()
FeatureFunctiongetSymbolTable in interface FeatureFunctionpublic void setSymbolTable(SymbolTable table)
public int getType()
getType in interface FeatureFunctionpublic java.lang.String getMapIdentifier()
getMapIdentifier in interface FeatureFunctionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.