anyone know how to look up a non-key value in a hashmap
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 on December 12th 2005 at 18:58:58
Message Thread
- anyone know how to look up a non-key value in a hashmap (General Chat) - Erdington Yella, Dec 12, 18:58:58
Reply to Message
In order to add a post to the WotB Message Board you must be a registered WotB user.
If you are not yet registered then please visit the registration page. You should ensure that their browser is setup to accept cookies.