public class SemanticSimKernel extends CacheKernel implements org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
SemanticSimKernel() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
double |
evaluate(Object o1,
Object o2)
override CacheKernel - don't bother caching evaluation if the concepts
are not in the conceptFilter, or if they are identical.
|
ConceptSimilarityService |
getConceptSimilarityService() |
double |
getCutoff() |
String |
getLabel() |
String |
getMetricNames() |
Integer |
getRankCutoff() |
protected void |
initializeConceptFilter() |
double |
innerEvaluate(Object o1,
Object o2)
return the product of all the similarity metrics
|
void |
setConceptSimilarityService(ConceptSimilarityService conceptSimilarityService) |
void |
setCutoff(double cutoff) |
void |
setLabel(String label) |
void |
setMetricNames(String metricNames) |
void |
setRankCutoff(Integer rankCutoff) |
getCacheKeyGenerator, getCacheManager, getCacheName, setCacheKeyGenerator, setCacheManager, setCacheName
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class CacheKernel
Exception
public double evaluate(Object o1, Object o2)
evaluate
in interface Kernel
evaluate
in class CacheKernel
public ConceptSimilarityService getConceptSimilarityService()
public double getCutoff()
public String getLabel()
public String getMetricNames()
public Integer getRankCutoff()
protected void initializeConceptFilter()
public double innerEvaluate(Object o1, Object o2)
innerEvaluate
in class CacheKernel
public void setConceptSimilarityService(ConceptSimilarityService conceptSimilarityService)
public void setCutoff(double cutoff)
public void setLabel(String label)
public void setMetricNames(String metricNames)
public void setRankCutoff(Integer rankCutoff)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.