public class RadaMetric extends BaseSimilarityMetric
simSvc
Constructor and Description |
---|
RadaMetric(ConceptSimilarityService simSvc,
Integer depthMax) |
Modifier and Type | Method and Description |
---|---|
double |
similarity(String concept1,
String concept2,
Map<String,Double> conceptFilter,
SimilarityInfo simInfo) |
getConceptSimilarityService, initLCSes, initLcsIC, initLcsIC, setConceptSimilarityService
public RadaMetric(ConceptSimilarityService simSvc, Integer depthMax)
public double similarity(String concept1, String concept2, Map<String,Double> conceptFilter, SimilarityInfo simInfo)
concept1
- required - concept idconcept2
- required - concept idconceptFilter
- optional. map of concept id to relevance (infogain) for all
concepts. Only lcses from this map will be considered.simInfo
- optional. if provided, we will fill in the path information
and lcs of simInfoCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.