public class PhraseTree extends Object
Constructor and Description |
---|
PhraseTree() |
Modifier and Type | Method and Description |
---|---|
void |
addPhrase(String[] phraseParts)
Add a phrase, each array entry is a phrase token
|
boolean |
contains(String[] phraseParts)
Checks if the phrase is contained in the tree
|
String[] |
getLongestMatch(String[] matchText)
Returns the longest matching phrase in the tree, beginning with the first array entry in
matchText.
|
public void addPhrase(String[] phraseParts)
phraseParts
- the phrase.public boolean contains(String[] phraseParts)
phraseParts
- Phrase as token arrayCopyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.