public class DetachSuffixesOperation extends AbstractDelegatingOperation
<param name="{part-of-speech}" value="|{suffix}={stemmed suffix}|..."/>
where suffix is the {suffix} to convert from, and {stemmed suffix} is
the suffix to convert to.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPERATIONS |
params
dictionary
Constructor and Description |
---|
DetachSuffixesOperation(Dictionary dictionary,
java.util.Map<java.lang.String,Param> params) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(POS pos,
java.lang.String derivation,
BaseFormSet forms)
Executes the operation.
|
protected java.lang.String[] |
getKeys() |
java.util.Map<POS,java.lang.String[][]> |
getSuffixMap() |
void |
setSuffixMap(java.util.Map<POS,java.lang.String[][]> suffixMap) |
addDelegate, delegate, hasDelegate
getDictionary, setDictionary
public static final java.lang.String OPERATIONS
public DetachSuffixesOperation(Dictionary dictionary, java.util.Map<java.lang.String,Param> params) throws JWNLException
JWNLException
protected java.lang.String[] getKeys()
getKeys
in class AbstractDelegatingOperation
public java.util.Map<POS,java.lang.String[][]> getSuffixMap()
public void setSuffixMap(java.util.Map<POS,java.lang.String[][]> suffixMap)
public boolean execute(POS pos, java.lang.String derivation, BaseFormSet forms) throws JWNLException
Operation
pos
- part of speechderivation
- lemmaforms
- BaseFormSet to which all discovered base forms should
be added.JWNLException
- JWNLException