Context
One of the most important shortcomings of ELIZA is a total lack of memory. ELIZA only remembers the previous statement. You can’t talk about your father and then say, He was a good man. ELIZA will have no idea whom you are talking about. ELIZA has no concept of context beyond the previous sentence.
What is context? In the course of a conversation, we often shorten nouns into pronouns. We might say, I like my dog, and in the next sentence say, He is well behaved. Who does the he refer to? We know it is the dog, but how does the computer know? We are going to add some ability to reason from context to our program.
We are going to create a storage object we will call the context memory. In that object, we will be able to keep up with ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access