gov.llnl.ontology.wordnet.sim
Class JiangConrathSimilarity
java.lang.Object
gov.llnl.ontology.wordnet.sim.JiangConrathSimilarity
- All Implemented Interfaces:
- SynsetSimilarity
public class JiangConrathSimilarity
- extends Object
- implements SynsetSimilarity
Implements the Jiang-Conrath Similarity. This measure scores Synsets
based on the information content of their lowest common subsumer and the
information content of the two Synsets. Formally, this is
1 / IC(synset1) + IC(synset2) - 2 * IC(lcs))
- Author:
- Keith Stevens
|
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 |
JiangConrathSimilarity
public JiangConrathSimilarity(InformationContent ic)
- Constructs a new
ResnickSimilarity.
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.