Skip to content

Instantly share code, notes, and snippets.

@Devetec
Created January 21, 2021 16:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Devetec/6a78b44eb877f103f206e3bdb24a0ea2 to your computer and use it in GitHub Desktop.
Save Devetec/6a78b44eb877f103f206e3bdb24a0ea2 to your computer and use it in GitHub Desktop.
This is a program that can answer questions about a given text.
Text:
/Page 1/
[An illustration of a standing bear]
My hat is gone. I want it back.
/Page 2/
[An illustration of a bear and a fox]
Have you seen my hat? *No, I haven't seen your hat.* OK. Thank you anyway.
/Page 3/
[An illustration of a bear and a frog]
Have you seen my hat? *No. I have not seen any hats around here.* OK. Thank you anyway.
/Page 4/
[An illustration of a bear and a rabbit wearing a hat]
Have you seen my hat? *No. Why are you asking me. I haven't seen it. I haven't seen any hats anywhere. I would not steal a hat. Don't ask me any more questions.* OK. Thank you anyway.
/Page 5/
[An illustration of a bear and a turtle climbing a rock]
Have you seen my hat? *I haven't seen anything all day. I have been trying to climb this rock.* Would you like me to lift you on top of it?
*Yes, please.*
/Page 6/
[An illustration of a bear and a snake]
Have you seen my hat? *I saw a hat once. It was blue and round.* My hat doesn't look like that. Thank you anyway.
/Page 7/
[An illustration of a bear and an armadillo]
Have you seen my hat? *What is a hat?* Thank you anyway.
/Page 8/
[An illustration of a bear laying down]
Nobody has seen my hat. What if I never see it again? What if nobody ever finds it? My poor hat. I miss it so much.
/Page 9/
[An illustration of a bear laying down and a moose standing over them]
*What's the matter?* I have lost my hat. And nobody has seen it. *What does your hat look like?* It is red and pointy and...
/Page 10/
[A completely red illustration of a bear sitting down]
I HAVE SEEN MY HAT.
/Page 11/
[An illustration of a bear running past all the animals]
/Page 12/
[An illustration of a bear pointing at a hat-wearing rabbit]
YOU. YOU STOLE MY HAT.
/Page 13/
[An illustration of them looking at each other]
/Page 14/
[An illustration of a bear wearing a hat]
I love my hat.
/Page 15/
[An illustration of a hat-wearing bear and a squirrel]
*Excuse me, have you seen a rabbit wearing a hat?* No. Why are you asking me. I haven't seen him. I haven't seen any rabbits anywhere. I would not eat a rabbit. Don't ask me any more questions. *OK. Thank you anyway.*
/Page 16/
[An illustration of a hat-wearing bear]
Question: What happened to the rabbit?
Answer: The bear caught him and ate him.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment