Problem 1: Beverage Preparation
Context: A man and a woman discuss ingredients for a juice recipe.
Woman: Let's make some fruit juice. Do you like apples?
Man: Yes.
Woman: We also have tangerines.
Man: Okay, please put both in. Do we have any bananas?
Woman: Ah, no bananas today.
Query: Which fruits are used?
# Lexical Data Structure
vocabulary_set = {
"fruit": {"pos": "noun", "def": "produce"},
"juice": {"pos": "noun", "def": "beverage"},
"apple": {"pos": "noun", "def": "red fruit"},
"tangerine": {"pos": "noun", "def": "citrus"},
"banana": {"pos": "noun", "def": "yellow curved fruit"},
"to_insert": {"pos": "verb", "def": "add ingredient"}
}
Problem 2: Host Offering Refreshments
Context: A host offers a drink to a guest.
Host: Welcome. Please come in. Would you like something to drink?
Guest: Then, I would like coffee or tea.
Host: I have tea that a friend gave me yesterday. It is delicious.
Guest: That sounds nice. I want to drink that.
Host: Would you prefer it hot or cold?
Guest: The cold one, please.
Query: What will the man drink?
[
{"lexeme": "coffee", "type": "noun"},
{"lexeme": "tea", "type": "noun"},
{"lexeme": "receive", "type": "verb"},
{"lexeme": "delicious", "type": "adjective"},
{"lexeme": "hot", "type": "adjective"},
{"lexeme": "cold", "type": "adjective"}
]
Problem 3: Locating a Child in a Park
Context: Two adults converse while children play nearby.
Man: Hello. There are many children today.
Woman: Yes, they are reading books or drawing pictures. My child is drawing a picture too.
Man: Is it the boy near the pond?
Woman: He is drawing under the tree.
Man: Ah, he is cute.
Query: Which child belongs to the woman?
struct {
const char* term;
const char* pos;
} vocab[] = {
{"child", "noun"},
{"pond", "noun"},
{"vicinity", "noun"},
{"tree", "noun"},
{"beneath", "noun"},
{"cute", "adjective"}
};
Problem 4: Scheduling a Meeting
Context: Two students arrange a time and place to meet.
Student A: Shall we go see a movie today?
Student B: That sounds good.
Student A: Then, let's meet in front of the gate at 2:00.
Student B: Ah, but I have class until 2:30.
Student A: I see. Then, I will be waiting in the cafeteria, so please come there.
Student B: Understood. My class is starting, so I am going to the classroom. See you later.
Query: Where will the two meet?
vocabulary = {
school: "institution",
movie: "film",
gate: "entrance",
class_period: "lecture",
cafeteria: "canteen",
to_wait: "wait action"
}
Problem 5: Academic Progress Review
Context: An instructor and student discuss lesson planning.
Teacher: Today's class is over. Let's start from page 20 next week.
Student: Teacher, pages 18 and 19 are not done yet.
Teacher: Since 18 and 19 are practice problems, please study them by yourself.
Student: Yes. Um, page 17 was very difficult, so please teach it again next week.
Teacher: Is that so? Understood. Then, we will do page 17, and after that, we will do page 20.
Query: Which page will be studied first next week?
type Lexeme struct {
Key string
Val string
}
var dict = []Lexeme{
{"teacher", "noun"},
{"next_week", "time"},
{"page_number", "identifier"},
{"practice_problem", "noun"},
{"difficult", "adjective"},
{"to_teach", "verb"}
}
Problem 6: Facility Operating Hours
Context: An announcement regarding library accessibility.
Speaker: Everyone, this library has newspapers, magazines, and various Japanese texts.
Speaker: The library opens at 9:00 in the morning and closes at 10:00 at night.
Speaker: However, please be careful as it closes at 6:00 PM on Saturdays and Sundays.
Speaker: Everyone, please borrow many books.
Query: On Saturday, what are the library's opening hours?
Map<String, String> glossary = new HashMap<>();
glossary.put("newspaper", "periodical");
glossary.put("library", "repository");
glossary.put("to_open", "unlock");
glossary.put("to_close", "lock");
glossary.put("saturday", "weekend");
glossary.put("caution", "warning");