slib.sml.sm.core.measures.graph.pairwise.dag.edge_based
Class Sim_pairwise_DAG_edge_Wu_Palmer_1994
java.lang.Object
slib.sml.sm.core.measures.graph.pairwise.dag.edge_based.Sim_DAG_edge_abstract
slib.sml.sm.core.measures.graph.pairwise.dag.edge_based.Sim_pairwise_DAG_edge_Wu_Palmer_1994
- All Implemented Interfaces:
- Sim_Pairwise_DAG, Sim_Pairwise
public class Sim_pairwise_DAG_edge_Wu_Palmer_1994
- extends Sim_DAG_edge_abstract
Wu Z, Palmer M: Verb semantics and lexical selection. In 32nd. Annual Meeting
of the Association for Computational Linguistics. 1994:133–138.
- Author:
- Sebastien Harispe
Method Summary |
boolean |
isSymmetric()
|
double |
sim(org.openrdf.model.URI cA,
org.openrdf.model.URI cB,
Set<org.openrdf.model.URI> ancestors_A,
Set<org.openrdf.model.URI> ancestors_B,
Map<org.openrdf.model.URI,Double> distMin_a,
Map<org.openrdf.model.URI,Double> distMin_b,
Map<org.openrdf.model.URI,Integer> maxDepths)
compute the semantic similarity considering the given parameters. |
double |
sim(org.openrdf.model.URI a,
org.openrdf.model.URI b,
SM_Engine c,
SMconf conf)
Compute the semantic similarity of the pair of concepts/classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sim_pairwise_DAG_edge_Wu_Palmer_1994
public Sim_pairwise_DAG_edge_Wu_Palmer_1994()
sim
public double sim(org.openrdf.model.URI a,
org.openrdf.model.URI b,
SM_Engine c,
SMconf conf)
throws slib.utils.ex.SLIB_Exception
- Description copied from interface:
Sim_Pairwise
- Compute the semantic similarity of the pair of concepts/classes.
- Parameters:
a
- the first concept/classb
- the second concept/classc
- the engine used to access information required by the measuresconf
- the configuration to consider
- Returns:
- the similarity between the pair of concept/class.
- Throws:
slib.utils.ex.SLIB_Exception
sim
public double sim(org.openrdf.model.URI cA,
org.openrdf.model.URI cB,
Set<org.openrdf.model.URI> ancestors_A,
Set<org.openrdf.model.URI> ancestors_B,
Map<org.openrdf.model.URI,Double> distMin_a,
Map<org.openrdf.model.URI,Double> distMin_b,
Map<org.openrdf.model.URI,Integer> maxDepths)
throws slib.utils.ex.SLIB_Exception
- compute the semantic similarity considering the given parameters.
- Parameters:
cA
- concept AcB
- concept Bancestors_A
- inclusive ancestors of Aancestors_B
- inclusive ancestors of BdistMin_a
- shortest path from AdistMin_b
- shortest path from BmaxDepths
- maximal depth of all concepts
- Returns:
- the semantic similarity
- Throws:
slib.utils.ex.SLIB_Exception
isSymmetric
public boolean isSymmetric()
Copyright © 2013. All Rights Reserved.