Exercise¶
Stories enable common sense reasoning.
Now how we imagine things from background knowledge and connected the 2 sentences with a narrative so it still made sense to us.
Story understanding for AI agents¶
AI agents may also undergo such situations, where 2 sentences are seemingly unrelated, and they are expected to make sense.
Visiting a Coffee house¶
When Ashok asks David what he would do going to a coffee house, David was able to answer a series of expected events
Scripts¶
A causally coherent set of events
Parts of a Script¶
- Customer is hungry and he has some money, etc.
- Customer less money, owner more money, customer not happy etc
- propts: Tables, chairs
- Roles: Owner, customer, etc
- Track: Coffee house, dining house, etc
- Scene: Entering restaurant, ordering food, etc.
Script is a big molecule of knowledge representations.
Constructing a Script¶
Using a script to generate Expectations¶
Scripts also allow to make sense of world, but also what to expect and what not to expect?
What to do when expectations not met? Theory of surprise?
2 sides of surprise
- Things do not happen the way we expected to happen
- Things happen the way we did not expect to happen
Imagine horror movie.
Tracks¶
This is also a classification problem. Script is giving to robot a plan in compiled form so faster execution. Raw planning could have taken lot of time.
Cognitive Connection¶
- Brain is a prediction machine
- We generate expectations and act on them
- When scripts fail, different emotions: funny, surprise, anger, etc
- Need not b physical, but also conceptual - economy, how computer works etc.