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

java.lang.Object
  extended byuk.ac.essex.malexa.nlp.dp.GuiTAR.Agreement

public class Agreement
extends Object

A class that encapsulates the morhological features of a head noun (number, person and gender).

Version:
1.1
Author:
Mijail A. Kabadjov

Field Summary
static int ANY
           
static int FEMENINE
           
static int FIRSTPERSON
           
private  int gender
           
static int IMPERSONAL
           
static int MASCULINE
           
private  int number
           
private  int person
           
static int PLURAL
           
static int SECONDPERSON
           
static int SINGULAR
           
static int THIRDPERSON
           
 
Constructor Summary
Agreement()
          Default constructor; sets features to 3rd person, singular, impersonal.
Agreement(int pPerson, int pNumber, int pGender)
          Receives the agreement features as numeric values and stores them internally.
Agreement(String pPerson, String pNumber, String pGender)
          Receives the agreement features as string values and stores them internally.
 
Method Summary
 boolean equals(Object obj)
           
 int getGender()
           
 int getNumber()
           
 int getPerson()
           
static void main(String[] args)
          MAIN
static Agreement newInstance(String posTag, String word)
          Determines the agreement features using hand coded heuristics based on part-of-speech.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIRSTPERSON

public static final int FIRSTPERSON
See Also:
Constant Field Values

SECONDPERSON

public static final int SECONDPERSON
See Also:
Constant Field Values

THIRDPERSON

public static final int THIRDPERSON
See Also:
Constant Field Values

SINGULAR

public static final int SINGULAR
See Also:
Constant Field Values

PLURAL

public static final int PLURAL
See Also:
Constant Field Values

FEMENINE

public static final int FEMENINE
See Also:
Constant Field Values

MASCULINE

public static final int MASCULINE
See Also:
Constant Field Values

IMPERSONAL

public static final int IMPERSONAL
See Also:
Constant Field Values

ANY

public static final int ANY
See Also:
Constant Field Values

person

private int person

number

private int number

gender

private int gender
Constructor Detail

Agreement

public Agreement()
Default constructor; sets features to 3rd person, singular, impersonal.


Agreement

public Agreement(int pPerson,
                 int pNumber,
                 int pGender)
Receives the agreement features as numeric values and stores them internally.

Parameters:
pPerson - The person as integer
pNumber - The number as integer
pGender - The gender as integer

Agreement

public Agreement(String pPerson,
                 String pNumber,
                 String pGender)
Receives the agreement features as string values and stores them internally.

Parameters:
pPerson - The person as String
pNumber - The number as String
pGender - The gender as String
Method Detail

getPerson

public int getPerson()

getNumber

public int getNumber()

getGender

public int getGender()

equals

public boolean equals(Object obj)

toString

public String toString()

newInstance

public static Agreement newInstance(String posTag,
                                    String word)
Determines the agreement features using hand coded heuristics based on part-of-speech.

Parameters:
posTag - The part-of-speech
word - The word
Returns:
Agreement An object holding the resulting agreement features

main

public static void main(String[] args)
MAIN