1 of 13

HOW DO INTELLIGENT ASSISTANTS UNDERSTAND AND ANSWER QUESTIONS?

Unit 2, Module 2.3

1

2 of 13

Overview of Topics

  • Question Answering
  • Representation for the questions - Berkeley Neural Parser
  • Parts of speech: nouns, verbs, prepositions
  • Syntactic relationships
  • How BNP works - Not a purely syntactic parser it uses meaning of words and statistics
  • Semantic parsing
  • Sources of knowledge
  • Limitation: Systems are a collection of techniques

2

3 of 13

How do you think Google understands and

answers questions?

3

Discussion

4 of 13

Google Query Scavenger Hunt

  1. Units conversion

Ask Google: “Convert 5 Dollars to Euros” or “Convert 5 Miles to Kilometers”

Pick your own conversion problem: ____________________

What does Google return?_____________

  1. Facts about famous people or places

Where was famous person born?

Pick your own fact: ____________________

What does Google return?_____________

  1. Look up restaurant hours
  2. Look up weather
  3. Look up airline flights, bus, or train schedules
  4. Word definitions: define “craven”
  5. Movie times

4

5 of 13

Let’s explore how Google might make sense of these queries.

5

6 of 13

Processing the Query:

  1. Tokenizing - Breaking the sentence into words and punctuation
  2. Part of speech tagging
  3. Parsing the request to determine the meaning of the user’s question
  4. Creating a search request that reflects the user’s intent

6

7 of 13

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

?

8 of 13

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 of 13

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

10 of 13

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

11 of 13

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”

12 of 13

Google has specialized modules for handling some common types of queries

  • Unit conversions (measurements, currencies, distance, time)
  • Weather
  • Airline, train, and bus schedules
  • Restaurant hours, locations, phone numbers, websites
  • Movie showtimes and locations
  • Biographical information about famous people

12

13 of 13

Lesson Recap Activity

Complete the assignment using Google: Google Search Activity

13