|
MaltParser 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.maltparser.core.feature.function.AddressFunction
org.maltparser.parser.algorithm.covington.CovAddressFunction
public class CovAddressFunction
Nested Class Summary | |
---|---|
static class |
CovAddressFunction.CovSubFunction
|
Field Summary | |
---|---|
protected int |
index
|
protected Covington |
parsingAlgorithm
|
protected CovAddressFunction.CovSubFunction |
subFunction
|
protected String |
subFunctionName
|
Fields inherited from class org.maltparser.core.feature.function.AddressFunction |
---|
address |
Constructor Summary | |
---|---|
CovAddressFunction(String subFunctionName,
ParsingAlgorithm parsingAlgorithm)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
AddressValue |
getAddressValue()
Returns the address value of address function |
int |
getIndex()
Returns the index that is used for indexing the data structures: Left, Right, LeftContext and RightContext |
Class<?>[] |
getParameterTypes()
Returns an array of class types used by the feature extraction system to invoke initialize with correct arguments. |
Covington |
getParsingAlgorithm()
Returns one of the two version of the covington parsing algorithm |
CovAddressFunction.CovSubFunction |
getSubFunction()
Returns the subfunction (LEFT, RIGHT, LEFTCONTEXT, RIGHTCONTEXT) |
String |
getSubFunctionName()
Returns the string representation of subfunction name |
void |
initialize(Object[] arguments)
Initialize the feature function |
void |
setIndex(int index)
Sets the index that is used for indexing the data structures: Left, Right, LeftContext and RightContext |
void |
setParsingAlgorithm(Covington parsingAlgorithm)
Sets the parsing algorthm |
void |
setSubFunctionName(String subFunctionName)
Sets the string representation of subFunction name |
String |
toString()
|
void |
update()
Cause the feature function to update the feature value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String subFunctionName
protected CovAddressFunction.CovSubFunction subFunction
protected Covington parsingAlgorithm
protected int index
Constructor Detail |
---|
public CovAddressFunction(String subFunctionName, ParsingAlgorithm parsingAlgorithm)
Method Detail |
---|
public void initialize(Object[] arguments) throws MaltChainedException
Function
arguments
- an array of arguments with the type returned by getParameterTypes()
MaltChainedException
public Class<?>[] getParameterTypes()
Function
public void update() throws MaltChainedException
Function
MaltChainedException
public String getSubFunctionName()
public void setSubFunctionName(String subFunctionName)
subFunctionName
- the subfunction namepublic CovAddressFunction.CovSubFunction getSubFunction()
public AddressValue getAddressValue()
AddressFunction
getAddressValue
in class AddressFunction
public Covington getParsingAlgorithm()
public void setParsingAlgorithm(Covington parsingAlgorithm)
parsingAlgorithm
- a covington parsing algorithmpublic int getIndex()
public void setIndex(int index)
index
- the indexpublic boolean equals(Object obj)
equals
in class AddressFunction
public String toString()
toString
in class AddressFunction
|
MaltParser 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |