public class BananaSplitterAlgorithm extends Object implements SplitterAlgorithm
| Constructor and Description |
|---|
BananaSplitterAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bananaSplit(ValueNode<DecompoundedWord> aParent,
int aDepth)
Recursively creates the split tree
|
protected DecompoundedWord |
compoundToSplit(de.drni.bananasplit.Compound aCompound)
Converts the banana split compound to a split
|
protected DecompoundedWord |
makeSplit(String aWord)
Split a word with the banana splitter
|
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.
|
public DecompoundingTree split(String aWord)
SplitterAlgorithmsplit in interface SplitterAlgorithmaWord - The word to splitprotected void bananaSplit(ValueNode<DecompoundedWord> aParent, int aDepth)
aParent - The parent nodeaDepth - the current depth.protected DecompoundedWord makeSplit(String aWord)
aWord - The word to splitprotected DecompoundedWord compoundToSplit(de.drni.bananasplit.Compound aCompound)
aCompound - the compound.public void setDictionary(Dictionary aDict)
SplitterAlgorithmsetDictionary in interface SplitterAlgorithmaDict - The dictionarypublic void setLinkingMorphemes(LinkingMorphemes aMorphemes)
SplitterAlgorithmsetLinkingMorphemes in interface SplitterAlgorithmaMorphemes - the linking morphemespublic void setMaximalTreeDepth(int aDepth)
SplitterAlgorithmsetMaximalTreeDepth in interface SplitterAlgorithmaDepth - maximal tree depth.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.