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 |
paramsdictionary| 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, hasDelegategetDictionary, setDictionarypublic static final java.lang.String OPERATIONS
public DetachSuffixesOperation(Dictionary dictionary, java.util.Map<java.lang.String,Param> params) throws JWNLException
JWNLExceptionprotected java.lang.String[] getKeys()
getKeys in class AbstractDelegatingOperationpublic 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
Operationpos - part of speechderivation - lemmaforms - BaseFormSet to which all discovered base forms should
be added.JWNLException - JWNLException