be.ac.ucl.tele.ccg.jXDRS.sem
Class TimePrepositionSolver

java.lang.Object
  extended by be.ac.ucl.tele.ccg.jXDRS.sem.TimePrepositionSolver

public class TimePrepositionSolver
extends java.lang.Object

Description of the Class


Field Summary
static java.lang.String[] prepNames
          Description of the Field
static int[] prepNArgs
          Description of the Field
static java.lang.String[] timeAdverbs
          Description of the Field
 int totalChecked
          Description of the Field
 int totalRecognized
          Description of the Field
 int totalUnrecognized
          Description of the Field
 
Constructor Summary
TimePrepositionSolver()
          Constructor for the TimePrepositionSolver object
TimePrepositionSolver(DRSContainer drsCont)
          Constructor for the TimePrepositionSolver object
 
Method Summary
 TimeReference getATimeRef(DiscourseReferent dr, java.lang.StringBuffer log)
          Gets the aTimeRef attribute of the TimePrepositionSolver object
 VerbalReference getAVerbRef(DiscourseReferent dr, java.lang.StringBuffer log)
          Gets the aVerbRef attribute of the TimePrepositionSolver object
 VerbalReference getPatient(DiscourseReferent dr, java.lang.StringBuffer log)
          Gets the aPatient attribute of the TimePrepositionSolver object this is assuemd to be receive a time referent
 void getTimeEvents(java.lang.String[] preps, int[] nargs)
          Gets the TimeEvents contained in the DRSContainer
 boolean isAPatient(DiscourseReferent dr, java.lang.StringBuffer log)
          Gets the aPatient attribute of the TimePrepositionSolver object
static boolean isATimeAdverb(java.lang.String word)
          Gets the aTimeAdverb attribute of the TimePrepositionSolver class
 boolean isATimeRef(DiscourseReferent dr, java.lang.StringBuffer log)
          Gets the aTimeRef attribute of the TimePrepositionSolver object
 boolean isAVerbRef(DiscourseReferent dr, java.lang.StringBuffer log)
          Gets the aVerbRef attribute of the TimePrepositionSolver object
 DiscourseReferent solveAgent(DiscourseReferent dr, java.lang.StringBuffer log)
          Gets the aPatient attribute of the TimePrepositionSolver object We assueme tha the entry is a verb !!
 DiscourseReferent solvePatient(DiscourseReferent dr, java.lang.StringBuffer log)
          Gets the aPatient attribute of the TimePrepositionSolver object We assueme tha the entry is a verb !!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prepNArgs

public static int[] prepNArgs
Description of the Field


prepNames

public static java.lang.String[] prepNames
Description of the Field


timeAdverbs

public static java.lang.String[] timeAdverbs
Description of the Field


totalChecked

public int totalChecked
Description of the Field


totalRecognized

public int totalRecognized
Description of the Field


totalUnrecognized

public int totalUnrecognized
Description of the Field

Constructor Detail

TimePrepositionSolver

public TimePrepositionSolver()
Constructor for the TimePrepositionSolver object


TimePrepositionSolver

public TimePrepositionSolver(DRSContainer drsCont)
Constructor for the TimePrepositionSolver object

Parameters:
drsCont - Description of the Parameter
Method Detail

getATimeRef

public TimeReference getATimeRef(DiscourseReferent dr,
                                 java.lang.StringBuffer log)
Gets the aTimeRef attribute of the TimePrepositionSolver object

Parameters:
dr - Description of the Parameter
log - Description of the Parameter
Returns:
The aTimeRef value

getAVerbRef

public VerbalReference getAVerbRef(DiscourseReferent dr,
                                   java.lang.StringBuffer log)
Gets the aVerbRef attribute of the TimePrepositionSolver object

Parameters:
dr - Description of the Parameter
log - Description of the Parameter
Returns:
The aVerbRef value

getTimeEvents

public void getTimeEvents(java.lang.String[] preps,
                          int[] nargs)
Gets the TimeEvents contained in the DRSContainer

Parameters:
preps - List of prepositions to process
nargs - Description of the Parameter
Future work:
Add all the rules !

getPatient

public VerbalReference getPatient(DiscourseReferent dr,
                                  java.lang.StringBuffer log)
Gets the aPatient attribute of the TimePrepositionSolver object this is assuemd to be receive a time referent

Parameters:
dr - Description of the Parameter
log - Description of the Parameter
Returns:
The aPatient value

solveAgent

public DiscourseReferent solveAgent(DiscourseReferent dr,
                                    java.lang.StringBuffer log)
Gets the aPatient attribute of the TimePrepositionSolver object We assueme tha the entry is a verb !!

Parameters:
dr - Description of the Parameter
log - Description of the Parameter
Returns:
The aPatient value

solvePatient

public DiscourseReferent solvePatient(DiscourseReferent dr,
                                      java.lang.StringBuffer log)
Gets the aPatient attribute of the TimePrepositionSolver object We assueme tha the entry is a verb !!

Parameters:
dr - Description of the Parameter
log - Description of the Parameter
Returns:
The aPatient value

isAPatient

public boolean isAPatient(DiscourseReferent dr,
                          java.lang.StringBuffer log)
Gets the aPatient attribute of the TimePrepositionSolver object

Parameters:
dr - Description of the Parameter
log - Description of the Parameter
Returns:
The aPatient value

isATimeAdverb

public static boolean isATimeAdverb(java.lang.String word)
Gets the aTimeAdverb attribute of the TimePrepositionSolver class

Parameters:
word - Description of the Parameter
Returns:
The aTimeAdverb value
Future work:
Load adverbs from local dictionary at instantiation in a HashMap or some other proper structure

isATimeRef

public boolean isATimeRef(DiscourseReferent dr,
                          java.lang.StringBuffer log)
Gets the aTimeRef attribute of the TimePrepositionSolver object

Parameters:
dr - Description of the Parameter
log - Description of the Parameter
Returns:
The aTimeRef value

isAVerbRef

public boolean isAVerbRef(DiscourseReferent dr,
                          java.lang.StringBuffer log)
Gets the aVerbRef attribute of the TimePrepositionSolver object

Parameters:
dr - Description of the Parameter
log - Description of the Parameter
Returns:
The aVerbRef value


MIT style licence.