I have a hasmap of words. words are made of
synsetID
word
type
the key field is the word since you cannot have a duplicate entry in a dictionary. A number of words can belong to the same synset (eg complete, whole, everything have pretty much the same meaning so would have the same synset.)
At the moment i can use this code to find a word in the hashmap pretty quick.
public word getWord(String word)
{
return words.get(word);
}
However, I need to be able to look up synonyms from the synsetID. since, the synsetID isn't a key-value i'm not sure how to look it up in the hashmap.
Any ideas? I've googled, but not got very far.
Posted By: Erdington Yella, Dec 12, 18:58:58
Written & Designed By Ben Graves 1999-2025