Fido Alpha 3.2

fido.linguistic
Class NounFrameSlot

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

public class NounFrameSlot
extends java.lang.Object

Sets the Frame slots for the three nouns attached to the verb: subject, indirect object, and predicate noun. The Verb table will take the verb from the user input and return the frame slot for each position, if one is applicable.


Constructor Summary
NounFrameSlot()
          Creates a new NounFrameSlot instance.
 
Method Summary
 void resolve(Sentence sentence, Frame frame)
          Places the ResolvedNoun objects from the subject, indirect object, and predicate noun into a slot in the Frame instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NounFrameSlot

public NounFrameSlot()
Creates a new NounFrameSlot instance.

Method Detail

resolve

public void resolve(Sentence sentence,
                    Frame frame)
             throws FidoDatabaseException,
                    VerbNotFoundException
Places the ResolvedNoun objects from the subject, indirect object, and predicate noun into a slot in the Frame instance. The verb string is looked up in the Verb table to retrieve a slot name for each position.

Parameters:
sentence - Sentence structure to look for nouns.
frame - Frame instance to set the slot values.
Throws:
FidoDatabaseException - Thrown if there is an error contacting or processing a database request.
VerbNotFoundException - Thrown if an verb string is not found in Verb table.

Fido Alpha 3.2