public class ShortestPathMeasure extends AEdgeCountingSemanticMeasure
ADJECTIVE_DEPTH, ADVERB_DEPTH, dictionary, Indexer, NOUN_DEPTH, VERB_DEPTH| Constructor and Description |
|---|
ShortestPathMeasure(AIndex Indexer) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculate(edu.mit.jwi.item.ISynset synset1,
double shortestPath)
Calculates the actual Shortest Path 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 Shortest Path 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 ShortestPathMeasure(AIndex Indexer)
public double calculate(edu.mit.jwi.item.ISynset synset1,
double shortestPath)
synset1, - an input concept, used to retrieve the depth of the
corresponding hierarchyshortestPath, - the length of the shortest path between two conceptspublic 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.