slib.sml.sm.core.measures.graph.pairwise.dag.edge_based
Class Sim_pairwise_DAG_edge_Wu_Palmer_1994

java.lang.Object
  extended by slib.sml.sm.core.measures.graph.pairwise.dag.edge_based.Sim_DAG_edge_abstract
      extended by 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

Constructor Summary
Sim_pairwise_DAG_edge_Wu_Palmer_1994()
           
 
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
 

Constructor Detail

Sim_pairwise_DAG_edge_Wu_Palmer_1994

public Sim_pairwise_DAG_edge_Wu_Palmer_1994()
Method Detail

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/class
b - the second concept/class
c - the engine used to access information required by the measures
conf - 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 A
cB - concept B
ancestors_A - inclusive ancestors of A
ancestors_B - inclusive ancestors of B
distMin_a - shortest path from A
distMin_b - shortest path from B
maxDepths - maximal depth of all concepts
Returns:
the semantic similarity
Throws:
slib.utils.ex.SLIB_Exception

isSymmetric

public boolean isSymmetric()


Copyright © 2013. All Rights Reserved.