HOW DO INTELLIGENT ASSISTANTS UNDERSTAND AND ANSWER QUESTIONS?
Unit 2, Module 2.3
1
Overview of Topics
2
How do you think Google understands and
answers questions?
3
Discussion
Google Query Scavenger Hunt
Ask Google: “Convert 5 Dollars to Euros” or “Convert 5 Miles to Kilometers”
Pick your own conversion problem: ____________________
What does Google return?_____________
Where was famous person born?
Pick your own fact: ____________________
What does Google return?_____________
4
Let’s explore how Google might make sense of these queries.
5
Processing the Query:
6
Tokenizing the Query
Ask Google: “What are the largest cities in Georgia?”
Break the sentence down into words and separate out punctuation.
7
What
are
the
largest
cities
in
Georgia
?
Part of Speech Tagging
Assign a part of speech to each word.
8
What
are
the
largest
cities
in
Georgia
?
WP
VBP
DT
JJS
NNS
IN
NNP
.
WH-pronoun
Verb: present tense
Determiner
Adjective: superlative
Noun: plural
Preposition
Proper noun
Terminator
9
This noun phrase is what the query is about
This prepositional phrase modifies “cities” by specifying a location
This noun is the class of thing we’re asking about
This tells us that we have a “what”-type question.
This adjective modifies “cities” by specifying a size
Parsing the request to determine the meaning of the user’s question
Creating a database search request that reflects the user’s intent
The query generator knows that the “size” of a city most often refers to its population size. It creates the following query:
“Find cities where population size of city is large and location of city is Georgia.”
10
FIND x WHERE� class(x) = “city” AND� population_size(x) is large AND� location(x) = “Georgia”�SORT BY population_size
Google’s Response�What are the largest cities in Georgia?
11
Specialized Google Response �Image results of cities ordered by population sizes
Information captured from a website
Questions people also ask
General list of websites with relevant content based on keywords “largest cities in Georgia”
Google has specialized modules for handling some common types of queries
12
Lesson Recap Activity
Complete the assignment using Google: Google Search Activity
13