|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fido.linguistic.ProperNounResolver
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.
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 |
public ProperNounResolver(Discourse discourse)
discourse
- Discourse object used for the Context pool.Method Detail |
public ResolvedNoun resolve(ProperNounList list) throws MultipleProperNounsMatchException, NoProperNounsMatchException
list
- List of proper nouns from the ProperNoun table
that match the proper noun string from the user.
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.Discourse.lookupContextPool(int)
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |