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 |
---|---|
static String |
OPERATIONS |
Constructor and Description |
---|
DetachSuffixesOperation() |
DetachSuffixesOperation(Map suffixMap) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(POS pos,
String derivation,
BaseFormSet forms)
Execute the operation.
|
protected AbstractDelegatingOperation |
getInstance(Map params) |
protected String[] |
getKeys() |
Map |
getSuffixMap() |
void |
setSuffixMap(Map suffixMap) |
addDelegate, create, delegate, hasDelegate
public static final String OPERATIONS
public DetachSuffixesOperation()
public DetachSuffixesOperation(Map suffixMap)
protected AbstractDelegatingOperation getInstance(Map params) throws JWNLException
getInstance
in class AbstractDelegatingOperation
JWNLException
protected String[] getKeys()
getKeys
in class AbstractDelegatingOperation
public Map getSuffixMap()
public void setSuffixMap(Map suffixMap)
public boolean execute(POS pos, String derivation, BaseFormSet forms) throws JWNLException
Operation
forms
- BaseFormSet to which all discovered base forms should
be added.JWNLException
Copyright © 2018. All rights reserved.