|
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.feature.map.PrefixFeature
public class PrefixFeature
| Field Summary | |
|---|---|
protected ColumnDescription |
column
|
protected DataFormatInstance |
dataFormatInstance
|
protected MultipleFeatureValue |
multipleFeatureValue
|
protected FeatureFunction |
parentFeature
|
protected int |
prefixLength
|
protected SymbolTable |
table
|
protected SymbolTableHandler |
tableHandler
|
| Constructor Summary | |
|---|---|
PrefixFeature(DataFormatInstance dataFormatInstance)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getCode(String symbol)
Returns the integer representation of the string symbol according to the feature function. |
ColumnDescription |
getColumn()
|
DataFormatInstance |
getDataFormatInstance()
|
FeatureValue |
getFeatureValue()
Returns the feature value |
String |
getMapIdentifier()
|
Class<?>[] |
getParameterTypes()
Returns an array of class types used by the feature extraction system to invoke initialize with correct arguments. |
FeatureFunction |
getParentFeature()
|
int |
getPrefixLength()
|
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(Object[] arguments)
Initialize the feature function |
protected void |
setColumn(ColumnDescription column)
|
void |
setDataFormatInstance(DataFormatInstance dataFormatInstance)
|
void |
setParentFeature(FeatureFunction feature)
|
void |
setPrefixLength(int prefixLength)
|
void |
setSymbolTable(SymbolTable table)
|
String |
toString()
|
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 FeatureFunction parentFeature
protected MultipleFeatureValue multipleFeatureValue
protected SymbolTableHandler tableHandler
protected SymbolTable table
protected DataFormatInstance dataFormatInstance
protected ColumnDescription column
protected int prefixLength
| Constructor Detail |
|---|
public PrefixFeature(DataFormatInstance dataFormatInstance)
throws MaltChainedException
MaltChainedException| Method Detail |
|---|
public void initialize(Object[] arguments)
throws MaltChainedException
Function
initialize in interface Functionarguments - an array of arguments with the type returned by getParameterTypes()
MaltChainedExceptionpublic Class<?>[] getParameterTypes()
Function
getParameterTypes in interface Functionpublic FeatureValue getFeatureValue()
FeatureFunction
getFeatureValue in interface FeatureFunction
public int getCode(String symbol)
throws MaltChainedException
FeatureFunctionsymbol according to the feature function.
getCode in interface FeatureFunctionsymbol - the string representation of the symbol
symbol according to the feature function.
MaltChainedException
public String getSymbol(int code)
throws MaltChainedException
FeatureFunctioncode according to the feature function.
getSymbol in interface FeatureFunctioncode - the integer representation of the symbol
code according to the feature function.
MaltChainedException
public void update()
throws MaltChainedException
Function
update in interface FunctionMaltChainedException
public void updateCardinality()
throws MaltChainedException
MaltChainedExceptionpublic FeatureFunction getParentFeature()
public void setParentFeature(FeatureFunction feature)
public int getPrefixLength()
public void setPrefixLength(int prefixLength)
public SymbolTableHandler getTableHandler()
public SymbolTable getSymbolTable()
FeatureFunction
getSymbolTable in interface FeatureFunctionpublic void setSymbolTable(SymbolTable table)
public DataFormatInstance getDataFormatInstance()
public void setDataFormatInstance(DataFormatInstance dataFormatInstance)
public ColumnDescription getColumn()
protected void setColumn(ColumnDescription column)
public int getType()
getType in interface FeatureFunctionpublic String getMapIdentifier()
getMapIdentifier in interface FeatureFunctionpublic boolean equals(Object obj)
equals in class Objectpublic 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 | |||||||||