public class DetachSuffixesOperation extends AbstractDelegatingOperation
where suffix is the {suffix} to convert from, and {stemmed suffix} is the suffix to convert to.
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
_suffixMap |
static java.lang.String |
OPERATIONS |
| Constructor and Description |
|---|
DetachSuffixesOperation() |
DetachSuffixesOperation(java.util.Map suffixMap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(POS pos,
java.lang.String derivation,
BaseFormSet forms)
Execute the operation.
|
protected AbstractDelegatingOperation |
getInstance(java.util.Map params) |
protected java.lang.String[] |
getKeys() |
private java.lang.String[][] |
getSuffixArray(java.lang.String suffixes) |
java.util.Map |
getSuffixMap() |
void |
setSuffixMap(java.util.Map suffixMap) |
addDelegate, create, delegate, hasDelegatepublic static final java.lang.String OPERATIONS
private java.util.Map _suffixMap
public DetachSuffixesOperation()
public DetachSuffixesOperation(java.util.Map suffixMap)
protected AbstractDelegatingOperation getInstance(java.util.Map params) throws JWNLException
getInstance in class AbstractDelegatingOperationJWNLExceptionprivate java.lang.String[][] getSuffixArray(java.lang.String suffixes)
throws JWNLException
JWNLExceptionprotected java.lang.String[] getKeys()
getKeys in class AbstractDelegatingOperationpublic java.util.Map getSuffixMap()
public void setSuffixMap(java.util.Map suffixMap)
public boolean execute(POS pos, java.lang.String derivation, BaseFormSet forms) throws JWNLException
Operationforms - BaseFormSet to which all discovered base forms should
be added.JWNLException