Fido Alpha 3.2

fido.linguistic
Class ProperNounResolver

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

public class ProperNounResolver
extends java.lang.Object

Resolves a list of possible proper noun objects to one object that appears in the Discourse Context pool. The SentenceComponents module creates a ProperNounList for every proper noun in the user input. The ProperNounList contains a list of possible objects that the proper noun represents. For example, for the proper noun Joe, the ProperNounList would contain a list of all people objects that are named Joe.

This module would take the list and lookup each object in the Context pool of the Discourse. The Context pool maintains a list of all objects that the user and system have mentioned in the current conversation.

Ex. The system knows of two people named Bill. During the conversation, the user mentions one of the two people named Bill. Bills object would be placed into the Context pool, because his name was brought up. The next time Bills name is mentioned, this module will see that only one Bill was mentioned previously, and would assume which Bill the user was talking about.

See Also:
Discourse

Constructor Summary
ProperNounResolver(Discourse discourse)
          Creates a new ProperNounResolver instance.
 
Method Summary
 ResolvedNoun resolve(ProperNounList list)
          Resolves the proper noun represented by the list parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProperNounResolver

public ProperNounResolver(Discourse discourse)
Creates a new ProperNounResolver instance.

Parameters:
discourse - Discourse object used for the Context pool.
Method Detail

resolve

public ResolvedNoun resolve(ProperNounList list)
                     throws MultipleProperNounsMatchException,
                            NoProperNounsMatchException
Resolves the proper noun represented by the list parameter. Each of the entries in the list are looked up in the Object Pool in the Discourse.

Parameters:
list - List of proper nouns from the ProperNoun table that match the proper noun string from the user.
Returns:
A ResolvedNoun that the proper noun represents.
Throws:
MultipleProperNounsMatchException - Thrown if more than one object in the proper noun list was found in the Discourse Context pool.
NoProperNounsMatchException - Thrown if none of objects in the proper noun list were found in the Discourse Context pool.
See Also:
Discourse.lookupContextPool(int)

Fido Alpha 3.2