public class SemanticDictionary extends Object
| Constructor and Description |
|---|
SemanticDictionary() |
| Modifier and Type | Method and Description |
|---|---|
void |
exportDictionaryToFile()
Exports the wordnet database files into one file.
|
edu.mit.jwi.IRAMDictionary |
getDictionary()
Retrieves the semantic wordnet dictionary
|
edu.mit.jwi.item.IIndexWord |
getIndexWord(String str,
edu.mit.jwi.item.POS pos)
Retrieves the corresponding IIndexWord of a string in wordnet
|
edu.mit.jwi.item.ISynset |
getSynset(edu.mit.jwi.item.ISynsetID hypernymId)
Retrieves the corresponding ISynset of ISynsetID in wordnet
|
edu.mit.jwi.item.IWord |
getWord(edu.mit.jwi.item.IWordID wordID)
Retrieves the corresponding IWord of an IWordID in wordnet
|
void |
openDictionaryFromFile()
Opens the exported wordnet file and loads it to memory
|
void |
removeDictionary()
Closes and removes the semantic dictionary from memory
|
public void exportDictionaryToFile()
public void removeDictionary()
public void openDictionaryFromFile()
public edu.mit.jwi.item.IWord getWord(edu.mit.jwi.item.IWordID wordID)
IWordID, - the input IWordIDpublic edu.mit.jwi.item.IIndexWord getIndexWord(String str, edu.mit.jwi.item.POS pos)
str, - the input stringpos, - the input string's POSpublic edu.mit.jwi.item.ISynset getSynset(edu.mit.jwi.item.ISynsetID hypernymId)
ISynsetID, - the input ISynsetIDpublic edu.mit.jwi.IRAMDictionary getDictionary()
Copyright © 2020. All rights reserved.