Class TokenizerOperation
java.lang.Object
net.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
net.didion.jwnl.dictionary.morph.TokenizerOperation
- All Implemented Interfaces:
Operation, Createable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String[]static final StringParameter list that determines the delimiters this operation will use to concatanate tokens.static final StringParameter that determines the operations this operation will perform on the phrases.static final StringParameter that determines the operations this operation will perform on the tokens. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(POS pos, String lemma, BaseFormSet forms) Execute the operation.protected AbstractDelegatingOperationgetInstance(Map params) protected String[]getKeys()private booleantryAllCombinations(POS pos, String[] tokens, String delimiter, BaseFormSet forms) private booleantryAllCombinations(POS pos, BaseFormSet[] tokenForms, int startIndex, int endIndex, BaseFormSet forms) Methods inherited from class AbstractDelegatingOperation
addDelegate, create, delegate, hasDelegate
-
Field Details
-
TOKEN_OPERATIONS
Parameter that determines the operations this operation will perform on the tokens.- See Also:
-
PHRASE_OPERATIONS
Parameter that determines the operations this operation will perform on the phrases.- See Also:
-
DELIMITERS
Parameter list that determines the delimiters this operation will use to concatanate tokens.- See Also:
-
_delimiters
-
-
Constructor Details
-
TokenizerOperation
public TokenizerOperation() -
TokenizerOperation
-
-
Method Details
-
getInstance
- Specified by:
getInstancein classAbstractDelegatingOperation- Throws:
JWNLException
-
getKeys
- Specified by:
getKeysin classAbstractDelegatingOperation
-
execute
Description copied from interface:OperationExecute the operation.- Parameters:
pos-lemma-forms- BaseFormSet to which all discovered base forms should be added.- Returns:
- true if at least one base form was discovered by the operation and added to baseForms.
- Throws:
JWNLException
-
tryAllCombinations
private boolean tryAllCombinations(POS pos, BaseFormSet[] tokenForms, int startIndex, int endIndex, BaseFormSet forms) throws JWNLException - Throws:
JWNLException
-
tryAllCombinations
private boolean tryAllCombinations(POS pos, String[] tokens, String delimiter, BaseFormSet forms) throws JWNLException - Throws:
JWNLException
-