public class MemoryIndex extends AIndex
| Modifier and Type | Field and Description |
|---|---|
protected SemanticDictionary |
dictionary |
| Constructor and Description |
|---|
MemoryIndex() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the Index instance
|
ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> |
getHypernymPaths(edu.mit.jwi.item.ISynset synset)
Retrieves all hypernym paths of a synset from memory
|
void |
init(boolean f)
Initiliazes the Index instance
|
void |
preIndex()
Stores all necessary information into memory
|
void |
preIndexPaths()
Stores in memory all possible hypernym paths of a wordnet's synset from
the root(s).
|
protected SemanticDictionary dictionary
public void preIndex()
public void preIndexPaths()
public ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> getHypernymPaths(edu.mit.jwi.item.ISynset synset)
getHypernymPaths in class AIndexCopyright © 2020. All rights reserved.