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

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_Leacock_Chodorow_1998
All Implemented Interfaces:
Sim_Pairwise_DAG, Sim_Pairwise

public class Sim_pairwise_DAG_edge_Leacock_Chodorow_1998
extends Sim_DAG_edge_abstract

Implementation of Leacock and Chodorow semantic similarity measure. Leacock C, Chodorow M: Combining Local Context and WordNet Similarity for Word Sense Identification. In WordNet: An electronic lexical database. edited by Fellbaum C MIT Press; 1998:265 – 283. The Log base used in this implementation is 10.

Author:
Sébastien Harispe

Constructor Summary
Sim_pairwise_DAG_edge_Leacock_Chodorow_1998()
           
 
Method Summary
 boolean isSymmetric()
           
 double sim(Double shortestPath, double depth_max)
          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_Leacock_Chodorow_1998

public Sim_pairwise_DAG_edge_Leacock_Chodorow_1998()
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(Double shortestPath,
                  double depth_max)
Compute the semantic similarity considering the given parameters.

Parameters:
shortestPath - the shortest path between the two concepts.
depth_max - the maximal depth
Returns:
the semantic similarity

isSymmetric

public boolean isSymmetric()


Copyright © 2013. All Rights Reserved.