it.unitn.disi.smatch.oracles.wordnet
Class WordNetSynset

java.lang.Object
  extended by it.unitn.disi.smatch.oracles.wordnet.WordNetSynset
All Implemented Interfaces:
ISynset

public class WordNetSynset
extends java.lang.Object
implements ISynset

WordNet-based synset implementation.

Author:
Mikalai Yatskevich mikalai.yatskevich@comlab.ox.ac.uk, Aliaksandr Autayeu avtaev@gmail.com

Constructor Summary
WordNetSynset(Synset sense)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Vector<ISynset> getChildren()
          Returns "children", that is hyponyms of the synset.
 java.util.Vector<ISynset> getChildren(int depth)
          Returns "children", that is hyponyms of the synset, down to certain depth.
 java.lang.String getGloss()
          Returns a synset gloss, that is a textual description of the meaning of the synset.
 java.util.Vector<java.lang.String> getLemmas()
          Get lemmas of this synset.
 java.util.Vector<ISynset> getParents()
          Returns "parents", that is hypernyms of the synset.
 java.util.Vector<ISynset> getParents(int depth)
          Returns "parents", that is hypernyms of the synset, up to certain depth.
 int hashCode()
           
 boolean isEqual(Synset source, Synset target)
           
 boolean isNull()
          Checks whether the synset holds a synset inside.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordNetSynset

public WordNetSynset(Synset sense)
Method Detail

getGloss

public java.lang.String getGloss()
Description copied from interface: ISynset
Returns a synset gloss, that is a textual description of the meaning of the synset.

Specified by:
getGloss in interface ISynset
Returns:
a gloss

getLemmas

public java.util.Vector<java.lang.String> getLemmas()
Description copied from interface: ISynset
Get lemmas of this synset.

Specified by:
getLemmas in interface ISynset
Returns:
lemmas

getParents

public java.util.Vector<ISynset> getParents()
Description copied from interface: ISynset
Returns "parents", that is hypernyms of the synset.

Specified by:
getParents in interface ISynset
Returns:
hypernyms of the synset

getParents

public java.util.Vector<ISynset> getParents(int depth)
Description copied from interface: ISynset
Returns "parents", that is hypernyms of the synset, up to certain depth.

Specified by:
getParents in interface ISynset
Parameters:
depth - a search depth
Returns:
"parents"

getChildren

public java.util.Vector<ISynset> getChildren()
Description copied from interface: ISynset
Returns "children", that is hyponyms of the synset.

Specified by:
getChildren in interface ISynset
Returns:
"children"

getChildren

public java.util.Vector<ISynset> getChildren(int depth)
Description copied from interface: ISynset
Returns "children", that is hyponyms of the synset, down to certain depth.

Specified by:
getChildren in interface ISynset
Parameters:
depth - a search depth
Returns:
"children"

isEqual

public boolean isEqual(Synset source,
                       Synset target)

isNull

public boolean isNull()
Description copied from interface: ISynset
Checks whether the synset holds a synset inside.

Specified by:
isNull in interface ISynset
Returns:
whether the synset holds a synset inside

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


© 2010 Knowdive @ DISI