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)
public boolean contains(String[] phraseParts)
phraseParts
- Phrase as token arrayCopyright © 2011–2015. All rights reserved.