public class LiMeasure extends AEdgeCountingSemanticMeasure
ADJECTIVE_DEPTH, ADVERB_DEPTH, dictionary, Indexer, NOUN_DEPTH, VERB_DEPTH| Modifier and Type | Method and Description |
|---|---|
double |
calculate(ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> synset1Tree,
ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> synset2Tree)
Calculates the actual LI similarity.
|
String |
getName()
Returns name of a measure.
|
double |
getRuntimeApproximation(double mappingSize)
Returns the runtime approximation of a measure.
|
double |
getSimilarityBetweenConcepts(edu.mit.jwi.item.ISynset synset1,
edu.mit.jwi.item.ISynset synset2)
Computes the LI similarity between two concepts.
|
String |
getType()
Returns type of a measure.
|
checkSimilarity, close, getHierarchyDepth, getIIndexWord, getIWord, getPaths, getSemanticDictionary, getSimilarity, getSimilarity, getSimilarity, getSimilarity, getSynset, getWordIDs, setDictionary, tokenizepublic LiMeasure(AIndex Indexer)
public double calculate(ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> synset1Tree, ArrayList<ArrayList<edu.mit.jwi.item.ISynsetID>> synset2Tree)
synset1Tree, - the set of all hypernym paths for a concept synset1synset2Tree, - the set of all hypernym paths for a concept synset2public double getSimilarityBetweenConcepts(edu.mit.jwi.item.ISynset synset1,
edu.mit.jwi.item.ISynset synset2)
synset1, - the first input synsetsynset2, - the second input synsetpublic double getRuntimeApproximation(double mappingSize)
IMeasurepublic String getName()
IMeasureCopyright © 2020. All rights reserved.