gov.llnl.ontology.wordnet
Interface SynsetSimilarity
- All Known Implementing Classes:
- ExtendedLeskSimilarity, HirstStOngeSimilarity, JiangConrathSimilarity, LeacockChodorowScaledSimilarity, LeacockChodorowSimilarity, LeskSimilarity, LinSimilarity, PathSimilarity, ResnickSimilarity, WuPalmerSimilarity
public interface SynsetSimilarity
An interface for determining the similarity between two Synsets.
Implementations are the same measures provided by the perl WordNet::Similarity package
distributed by Ted Pedersen.
The similarity measures come in three varieties: measures based on the paths
between two synsets, measures based on information content for each synset,
and a combination of path information and information content.
Implementations should take a OntologyReader as an argument to the
contructor and may take other arguments via the constructor, such as a InformationContent instance. All calls to similarity should be free of state changes and thus thread safe.
- 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. |
similarity
double similarity(Synset synset1,
Synset synset2)
- Returns the similarity between
synset1 and synset2 based
on how they are connected in the word net hierarchy.
Copyright © 2010-2011. All Rights Reserved.