public class LeftToRightSplitterResource extends SplitterResource
PARAM_DICT_RESOURCE, PARAM_MORPHEME_RESOURCE, splitter
Constructor and Description |
---|
LeftToRightSplitterResource() |
Modifier and Type | Method and Description |
---|---|
boolean |
initialize(org.apache.uima.resource.ResourceSpecifier aSpecifier,
Map aAdditionalParams) |
void |
setDictionary(Dictionary aDict)
Sets the dictionary for the algorithm
|
void |
setLinkingMorphemes(LinkingMorphemes aMorphemes)
Sets the linking morphemes for the algorithm
|
void |
setMaximalTreeDepth(int aDepth)
Set the maximal tree depth.
|
DecompoundingTree |
split(String aWord)
Returns all possible splits for a given word.
|
afterResourcesInitialized
getLogger, getResourceName
public boolean initialize(org.apache.uima.resource.ResourceSpecifier aSpecifier, Map aAdditionalParams) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.resource.Resource
initialize
in class SplitterResource
org.apache.uima.resource.ResourceInitializationException
public DecompoundingTree split(String aWord)
SplitterAlgorithm
aWord
- The word to splitpublic void setDictionary(Dictionary aDict)
SplitterAlgorithm
aDict
- The dictionarypublic void setMaximalTreeDepth(int aDepth)
SplitterAlgorithm
aDepth
- maximal tree depth.public void setLinkingMorphemes(LinkingMorphemes aMorphemes)
SplitterAlgorithm
aMorphemes
- the linking morphemesCopyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.