Fido Alpha 3.2

fido.linguistic
Class VerbPrepositionResolver

java.lang.Object
  |
  +--fido.linguistic.VerbPrepositionResolver

public class VerbPrepositionResolver
extends java.lang.Object

Places the ResolvedNouns for each prepositional phrase attached to the verb in the appropriate frame slot. The frame slot is determined by the preposition string looked up in the AdverbPreposition table.


Constructor Summary
VerbPrepositionResolver()
          Creates a new VerbPrepositionResolver instance.
 
Method Summary
 void resolve(Sentence sentence, Frame frame)
          For each PrepositionalPhrase from the VerbPhrase in the sentence parameter, lookup the preposition in the AdverbPrepsotion table to retrieve a frame slot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerbPrepositionResolver

public VerbPrepositionResolver()
Creates a new VerbPrepositionResolver instance.

Method Detail

resolve

public void resolve(Sentence sentence,
                    Frame frame)
             throws FidoDatabaseException,
                    PrepositionNotFoundException,
                    ObjectNotFoundException
For each PrepositionalPhrase from the VerbPhrase in the sentence parameter, lookup the preposition in the AdverbPrepsotion table to retrieve a frame slot. Set the frame slot with with the resolved noun of the prepositional phrase.

Parameters:
sentence - Sentence structure to pull the prepositional phrases.
frame - Frame to set the frame slots.
Throws:
FidoDatabaseException - Thrown if there is an error contacting or processing a database request.
ObjectNotFoundException - Thrown if the object id of the ResolvedNoun for the preposition is not found. This should never happen.
PrepositionNotFoundException - Thrown if the preposition was not found in the AdverbPreposition table.

Fido Alpha 3.2