public abstract class BaseSimilarityMetric extends Object implements SimilarityMetric
Modifier and Type | Field and Description |
---|---|
protected ConceptSimilarityService |
simSvc |
Constructor and Description |
---|
BaseSimilarityMetric(ConceptSimilarityService simSvc) |
Modifier and Type | Method and Description |
---|---|
ConceptSimilarityService |
getConceptSimilarityService() |
protected void |
initLCSes(String concept1,
String concept2,
SimilarityInfo simInfo)
compute the lcses and min path distance for the concept pair, if this
hasn't been done already
|
protected double |
initLcsIC(Map<String,Double> conceptFilter,
SimilarityInfo simInfo,
boolean intrinsicIC)
get the best lcs and its information content if this hasn't been done
already.
|
protected double |
initLcsIC(String concept1,
String concept2,
Map<String,Double> conceptFilter,
SimilarityInfo simInfo,
boolean intrinsicIC)
call initLCSes and initLcsIC
|
void |
setConceptSimilarityService(ConceptSimilarityService conceptSimilarityService) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
similarity
protected ConceptSimilarityService simSvc
public BaseSimilarityMetric(ConceptSimilarityService simSvc)
public ConceptSimilarityService getConceptSimilarityService()
public void setConceptSimilarityService(ConceptSimilarityService conceptSimilarityService)
protected void initLCSes(String concept1, String concept2, SimilarityInfo simInfo)
concept1
- concept2
- simInfo
- protected double initLcsIC(Map<String,Double> conceptFilter, SimilarityInfo simInfo, boolean intrinsicIC)
conceptFilter
- simInfo
- intrinsicIC
- set to false for corpus based icCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.