Package edu.tufts.hrilab.slug.dialogue
Class ResponseGeneration
java.lang.Object
edu.tufts.hrilab.slug.dialogue.ResponseGeneration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate
generateClarificationMultipleMeanings
(Symbol actor, Symbol speaker, Term semantics) Create an itk predicate from an ambiguous semantics predicate.static Predicate
generateFailureUnknownMeaning
(Symbol actor, Term suppSemantics) Create a Predicate representing the failure semantics in the case of unbound free-variable(s) in the supplemental semantics of an Utterance.
-
Constructor Details
-
ResponseGeneration
public ResponseGeneration()
-
-
Method Details
-
generateClarificationMultipleMeanings
public static Predicate generateClarificationMultipleMeanings(Symbol actor, Symbol speaker, Term semantics) Create an itk predicate from an ambiguous semantics predicate. Expecting semantics predicate of the form "semantics(boundOption1, boundOption2, ...)" and generating an itk predicate of the form "itk(actor, mean(speaker, or(boundOption1, boundOption2)))"- Parameters:
actor
- single actorsemantics
- "semantics(boundOption1, boundOption2, ...)"- Returns:
- Predicate of the form "itk(actor, mean(speaker, or(boundOption1, boundOption2)))"
-
generateFailureUnknownMeaning
Create a Predicate representing the failure semantics in the case of unbound free-variable(s) in the supplemental semantics of an Utterance.- Parameters:
actor
-suppSemantics
- "suppSemantics(semantics(...), semantics()...)"- Returns:
- Predicate of form "not(know(actor, meaningOf(...)))"
-