|
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.Ellipsis
Ellipsis takes missing parts of the current fragment and fills in parts from the previous sentence. Also, ellipsis takes care of verb ellipsis, like in the sentences:
The system will keep track of when the previous response to the user was a question. If so, the noun phrase is most likely an answer to the question, and not an ellipsis.
Previously, the new sentence structure has been saved to Discourse class in the Discourse Resolver module.
See the Ellipsis Concepts page for more information.
Discourse
,
DiscourseResolver
Constructor Summary | |
Ellipsis(Discourse discourse)
Creates a new Ellipsis instance. |
Method Summary | |
Sentence |
analyze(Fragment fragment)
Converts a Fragment to a full Sentence by using parts of the previous input stored in the Discourse class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Ellipsis(Discourse discourse)
discourse
- Discourse object used in resolving nounsMethod Detail |
public Sentence analyze(Fragment fragment) throws FidoDatabaseException, ObjectNotFoundException, MultipleEllipsisMatchException, NoEllipsisMatchException
Pseudo-Code
fragment
- Sentence fragment
FidoDatabaseException
- Thrown if there is an error contacting or
processing a database request.
ObjectNotFoundException
- Thrown if an object id one of the ResolvedNoun
classes is not found. This should never happen.
NoEllipsisMatchException
- Thrown if a NounPhrase in the previous
input was not found to replace the current.
MultipleEllipsisMatchException
- Thrown if there are multiple NounPhrase
in the previous input that replace the current.Discourse
|
Fido Alpha 3.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |