uk.ac.essex.malexa.nlp.dp.GuiTAR
Interface Sense

All Known Implementing Classes:
LexicalWord

public interface Sense

An interface that defines a model that views a word as a set of senses.


Method Summary
 boolean equals(Object o)
          Tests for equality between Object o and this object.
 String getEntry()
          Returns the original word.
 Object getSense()
          Returns the sense of the word.
 int hashCode()
          It seems that this method has to be overriden as well, in order for the the set framework to work
 double senseSimilarity(Sense s)
          Returns the similarity between Sense s and this sense.
 

Method Detail

getEntry

public String getEntry()
Returns the original word.

Returns:
String The word entry

getSense

public Object getSense()
Returns the sense of the word.

Returns:
Object The sense

senseSimilarity

public double senseSimilarity(Sense s)
Returns the similarity between Sense s and this sense. Depending on the implementation might range from [0 - 1] or [-1 - 1].

Parameters:
s - A sense to be compared with this sense
Returns:
double The similarity between s and this sense

equals

public boolean equals(Object o)
Tests for equality between Object o and this object.

Parameters:
o - The object to be compared with this object
Returns:
boolean True if the test succeeds, false otherwise

hashCode

public int hashCode()
It seems that this method has to be overriden as well, in order for the the set framework to work