gov.llnl.ontology.wordnet.sim
Class ResnickSimilarity

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

public class ResnickSimilarity
extends Object
implements SynsetSimilarity

Implements the Resnick similarity. This measure scores Synsets with the information content of their lowest common subsumer.

Author:
Keith Stevens

Constructor Summary
ResnickSimilarity(InformationContent ic)
          Constructs a new ResnickSimilarity.
 
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

ResnickSimilarity

public ResnickSimilarity(InformationContent ic)
Constructs a new ResnickSimilarity.

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.