61A Lecture 35 Wednesday, December 4 Announcements 2 - - PowerPoint PPT Presentation

61a lecture 35
SMART_READER_LITE
LIVE PREVIEW

61A Lecture 35 Wednesday, December 4 Announcements 2 - - PowerPoint PPT Presentation

61A Lecture 35 Wednesday, December 4 Announcements 2 Announcements Homework 11 due Thursday 12/5 @ 11:59pm. 2 Announcements Homework 11 due Thursday 12/5 @ 11:59pm. No video of lecture on Friday 12/6. 2 Announcements Homework


slide-1
SLIDE 1

61A Lecture 35

Wednesday, December 4

slide-2
SLIDE 2

Announcements

2

slide-3
SLIDE 3

Announcements

  • Homework 11 due Thursday 12/5 @ 11:59pm.

2

slide-4
SLIDE 4

Announcements

  • Homework 11 due Thursday 12/5 @ 11:59pm.
  • No video of lecture on Friday 12/6.

2

slide-5
SLIDE 5

Announcements

  • Homework 11 due Thursday 12/5 @ 11:59pm.
  • No video of lecture on Friday 12/6.

Come to class and take the final survey.

2

slide-6
SLIDE 6

Announcements

  • Homework 11 due Thursday 12/5 @ 11:59pm.
  • No video of lecture on Friday 12/6.

Come to class and take the final survey. There will be a screencast of live lecture (as always).

2

slide-7
SLIDE 7

Announcements

  • Homework 11 due Thursday 12/5 @ 11:59pm.
  • No video of lecture on Friday 12/6.

Come to class and take the final survey. There will be a screencast of live lecture (as always). Screencasts: http://www.youtube.com/view_play_list?p=-XXv-cvA_iCIEwJhyDVdyLMCiimv6Tup

2

slide-8
SLIDE 8

Announcements

  • Homework 11 due Thursday 12/5 @ 11:59pm.
  • No video of lecture on Friday 12/6.

Come to class and take the final survey. There will be a screencast of live lecture (as always). Screencasts: http://www.youtube.com/view_play_list?p=-XXv-cvA_iCIEwJhyDVdyLMCiimv6Tup

  • Homework 12 due Tuesday 12/10 @ 11:59pm.

2

slide-9
SLIDE 9

Announcements

  • Homework 11 due Thursday 12/5 @ 11:59pm.
  • No video of lecture on Friday 12/6.

Come to class and take the final survey. There will be a screencast of live lecture (as always). Screencasts: http://www.youtube.com/view_play_list?p=-XXv-cvA_iCIEwJhyDVdyLMCiimv6Tup

  • Homework 12 due Tuesday 12/10 @ 11:59pm.

All you have to do is vote on your favorite recursive art.

2

slide-10
SLIDE 10

Announcements

  • Homework 11 due Thursday 12/5 @ 11:59pm.
  • No video of lecture on Friday 12/6.

Come to class and take the final survey. There will be a screencast of live lecture (as always). Screencasts: http://www.youtube.com/view_play_list?p=-XXv-cvA_iCIEwJhyDVdyLMCiimv6Tup

  • Homework 12 due Tuesday 12/10 @ 11:59pm.

All you have to do is vote on your favorite recursive art.

  • 29 review sessions next week! Come learn about the topics that interest you the most.

2

slide-11
SLIDE 11

Announcements

  • Homework 11 due Thursday 12/5 @ 11:59pm.
  • No video of lecture on Friday 12/6.

Come to class and take the final survey. There will be a screencast of live lecture (as always). Screencasts: http://www.youtube.com/view_play_list?p=-XXv-cvA_iCIEwJhyDVdyLMCiimv6Tup

  • Homework 12 due Tuesday 12/10 @ 11:59pm.

All you have to do is vote on your favorite recursive art.

  • 29 review sessions next week! Come learn about the topics that interest you the most.

See http://inst.eecs.berkeley.edu/~cs61a/fa13/exams/final.html for the schedule.

2

slide-12
SLIDE 12

Natural Language Processing

slide-13
SLIDE 13

Ambiguity in Natural Language

Unlike programming languages, natural languages are ambiguous.

4

slide-14
SLIDE 14

Ambiguity in Natural Language

Unlike programming languages, natural languages are ambiguous.

4

Syntactic ambiguity:

slide-15
SLIDE 15

Ambiguity in Natural Language

Unlike programming languages, natural languages are ambiguous.

4

Syntactic ambiguity: TEACHER STRIKES IDLE KIDS

slide-16
SLIDE 16

Ambiguity in Natural Language

Unlike programming languages, natural languages are ambiguous.

4

Syntactic ambiguity: TEACHER STRIKES IDLE KIDS HOSPITALS ARE SUED BY 7 FOOT DOCTORS

slide-17
SLIDE 17

Ambiguity in Natural Language

Unlike programming languages, natural languages are ambiguous.

4

Syntactic ambiguity: Semantic ambiguity: TEACHER STRIKES IDLE KIDS HOSPITALS ARE SUED BY 7 FOOT DOCTORS

slide-18
SLIDE 18

Ambiguity in Natural Language

Unlike programming languages, natural languages are ambiguous.

4

Syntactic ambiguity: Semantic ambiguity: IRAQI HEAD SEEKS ARMS TEACHER STRIKES IDLE KIDS HOSPITALS ARE SUED BY 7 FOOT DOCTORS

slide-19
SLIDE 19

Ambiguity in Natural Language

Unlike programming languages, natural languages are ambiguous.

4

Syntactic ambiguity: Semantic ambiguity: IRAQI HEAD SEEKS ARMS TEACHER STRIKES IDLE KIDS HOSPITALS ARE SUED BY 7 FOOT DOCTORS STOLEN PAINTING FOUND BY TREE

slide-20
SLIDE 20

Tasks in Natural Language Processing

5

slide-21
SLIDE 21

Tasks in Natural Language Processing

Research in natural language processing (NLP) focuses on tasks that involve language:

5

slide-22
SLIDE 22

Tasks in Natural Language Processing

Research in natural language processing (NLP) focuses on tasks that involve language: Question answering. "Harriet Boyd Hawes was the first woman to discover and excavate a Minoan settlement on this island." Watson says, "What is Crete?"

5

slide-23
SLIDE 23

Tasks in Natural Language Processing

Research in natural language processing (NLP) focuses on tasks that involve language: Question answering. "Harriet Boyd Hawes was the first woman to discover and excavate a Minoan settlement on this island." Watson says, "What is Crete?" Machine Translation. "Call a spade a spade!" Google Translate says, "Appeler un chat un chat."

5

slide-24
SLIDE 24

Tasks in Natural Language Processing

Research in natural language processing (NLP) focuses on tasks that involve language: Question answering. "Harriet Boyd Hawes was the first woman to discover and excavate a Minoan settlement on this island." Watson says, "What is Crete?" Machine Translation. "Call a spade a spade!" Google Translate says, "Appeler un chat un chat." Semantic Parsing. "When's my birthday?" Siri says, "Your birthday is May 1st."

5

slide-25
SLIDE 25

Tasks in Natural Language Processing

Research in natural language processing (NLP) focuses on tasks that involve language: Question answering. "Harriet Boyd Hawes was the first woman to discover and excavate a Minoan settlement on this island." Watson says, "What is Crete?" Machine Translation. "Call a spade a spade!" Google Translate says, "Appeler un chat un chat." Semantic Parsing. "When's my birthday?" Siri says, "Your birthday is May 1st." Much attention is given to more focused language analysis problems:

5

slide-26
SLIDE 26

Tasks in Natural Language Processing

Research in natural language processing (NLP) focuses on tasks that involve language: Question answering. "Harriet Boyd Hawes was the first woman to discover and excavate a Minoan settlement on this island." Watson says, "What is Crete?" Machine Translation. "Call a spade a spade!" Google Translate says, "Appeler un chat un chat." Semantic Parsing. "When's my birthday?" Siri says, "Your birthday is May 1st." Much attention is given to more focused language analysis problems: Coreference Resolution: Do the phrases "Barack Obama" and "the president" co-refer?

5

slide-27
SLIDE 27

Tasks in Natural Language Processing

Research in natural language processing (NLP) focuses on tasks that involve language: Question answering. "Harriet Boyd Hawes was the first woman to discover and excavate a Minoan settlement on this island." Watson says, "What is Crete?" Machine Translation. "Call a spade a spade!" Google Translate says, "Appeler un chat un chat." Semantic Parsing. "When's my birthday?" Siri says, "Your birthday is May 1st." Much attention is given to more focused language analysis problems: Coreference Resolution: Do the phrases "Barack Obama" and "the president" co-refer? Syntactic Parsing: In "I saw the man with the telescope," who has the telescope?

5

slide-28
SLIDE 28

Tasks in Natural Language Processing

Research in natural language processing (NLP) focuses on tasks that involve language: Question answering. "Harriet Boyd Hawes was the first woman to discover and excavate a Minoan settlement on this island." Watson says, "What is Crete?" Machine Translation. "Call a spade a spade!" Google Translate says, "Appeler un chat un chat." Semantic Parsing. "When's my birthday?" Siri says, "Your birthday is May 1st." Much attention is given to more focused language analysis problems: Coreference Resolution: Do the phrases "Barack Obama" and "the president" co-refer? Syntactic Parsing: In "I saw the man with the telescope," who has the telescope? Word Sense Disambiguation: Does the "bank of the Seine" have an ATM?

5

slide-29
SLIDE 29

Tasks in Natural Language Processing

Research in natural language processing (NLP) focuses on tasks that involve language: Question answering. "Harriet Boyd Hawes was the first woman to discover and excavate a Minoan settlement on this island." Watson says, "What is Crete?" Machine Translation. "Call a spade a spade!" Google Translate says, "Appeler un chat un chat." Semantic Parsing. "When's my birthday?" Siri says, "Your birthday is May 1st." Much attention is given to more focused language analysis problems: Coreference Resolution: Do the phrases "Barack Obama" and "the president" co-refer? Syntactic Parsing: In "I saw the man with the telescope," who has the telescope? Word Sense Disambiguation: Does the "bank of the Seine" have an ATM? Named-Entity Recognition: What names are in "Did van Gogh paint the Bank of the Seine?"

5

slide-30
SLIDE 30

Machine Translation

slide-31
SLIDE 31

Machine Translation

7

slide-32
SLIDE 32

Machine Translation

Target language corpus gives examples of well-formed sentences I will get to it later See you later He will do it

7

slide-33
SLIDE 33

Machine Translation

Parallel corpus gives translation examples Yo lo haré de muy buen grado I will do it gladly Después lo veras You will see later Target language corpus gives examples of well-formed sentences I will get to it later See you later He will do it

7

slide-34
SLIDE 34

Machine Translation

Parallel corpus gives translation examples Yo lo haré de muy buen grado I will do it gladly Después lo veras You will see later Machine translation system: Target language corpus gives examples of well-formed sentences I will get to it later See you later He will do it

7

slide-35
SLIDE 35

Machine Translation

Parallel corpus gives translation examples Yo lo haré de muy buen grado I will do it gladly Después lo veras You will see later Machine translation system: Model of translation Target language corpus gives examples of well-formed sentences I will get to it later See you later He will do it

7

slide-36
SLIDE 36

Machine Translation

I will do it later Target language Parallel corpus gives translation examples Yo lo haré de muy buen grado I will do it gladly Después lo veras You will see later Machine translation system: Model of translation Target language corpus gives examples of well-formed sentences I will get to it later See you later He will do it Yo lo haré después

NOVEL SENTENCE

Source language

7

slide-37
SLIDE 37

Syntactic Agreement in Translation

VB MD VP VP NP S PRP ADV

Yo lo haré de muy buen grado I will do it gladly Después lo veras You will see later

PRP VB MD VP VP NP S PRP ADV

I will do it later Model of translation Yo lo haré después Machine translation system:

8

slide-38
SLIDE 38

Syntactic Agreement in Translation

VB MD VP VP NP S PRP ADV

Yo lo haré de muy buen grado I will do it gladly Después lo veras You will see later

PRP VB MD VP VP NP S PRP ADV

I will do it later Model of translation Yo lo haré después

ADV ADV

Machine translation system:

8

slide-39
SLIDE 39

Syntactic Agreement in Translation

VB MD VP VP NP S PRP ADV

Yo lo haré de muy buen grado I will do it gladly Después lo veras You will see later

PRP VB MD VP VP NP S PRP ADV

I will do it later Model of translation Yo lo haré después

S S ADV ADV

Machine translation system:

8

slide-40
SLIDE 40

Syntactic Agreement in Translation

VB MD VP VP NP S PRP ADV

Yo lo haré de muy buen grado I will do it gladly Después lo veras You will see later

PRP VB MD VP VP NP S PRP ADV

I will do it later Model of translation Yo lo haré después

S S ADV ADV

Machine translation system:

8

slide-41
SLIDE 41

Syntactic Reordering in Translation

9

pair added to the lexicon

slide-42
SLIDE 42

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

slide-43
SLIDE 43

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

pair

NP S NN

slide-44
SLIDE 44

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

pair

NP S NN VP

added

VBD

slide-45
SLIDE 45

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

pair

NP S NN VP

added

VBD

slide-46
SLIDE 46

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

pair

NP S NN

the lexicon

NP DT NN VP

added

VBD

slide-47
SLIDE 47

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

pair

NP S NN

the lexicon

NP DT NN VP

added

VBD

slide-48
SLIDE 48

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

pair

NP S NN

the lexicon

NP DT NN VP

added

VBD

slide-49
SLIDE 49

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

pair

NP S NN

the lexicon

NP DT NN VP

added

VBD

slide-50
SLIDE 50

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

pair

NP S NN

the lexicon

NP DT NN VP

added

VBD

slide-51
SLIDE 51

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

一対 が pair pair

NP S NN

the lexicon

NP DT NN VP

added

VBD

slide-52
SLIDE 52

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

一対 が pair 目録 list pair

NP S NN

the lexicon

NP DT NN VP

added

VBD

slide-53
SLIDE 53

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

一対 が pair 目録 list に to pair

NP S NN

the lexicon

NP DT NN VP

added

VBD

slide-54
SLIDE 54

Syntactic Reordering in Translation

9

pair added to the lexicon

NP PP VP NP S NN VBD TO DT NN

to

PP TO

一対 が pair 目録 list に to 追加 されました add was pair

NP S NN

the lexicon

NP DT NN VP

added

VBD

slide-55
SLIDE 55

Context-Free Grammars

slide-56
SLIDE 56

Grammar Rules

A Context-Free Grammar Models Language Generation

A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-57
SLIDE 57

Grammar Rules

A Context-Free Grammar Models Language Generation

S A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-58
SLIDE 58

S -> NP VP Grammar Rules

A Context-Free Grammar Models Language Generation

S A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-59
SLIDE 59

S -> NP VP Grammar Rules

A Context-Free Grammar Models Language Generation

S NP VP A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-60
SLIDE 60

S -> NP VP NP -> PRP Grammar Rules

A Context-Free Grammar Models Language Generation

S NP VP A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-61
SLIDE 61

S -> NP VP NP -> PRP Grammar Rules

A Context-Free Grammar Models Language Generation

S NP VP PRP A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-62
SLIDE 62

S -> NP VP NP -> PRP Grammar Rules Lexicon

A Context-Free Grammar Models Language Generation

S NP VP PRP A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-63
SLIDE 63

S -> NP VP NP -> PRP Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-64
SLIDE 64

S -> NP VP NP -> PRP Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP I A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-65
SLIDE 65

S -> NP VP NP -> PRP VP -> VB Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP I A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-66
SLIDE 66

S -> NP VP NP -> PRP VP -> VB VP -> VB NP Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP I A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-67
SLIDE 67

S -> NP VP NP -> PRP VP -> VB VP -> VB NP Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP VB NP I A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-68
SLIDE 68

S -> NP VP NP -> PRP VP -> VB VP -> VB NP VB -> know VB -> help Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP VB NP I A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-69
SLIDE 69

S -> NP VP NP -> PRP VP -> VB VP -> VB NP VB -> know VB -> help Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP VB NP I know A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-70
SLIDE 70

S -> NP VP NP -> PRP VP -> VB VP -> VB NP VB -> know VB -> help Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP VB NP I know PRP A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-71
SLIDE 71

S -> NP VP NP -> PRP VP -> VB VP -> VB NP PRP -> you VB -> know VB -> help Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP VB NP I know PRP A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-72
SLIDE 72

S -> NP VP NP -> PRP VP -> VB VP -> VB NP PRP -> you VB -> know VB -> help Grammar Rules Lexicon PRP -> I

A Context-Free Grammar Models Language Generation

S NP VP PRP VB NP I know PRP you A grammar contains rules that hierarchically generate word sequences using syntactic tags.

11

slide-73
SLIDE 73

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VB -> know VB -> help Grammar Rules Lexicon S NP VP PRP I

12

slide-74
SLIDE 74

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VB -> know VB -> help Grammar Rules Lexicon S NP VP PRP I

12

slide-75
SLIDE 75

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help Grammar Rules Lexicon S NP VP PRP I

12

slide-76
SLIDE 76

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help Grammar Rules Lexicon S NP VP PRP I

12

slide-77
SLIDE 77

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help Grammar Rules Lexicon S NP VP PRP I 0.2 0.7 0.1

12

slide-78
SLIDE 78

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help Grammar Rules Lexicon S NP VP PRP I MD VP 0.2 0.7 0.1

12

slide-79
SLIDE 79

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help MD -> can Grammar Rules Lexicon S NP VP PRP I MD VP 0.2 0.7 0.1

12

slide-80
SLIDE 80

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help MD -> can Grammar Rules Lexicon S NP VP PRP I can MD VP 0.2 0.7 0.1

12

slide-81
SLIDE 81

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help MD -> can Grammar Rules Lexicon S NP VP PRP I can MD VP 0.2 0.7 0.1

12

slide-82
SLIDE 82

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help MD -> can Grammar Rules Lexicon S NP VP PRP I can MD VP VB NP help 0.2 0.7 0.1

12

slide-83
SLIDE 83

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help MD -> can Grammar Rules Lexicon S NP VP PRP I can MD VP VB NP help PRP 0.2 0.7 0.1

12

slide-84
SLIDE 84

Probabilistic Context-Free Grammars

S -> NP VP NP -> PRP PRP -> I VP -> VB VP -> VB NP PRP -> you VP -> MD VP VB -> know VB -> help MD -> can Grammar Rules Lexicon S NP VP PRP I can MD VP VB NP help PRP you 0.2 0.7 0.1

12

slide-85
SLIDE 85

Learning Probabilistic Context-Free Grammars

(Demo)

slide-86
SLIDE 86

Parsing with Probabilistic Context-Free Grammars

slide-87
SLIDE 87

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence.

15

slide-88
SLIDE 88

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. time flies like an arrow

15

slide-89
SLIDE 89

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. time flies like an arrow

15

slide-90
SLIDE 90

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. time flies like an arrow

15

slide-91
SLIDE 91

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas time flies like an arrow

15

slide-92
SLIDE 92

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas time flies like an arrow

15

slide-93
SLIDE 93

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas time flies like an arrow

15

slide-94
SLIDE 94

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

15

slide-95
SLIDE 95

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

15

slide-96
SLIDE 96

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

15

slide-97
SLIDE 97

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

S -> NP VP

15

slide-98
SLIDE 98

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

S -> NP VP NP -> NN

15

slide-99
SLIDE 99

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

NN -> time S -> NP VP NP -> NN

15

slide-100
SLIDE 100

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

NN -> time S -> NP VP NP -> NN VP -> VBZ PP

15

slide-101
SLIDE 101

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

NN -> time VBZ -> flies S -> NP VP NP -> NN VP -> VBZ PP

15

slide-102
SLIDE 102

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

NN -> time VBZ -> flies S -> NP VP NP -> NN VP -> VBZ PP PP -> IN NP

15

slide-103
SLIDE 103

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

NN -> time VBZ -> flies IN -> like S -> NP VP NP -> NN VP -> VBZ PP PP -> IN NP

15

slide-104
SLIDE 104

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

NN -> time VBZ -> flies IN -> like S -> NP VP NP -> NN VP -> VBZ PP PP -> IN NP NP -> DT NN

15

slide-105
SLIDE 105

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

NN -> time VBZ -> flies IN -> like DT -> an S -> NP VP NP -> NN VP -> VBZ PP PP -> IN NP NP -> DT NN

15

slide-106
SLIDE 106

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

NN -> time VBZ -> flies IN -> like DT -> an NN -> arrow S -> NP VP NP -> NN VP -> VBZ PP PP -> IN NP NP -> DT NN

15

slide-107
SLIDE 107

Parsing is Maximizing Likelihood

A probabilistic context-free grammar can be used to select a parse for a sentence. fruit flies like bananas Parse by finding the tree with the highest total probability that yields the sentence. time flies like an arrow

1 2 3 4 5

time flies like an arrow Algorithm: Try every rule over every span. Match the lexicon to each word.

NN -> time VBZ -> flies IN -> like DT -> an NN -> arrow S -> NP VP NP -> NN VP -> VBZ PP PP -> IN NP NP -> DT NN

(Demo)

15

slide-108
SLIDE 108

Tree Transformations

slide-109
SLIDE 109

Reordering Modal Arguments

17

slide-110
SLIDE 110

Reordering Modal Arguments

English

17

slide-111
SLIDE 111

Reordering Modal Arguments

English Yoda-English

17

slide-112
SLIDE 112

Reordering Modal Arguments

English Yoda-English Help you, I can! Yes! Mm!

17

slide-113
SLIDE 113

Reordering Modal Arguments

English Yoda-English Help you, I can! Yes! Mm! When 900 years old you reach, look as good, you will not. Hm.

17

slide-114
SLIDE 114

Reordering Modal Arguments

English Yoda-English Help you, I can! Yes! Mm! When 900 years old you reach, look as good, you will not. Hm. S NP VP PRP I can MD VP VB PRP help you

17

slide-115
SLIDE 115

Reordering Modal Arguments

English Yoda-English Help you, I can! Yes! Mm! When 900 years old you reach, look as good, you will not. Hm. S NP VP PRP I can MD VP VB PRP help you

17

slide-116
SLIDE 116

Reordering Modal Arguments

English Yoda-English Help you, I can! Yes! Mm! When 900 years old you reach, look as good, you will not. Hm. S NP VP PRP I can MD VB PRP help you VP

17

slide-117
SLIDE 117

Reordering Modal Arguments

English Yoda-English Help you, I can! Yes! Mm! When 900 years old you reach, look as good, you will not. Hm. S NP VP PRP I can MD VB PRP help you VP . ,

17

slide-118
SLIDE 118

Reordering Modal Arguments

English Yoda-English Help you, I can! Yes! Mm! When 900 years old you reach, look as good, you will not. Hm. S NP VP PRP I can MD VB PRP help you VP . , (Demo)

17