public class MultiWords extends Object
| Constructor and Description |
|---|
MultiWords() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMultiWord(String word)
Add a multi-word string to the multiWord member variable.
|
int |
findMultiWord(List<String> text,
int startIndex,
List<String> synset)
Find the synset for a multi-word string, if it exists.
|
int |
findMultiWord(String multiWordKey,
List<String> multiWordTail,
List<String> synset) |
public void addMultiWord(String word)
public int findMultiWord(List<String> text, int startIndex, List<String> synset)
text - is an array of String words.startIndex - is the first word in the array to look atsynset - is an array of only one element, if a synset is found
and empty otherwiseCopyright © 2015. All rights reserved.