gov.llnl.ontology.wordnet.sim
Class LinSimilarity

java.lang.Object
  extended by gov.llnl.ontology.wordnet.sim.LinSimilarity
All Implemented Interfaces:
SynsetSimilarity

public class LinSimilarity
extends Object
implements SynsetSimilarity

Implements the Lin Similarity. This measure scores Synsets based on the information content of their lowest common subsumer and of the two Synsets. Formally, this is: 2 * IC(lcs) / (IC(* synset1) + IC(synset2))

Author:
Keith Stevens

Constructor Summary
LinSimilarity(InformationContent ic)
          Constructs a new LinSimilarity.
 
Method Summary
 double similarity(Synset synset1, Synset synset2)
          Returns the similarity between synset1 and synset2 based on how they are connected in the word net hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinSimilarity

public LinSimilarity(InformationContent ic)
Constructs a new LinSimilarity.

Method Detail

similarity

public double similarity(Synset synset1,
                         Synset synset2)
Returns the similarity between synset1 and synset2 based on how they are connected in the word net hierarchy.

Specified by:
similarity in interface SynsetSimilarity


Copyright © 2010-2011. All Rights Reserved.