Class MemoryIndex
- java.lang.Object
-
- org.aksw.limes.core.measures.measure.semantic.edgecounting.indexing.AIndex
-
- org.aksw.limes.core.measures.measure.semantic.edgecounting.indexing.memory.MemoryIndex
-
public class MemoryIndex extends AIndex
Implements the memory index class that computes, stores and loads the hypernym paths of every synset in wordnet.- Version:
- 1.0
- Author:
- Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected SemanticDictionarydictionary
-
Constructor Summary
Constructors Constructor Description MemoryIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the Index instanceArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>>getHypernymPaths(edu.mit.jwi.item.ISynset synset)Retrieves all hypernym paths of a synset from memoryvoidinit(boolean f)Initiliazes the Index instancevoidpreIndex()Stores all necessary information into memoryvoidpreIndexPaths()Stores in memory all possible hypernym paths of a wordnet's synset from the root(s).
-
-
-
Field Detail
-
dictionary
protected SemanticDictionary dictionary
-
-
Method Detail
-
preIndex
public void preIndex()
Stores all necessary information into memory
-
preIndexPaths
public void preIndexPaths()
Stores in memory all possible hypernym paths of a wordnet's synset from the root(s).
-
getHypernymPaths
public ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> getHypernymPaths(edu.mit.jwi.item.ISynset synset)
Retrieves all hypernym paths of a synset from memory- Specified by:
getHypernymPathsin classAIndex- Parameters:
synset- , the input synset- Returns:
- a list of all hypernym paths
-
-