uk.ac.essex.malexa.nlp.dp.GuiTAR
Class LexicalWord

java.lang.Object
  extended byuk.ac.essex.malexa.nlp.dp.GuiTAR.LexicalWord
All Implemented Interfaces:
Sense

public class LexicalWord
extends Object
implements Sense

A class that encapsulates the lexical information of a word.

Author:
Mijail A. Kabadjov

Field Summary
static String ADJECTIVE_COMPARATIVE
           
static String ADJECTIVE_GENERAL
           
static String ADJECTIVE_SUPERLATIVE
           
static String ADVERB_COMPARATIVE
           
static String ADVERB_GENERAL
           
static String ADVERB_SUPERLATIVE
           
private  Agreement agreement
           
static String CARDINAL
           
static String COMMA
           
static String COMMON_NOUN_PLURAL
           
static String COMMON_NOUN_SINGULAR
           
static String CON_COORDINATING
           
static String DETERMINER
           
private  String lemma
           
static String[] LIST_VERB_TAGS
           
private static String PART_OF_SPEECH
           
static String PERSONAL_PRONOUN
           
static String POSSESSIVE
           
static String POSSESSIVE_PRONOUN
           
private  String posTag
           
static String PREPOSITION
           
static String PROPER_NOUN_PLURAL
           
static String PROPER_NOUN_SINGULAR
           
static String REFLEXIVE_PRONOUN
           
private  String stem
           
private static String STEMMING_RULES_FILE
           
static String TOBE_PAST_TENSE_SINGULAR
           
static String TOBE_PRESENT_1_SINGULAR
           
static String[] VERB_PRESENT_3_SINGULAR
           
static String WH_PRONOUN
           
private  String word
           
 
Constructor Summary
LexicalWord(String theWord, String thePOSTag)
           
 
Method Summary
 boolean equals(Object o)
          Tests for equality between Object o and this object.
 Agreement getAgreement()
           
 String getEntry()
          Returns the original word.
 String getPOSTag()
           
 Object getSense()
          Returns the sense of the word.
 String getStem()
           
 String getWord()
           
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STEMMING_RULES_FILE

private static final String STEMMING_RULES_FILE
See Also:
Constant Field Values

PART_OF_SPEECH

private static final String PART_OF_SPEECH
See Also:
Constant Field Values

CARDINAL

public static final String CARDINAL
See Also:
Constant Field Values

CON_COORDINATING

public static final String CON_COORDINATING
See Also:
Constant Field Values

COMMA

public static final String COMMA
See Also:
Constant Field Values

WH_PRONOUN

public static final String WH_PRONOUN
See Also:
Constant Field Values

DETERMINER

public static final String DETERMINER
See Also:
Constant Field Values

POSSESSIVE_PRONOUN

public static final String POSSESSIVE_PRONOUN
See Also:
Constant Field Values

POSSESSIVE

public static final String POSSESSIVE
See Also:
Constant Field Values

PREPOSITION

public static final String PREPOSITION
See Also:
Constant Field Values

ADJECTIVE_GENERAL

public static final String ADJECTIVE_GENERAL
See Also:
Constant Field Values

ADJECTIVE_COMPARATIVE

public static final String ADJECTIVE_COMPARATIVE
See Also:
Constant Field Values

ADJECTIVE_SUPERLATIVE

public static final String ADJECTIVE_SUPERLATIVE
See Also:
Constant Field Values

COMMON_NOUN_SINGULAR

public static final String COMMON_NOUN_SINGULAR
See Also:
Constant Field Values

COMMON_NOUN_PLURAL

public static final String COMMON_NOUN_PLURAL
See Also:
Constant Field Values

PROPER_NOUN_SINGULAR

public static final String PROPER_NOUN_SINGULAR
See Also:
Constant Field Values

PROPER_NOUN_PLURAL

public static final String PROPER_NOUN_PLURAL
See Also:
Constant Field Values

PERSONAL_PRONOUN

public static final String PERSONAL_PRONOUN
See Also:
Constant Field Values

REFLEXIVE_PRONOUN

public static final String REFLEXIVE_PRONOUN
See Also:
Constant Field Values

ADVERB_GENERAL

public static final String ADVERB_GENERAL
See Also:
Constant Field Values

ADVERB_COMPARATIVE

public static final String ADVERB_COMPARATIVE
See Also:
Constant Field Values

ADVERB_SUPERLATIVE

public static final String ADVERB_SUPERLATIVE
See Also:
Constant Field Values

TOBE_PAST_TENSE_SINGULAR

public static final String TOBE_PAST_TENSE_SINGULAR
See Also:
Constant Field Values

TOBE_PRESENT_1_SINGULAR

public static final String TOBE_PRESENT_1_SINGULAR
See Also:
Constant Field Values

VERB_PRESENT_3_SINGULAR

public static final String[] VERB_PRESENT_3_SINGULAR

LIST_VERB_TAGS

public static final String[] LIST_VERB_TAGS

word

private String word

stem

private String stem

lemma

private String lemma

posTag

private String posTag

agreement

private Agreement agreement
Constructor Detail

LexicalWord

public LexicalWord(String theWord,
                   String thePOSTag)
Method Detail

getWord

public String getWord()

getStem

public String getStem()

getPOSTag

public String getPOSTag()

getAgreement

public Agreement getAgreement()

toString

public String toString()

getEntry

public String getEntry()
Returns the original word.

Specified by:
getEntry in interface Sense
Returns:
String The word entry

getSense

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

Specified by:
getSense in interface Sense
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].

Specified by:
senseSimilarity in interface Sense
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.

Specified by:
equals in interface Sense
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

Specified by:
hashCode in interface Sense