arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

3.5. Quiz

Quiz 3: Contextual Understanding

hashtag
Overview

Your goal is to create a chatbot that talks about movies. Here is a sample dialogue:

Your chatbot aims to collect user information by asking the following:

  • The latest movie that the user watched (#3-4).

  • A contextualized question regarding the latest movie (#5-6).

  • A question regarding the genre of the latest movie (#7-10).

Your chatbot should give an appropriate response to every user response. For this assignment, you must use all of the following:

  • An covering common movie genres and a branch of movies that you target,

  • At least one ,

  • At least one (can be used inside a macro).

hashtag
Task 1

  1. Create a Python file under the package.

  2. Create a JSON file under the directory.

  3. Update them to design a dialogue flow for the chatbot.

hashtag
Task 2

Create a PDF file quiz3.pdf that describes the following:

  • Sample dialogues that your chatbot can conduct.

  • Explanations of how the ontology, macro(s), and regular expression(s) are used for contextual understanding in your chatbot.

hashtag
Submission

  1. Commit and push quiz3.py to your GitHub repository.

  2. Submit quiz3.pdf to Canvas.

S: Hello, may I have your name?
U: Call me Jinho.
S: It's nice to meet you, Jinho. What was the latest movie you watched?
U: That'd be Spider Man No Way Home.
S: I love Marvel movies. Who is your favorite avenger?
U: Captain America.
S: Captain is my man. So I guess you are a big fan of Sci-Fi movies?
U: Yes, I am.
S: Excellent. Why do you like them so much?
U: They make me feel like living in the future.
S: I'm with you. Thanks for sharing.
ontology
macro
regular expression
quiz3.pyarrow-up-right
quizarrow-up-right
ontology_quiz3.jsonarrow-up-right
resourcesarrow-up-right