SlideShare a Scribd company logo
Natural Language Processing
Emory University
Jinho D. Choi
Tree-Adjoining
Grammar
Mildly Context-Sensitive Grammar
• Why another grammar?
- Context-free grammar cannot capture all linguistic phenomena.
- Context-sensitive grammar takes exponential time for parsing.
• Mildly context-sensitive grammar
- Can capture all linguistic phenomena in CFG and more.
- Can be parsed in polynomial time.
- Grows linearly as the string length grows.
• Formalisms
- Tree-adjoining grammars (TAG).
- Combinatory categorial grammars (CCG).
2
Tree-Adjoining Grammars
• Tree generating system
- What are the elementary objects of CFG?
- What are the elementary objects of TAG?
3
S, NP, VP, N, V, D,
I, bought, a, car
buy a car
ND
V
N
NP
VP
NP VP
will
V
S
buy
V NP1↓
VPNP0↓
S
car
ND↓
NP
a
D
VP*
VP
will
V
N
NP
← Strings ↑ Trees
Tree-Adjoining Grammars
• G = (N, Σ, S, I, A)
- N : a finite set of non-terminals.
- Σ : a finite set of terminals.
- S : a start symbol representing the whole sentence, where S ∈ N.
- I : a finite set of initial trees.
- A : a finite set of auxiliary trees.
4
Same as CFG
No production rules?
Substitution & Adjunction
Elementary trees
Elementary Tree
• Elementary trees (initial trees ∪ auxiliary trees)
- Interior nodes are labeled by non-terminals.
- Nodes on the frontier are labeled by terminals or non-terminals.
- Non-terminal nodes on the frontier are marked for substitution (↓).
• The foot node in an auxiliary tree is marked for adjunction (*).
• The foot node must have the same label as the root node.
5
VP*
VP
will
V
buy
V NP1↓
VPNP0↓
S
car
ND↓
NP
a
D
N
NP
Initial trees Auxiliary tree
Derivation
• Substitution
- Substitute X↓ with a tree whose root node is labeled by X.
- Only trees derived from initial trees can be substituted.
6
buy
V NP1↓
VPNP0↓
S
car
ND↓
NP
a
DN
NP
VP*
VP
will
V
car
ND
NP
a
Which NP?
car
ND
NP
a
V
VP
S
buy
N
NP
Derivation
• Adjunction
- Adjoin X* with a tree containing a non-substitution node labeled by X.
- Any adjunction on X↓ is not allowed.
7
car
ND
NP
a
V
VP
S
buy
N
NP VP*
VP
will
VVP
S
N
NP
N VP*
NP VP
will
V
S
car
ND
NP
a
V
VP
buy buy a car
ND
V
N
NP
VP
NP VP
will
V
S
Derivation Tree
• Derivation Tree
- Derived tree: a tree composed by two other trees.
- A tree showing how a derived tree was constructed.
8
buy
V NP1↓
VPNP0↓
S
αbuy
car
ND↓
NP
αcar
N
NP
αJohn
a
D
αa
VP*
VP
will
V
αwill
12
2.21
What kind of tree is this?
Lexicalization
• Lexicalized grammar
- A finite set of structures each associated with a lexical item (anchor).
- Operations composing the structures.
9
Design elementary trees using only substitutions
bought a car
ND
V
N
NP
VP
NP VP
almost
AP
S
A
by taking

1.The leftmost lexical item
2.The rightmost lexical item
3.The head lexical item


as the anchor of each phrase.
Lexicalization with Substitution
10
VP↓NP↓
S
N
VP↓
VP
almost
AP
A
bought
V NP↓
VP
a
N↓D
NP
car
N
Leftmost
lexical item
N
NP
almost
AP
A
bought
V
a
D
car
ND↓
V↓ NP
VP
NP↓ VP
AP↓
S
Rightmost
lexical item
bought
V NP↓
VP
NP↓ VP
AP↓
S
N
NP
almost
AP
A
car
ND↓
NP
a
D
Head
lexical item
Which gives the most meaningful trees?
Is this ideal?
Lexicalization with Adjunction
11
John bought a car John almost bought a car John bought a car too
bought
V NP↓
VP
S
NP↓
bought
V NP↓
VP
NP↓ VP
AP↓
S
bought
V NP↓
VP
NP↓
S
VP
AP↓
What should be included in the domain of locality for “bought”?
VP*
VP
A
AP
almost
AP
VP
A
VP*
toobought
V NP↓
VP
S
NP↓
Domain of Locality
• CFG vs TAG
- CFG, the domain of locality is constrained to direct children.
- TAG, the domain of locality can be extended much more.
• Reading presentation
- “Domain of Locality”,Aravind Joshi, 2004.
- Presented by Kate Silverstein.
• Next week’s readings
- “Synchronous Tree Adjoining Grammars”.
- Shieber & Schabes, 1990.
12
Exercises
• Wh-question
- What did John buy for Mary
• Relative clause
- John bought a car which Mary wanted
• Light-verb construction
- John made a bid for the car
• Verb-particle construction
- Mary threw the car away
13
Wh-Question
14
V
NP VP
S
S
V
buy
NP
!
PP
P NP
for
N
Mary
N
Johndid
NP
S
N
What
“What did John buy for Mary”
V
NP↓ VP
S
S
NP↓
buy
NP
!
PP↓
NP
N
John
PP
P NP↓
for
S
V S*
did
NP
N
Wh
NP
N
Mary
Relative Clause
15
“John bought a car which Mary wanted”
a
D
bought
V NP↓
VP
S
NP↓
NP
N
John car
ND↓
NP NP
N
Mary NP↓ S
S
NP
NP*
NP↓ VP
V NP
!wanted
NP
N
which
NP S
S
NP
NP VP
V NP
!wanted
N
Mary
N
whicha
ND
NP
car
VP
V
bought
NP
John
N
S
Could it be adjoined earlier?
Light-Verb Construction
16
“John made a bid for the car”
made
V NP
VP
NP↓
S
VP
PP↓
D↓ N
bid
NP
N
John
PP
P NP↓
for car
ND↓
NP
a
D
the
D
made
V NP
VP
NP
S
VP
PP
D N
bid
P NP
for car
ND
theaJohn
N
Verb-Particle Construction
17
“Mary threw the car away”
threw
V NP↓
VP
S
NP↓
P
away
NP
N
Mary
the
D
car
ND↓
NP
threw
V NP
VP
S
NP
P
awayMary the car
N
ND

More Related Content

What's hot

Introduction to natural language processing, history and origin
Introduction to natural language processing, history and originIntroduction to natural language processing, history and origin
Introduction to natural language processing, history and origin
Shubhankar Mohan
 
NLP using transformers
NLP using transformers NLP using transformers
NLP using transformers
Arvind Devaraj
 
Deadlock dbms
Deadlock dbmsDeadlock dbms
Deadlock dbms
Vardhil Patel
 
Dependency Parsing
Dependency ParsingDependency Parsing
Dependency Parsing
Jinho Choi
 
Machine learning for Music
Machine learning for MusicMachine learning for Music
Machine learning for Music
Petko Nikolov
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
AniketKandara1
 
Word Sense Disambiguation and Induction
Word Sense Disambiguation and InductionWord Sense Disambiguation and Induction
Word Sense Disambiguation and Induction
Leon Derczynski
 
Formal Grammars
Formal GrammarsFormal Grammars
Formal Grammars
Eelco Visser
 
Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
NAGUR SHAREEF SHAIK
 
DATA STRUCTURE
DATA STRUCTUREDATA STRUCTURE
DATA STRUCTURE
RobinRohit2
 
Asymptotic Notation and Complexity
Asymptotic Notation and ComplexityAsymptotic Notation and Complexity
Asymptotic Notation and Complexity
Rajandeep Gill
 
5. phase of nlp
5. phase of nlp5. phase of nlp
5. phase of nlp
MdFazleRabbi18
 
Kruskal’s algorithm
Kruskal’s algorithmKruskal’s algorithm
Kruskal’s algorithm
Abdul Moiz Lakhani
 
Stressen's matrix multiplication
Stressen's matrix multiplicationStressen's matrix multiplication
Stressen's matrix multiplicationKumar
 
Radix and Merge Sort
Radix and Merge SortRadix and Merge Sort
Radix and Merge Sort
Gelo Maribbay
 
Natural Language Processing: Parsing
Natural Language Processing: ParsingNatural Language Processing: Parsing
Natural Language Processing: Parsing
Rushdi Shams
 
neural network
neural networkneural network
neural network
STUDENT
 
Imitation Learning for Autonomous Driving in TORCS
Imitation Learning for Autonomous Driving in TORCSImitation Learning for Autonomous Driving in TORCS
Imitation Learning for Autonomous Driving in TORCS
Preferred Networks
 
4 informed-search
4 informed-search4 informed-search
4 informed-search
Mhd Sb
 

What's hot (20)

Introduction to natural language processing, history and origin
Introduction to natural language processing, history and originIntroduction to natural language processing, history and origin
Introduction to natural language processing, history and origin
 
NLP using transformers
NLP using transformers NLP using transformers
NLP using transformers
 
Deadlock dbms
Deadlock dbmsDeadlock dbms
Deadlock dbms
 
Dependency Parsing
Dependency ParsingDependency Parsing
Dependency Parsing
 
Machine learning for Music
Machine learning for MusicMachine learning for Music
Machine learning for Music
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Word Sense Disambiguation and Induction
Word Sense Disambiguation and InductionWord Sense Disambiguation and Induction
Word Sense Disambiguation and Induction
 
Formal Grammars
Formal GrammarsFormal Grammars
Formal Grammars
 
Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
 
DATA STRUCTURE
DATA STRUCTUREDATA STRUCTURE
DATA STRUCTURE
 
Asymptotic Notation and Complexity
Asymptotic Notation and ComplexityAsymptotic Notation and Complexity
Asymptotic Notation and Complexity
 
5. phase of nlp
5. phase of nlp5. phase of nlp
5. phase of nlp
 
Kruskal’s algorithm
Kruskal’s algorithmKruskal’s algorithm
Kruskal’s algorithm
 
Stressen's matrix multiplication
Stressen's matrix multiplicationStressen's matrix multiplication
Stressen's matrix multiplication
 
Radix and Merge Sort
Radix and Merge SortRadix and Merge Sort
Radix and Merge Sort
 
Natural Language Processing: Parsing
Natural Language Processing: ParsingNatural Language Processing: Parsing
Natural Language Processing: Parsing
 
neural network
neural networkneural network
neural network
 
Imitation Learning for Autonomous Driving in TORCS
Imitation Learning for Autonomous Driving in TORCSImitation Learning for Autonomous Driving in TORCS
Imitation Learning for Autonomous Driving in TORCS
 
PPT steganography
PPT steganographyPPT steganography
PPT steganography
 
4 informed-search
4 informed-search4 informed-search
4 informed-search
 

More from Jinho Choi

Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...
Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...
Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...
Jinho Choi
 
Analysis of Hierarchical Multi-Content Text Classification Model on B-SHARP D...
Analysis of Hierarchical Multi-Content Text Classification Model on B-SHARP D...Analysis of Hierarchical Multi-Content Text Classification Model on B-SHARP D...
Analysis of Hierarchical Multi-Content Text Classification Model on B-SHARP D...
Jinho Choi
 
Competence-Level Prediction and Resume & Job Description Matching Using Conte...
Competence-Level Prediction and Resume & Job Description Matching Using Conte...Competence-Level Prediction and Resume & Job Description Matching Using Conte...
Competence-Level Prediction and Resume & Job Description Matching Using Conte...
Jinho Choi
 
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
Jinho Choi
 
The Myth of Higher-Order Inference in Coreference Resolution
The Myth of Higher-Order Inference in Coreference ResolutionThe Myth of Higher-Order Inference in Coreference Resolution
The Myth of Higher-Order Inference in Coreference Resolution
Jinho Choi
 
Noise Pollution in Hospital Readmission Prediction: Long Document Classificat...
Noise Pollution in Hospital Readmission Prediction: Long Document Classificat...Noise Pollution in Hospital Readmission Prediction: Long Document Classificat...
Noise Pollution in Hospital Readmission Prediction: Long Document Classificat...
Jinho Choi
 
Abstract Meaning Representation
Abstract Meaning RepresentationAbstract Meaning Representation
Abstract Meaning Representation
Jinho Choi
 
Semantic Role Labeling
Semantic Role LabelingSemantic Role Labeling
Semantic Role Labeling
Jinho Choi
 
CKY Parsing
CKY ParsingCKY Parsing
CKY Parsing
Jinho Choi
 
CS329 - WordNet Similarities
CS329 - WordNet SimilaritiesCS329 - WordNet Similarities
CS329 - WordNet Similarities
Jinho Choi
 
CS329 - Lexical Relations
CS329 - Lexical RelationsCS329 - Lexical Relations
CS329 - Lexical Relations
Jinho Choi
 
Automatic Knowledge Base Expansion for Dialogue Management
Automatic Knowledge Base Expansion for Dialogue ManagementAutomatic Knowledge Base Expansion for Dialogue Management
Automatic Knowledge Base Expansion for Dialogue Management
Jinho Choi
 
Attention is All You Need for AMR Parsing
Attention is All You Need for AMR ParsingAttention is All You Need for AMR Parsing
Attention is All You Need for AMR Parsing
Jinho Choi
 
Graph-to-Text Generation and its Applications to Dialogue
Graph-to-Text Generation and its Applications to DialogueGraph-to-Text Generation and its Applications to Dialogue
Graph-to-Text Generation and its Applications to Dialogue
Jinho Choi
 
Real-time Coreference Resolution for Dialogue Understanding
Real-time Coreference Resolution for Dialogue UnderstandingReal-time Coreference Resolution for Dialogue Understanding
Real-time Coreference Resolution for Dialogue Understanding
Jinho Choi
 
Topological Sort
Topological SortTopological Sort
Topological Sort
Jinho Choi
 
Tries - Put
Tries - PutTries - Put
Tries - Put
Jinho Choi
 
Multi-modal Embedding Learning for Early Detection of Alzheimer's Disease
Multi-modal Embedding Learning for Early Detection of Alzheimer's DiseaseMulti-modal Embedding Learning for Early Detection of Alzheimer's Disease
Multi-modal Embedding Learning for Early Detection of Alzheimer's Disease
Jinho Choi
 
Building Widely-Interpretable Semantic Networks for Dialogue Contexts
Building Widely-Interpretable Semantic Networks for Dialogue ContextsBuilding Widely-Interpretable Semantic Networks for Dialogue Contexts
Building Widely-Interpretable Semantic Networks for Dialogue Contexts
Jinho Choi
 
How to make Emora talk about Sports Intelligently
How to make Emora talk about Sports IntelligentlyHow to make Emora talk about Sports Intelligently
How to make Emora talk about Sports Intelligently
Jinho Choi
 

More from Jinho Choi (20)

Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...
Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...
Adaptation of Multilingual Transformer Encoder for Robust Enhanced Universal ...
 
Analysis of Hierarchical Multi-Content Text Classification Model on B-SHARP D...
Analysis of Hierarchical Multi-Content Text Classification Model on B-SHARP D...Analysis of Hierarchical Multi-Content Text Classification Model on B-SHARP D...
Analysis of Hierarchical Multi-Content Text Classification Model on B-SHARP D...
 
Competence-Level Prediction and Resume & Job Description Matching Using Conte...
Competence-Level Prediction and Resume & Job Description Matching Using Conte...Competence-Level Prediction and Resume & Job Description Matching Using Conte...
Competence-Level Prediction and Resume & Job Description Matching Using Conte...
 
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
Transformers to Learn Hierarchical Contexts in Multiparty Dialogue for Span-b...
 
The Myth of Higher-Order Inference in Coreference Resolution
The Myth of Higher-Order Inference in Coreference ResolutionThe Myth of Higher-Order Inference in Coreference Resolution
The Myth of Higher-Order Inference in Coreference Resolution
 
Noise Pollution in Hospital Readmission Prediction: Long Document Classificat...
Noise Pollution in Hospital Readmission Prediction: Long Document Classificat...Noise Pollution in Hospital Readmission Prediction: Long Document Classificat...
Noise Pollution in Hospital Readmission Prediction: Long Document Classificat...
 
Abstract Meaning Representation
Abstract Meaning RepresentationAbstract Meaning Representation
Abstract Meaning Representation
 
Semantic Role Labeling
Semantic Role LabelingSemantic Role Labeling
Semantic Role Labeling
 
CKY Parsing
CKY ParsingCKY Parsing
CKY Parsing
 
CS329 - WordNet Similarities
CS329 - WordNet SimilaritiesCS329 - WordNet Similarities
CS329 - WordNet Similarities
 
CS329 - Lexical Relations
CS329 - Lexical RelationsCS329 - Lexical Relations
CS329 - Lexical Relations
 
Automatic Knowledge Base Expansion for Dialogue Management
Automatic Knowledge Base Expansion for Dialogue ManagementAutomatic Knowledge Base Expansion for Dialogue Management
Automatic Knowledge Base Expansion for Dialogue Management
 
Attention is All You Need for AMR Parsing
Attention is All You Need for AMR ParsingAttention is All You Need for AMR Parsing
Attention is All You Need for AMR Parsing
 
Graph-to-Text Generation and its Applications to Dialogue
Graph-to-Text Generation and its Applications to DialogueGraph-to-Text Generation and its Applications to Dialogue
Graph-to-Text Generation and its Applications to Dialogue
 
Real-time Coreference Resolution for Dialogue Understanding
Real-time Coreference Resolution for Dialogue UnderstandingReal-time Coreference Resolution for Dialogue Understanding
Real-time Coreference Resolution for Dialogue Understanding
 
Topological Sort
Topological SortTopological Sort
Topological Sort
 
Tries - Put
Tries - PutTries - Put
Tries - Put
 
Multi-modal Embedding Learning for Early Detection of Alzheimer's Disease
Multi-modal Embedding Learning for Early Detection of Alzheimer's DiseaseMulti-modal Embedding Learning for Early Detection of Alzheimer's Disease
Multi-modal Embedding Learning for Early Detection of Alzheimer's Disease
 
Building Widely-Interpretable Semantic Networks for Dialogue Contexts
Building Widely-Interpretable Semantic Networks for Dialogue ContextsBuilding Widely-Interpretable Semantic Networks for Dialogue Contexts
Building Widely-Interpretable Semantic Networks for Dialogue Contexts
 
How to make Emora talk about Sports Intelligently
How to make Emora talk about Sports IntelligentlyHow to make Emora talk about Sports Intelligently
How to make Emora talk about Sports Intelligently
 

Recently uploaded

Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 

Recently uploaded (20)

Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 

CS571: Tree Adjoining Grammar

  • 1. Natural Language Processing Emory University Jinho D. Choi Tree-Adjoining Grammar
  • 2. Mildly Context-Sensitive Grammar • Why another grammar? - Context-free grammar cannot capture all linguistic phenomena. - Context-sensitive grammar takes exponential time for parsing. • Mildly context-sensitive grammar - Can capture all linguistic phenomena in CFG and more. - Can be parsed in polynomial time. - Grows linearly as the string length grows. • Formalisms - Tree-adjoining grammars (TAG). - Combinatory categorial grammars (CCG). 2
  • 3. Tree-Adjoining Grammars • Tree generating system - What are the elementary objects of CFG? - What are the elementary objects of TAG? 3 S, NP, VP, N, V, D, I, bought, a, car buy a car ND V N NP VP NP VP will V S buy V NP1↓ VPNP0↓ S car ND↓ NP a D VP* VP will V N NP ← Strings ↑ Trees
  • 4. Tree-Adjoining Grammars • G = (N, Σ, S, I, A) - N : a finite set of non-terminals. - Σ : a finite set of terminals. - S : a start symbol representing the whole sentence, where S ∈ N. - I : a finite set of initial trees. - A : a finite set of auxiliary trees. 4 Same as CFG No production rules? Substitution & Adjunction Elementary trees
  • 5. Elementary Tree • Elementary trees (initial trees ∪ auxiliary trees) - Interior nodes are labeled by non-terminals. - Nodes on the frontier are labeled by terminals or non-terminals. - Non-terminal nodes on the frontier are marked for substitution (↓). • The foot node in an auxiliary tree is marked for adjunction (*). • The foot node must have the same label as the root node. 5 VP* VP will V buy V NP1↓ VPNP0↓ S car ND↓ NP a D N NP Initial trees Auxiliary tree
  • 6. Derivation • Substitution - Substitute X↓ with a tree whose root node is labeled by X. - Only trees derived from initial trees can be substituted. 6 buy V NP1↓ VPNP0↓ S car ND↓ NP a DN NP VP* VP will V car ND NP a Which NP? car ND NP a V VP S buy N NP
  • 7. Derivation • Adjunction - Adjoin X* with a tree containing a non-substitution node labeled by X. - Any adjunction on X↓ is not allowed. 7 car ND NP a V VP S buy N NP VP* VP will VVP S N NP N VP* NP VP will V S car ND NP a V VP buy buy a car ND V N NP VP NP VP will V S
  • 8. Derivation Tree • Derivation Tree - Derived tree: a tree composed by two other trees. - A tree showing how a derived tree was constructed. 8 buy V NP1↓ VPNP0↓ S αbuy car ND↓ NP αcar N NP αJohn a D αa VP* VP will V αwill 12 2.21 What kind of tree is this?
  • 9. Lexicalization • Lexicalized grammar - A finite set of structures each associated with a lexical item (anchor). - Operations composing the structures. 9 Design elementary trees using only substitutions bought a car ND V N NP VP NP VP almost AP S A by taking
 1.The leftmost lexical item 2.The rightmost lexical item 3.The head lexical item 
 as the anchor of each phrase.
  • 10. Lexicalization with Substitution 10 VP↓NP↓ S N VP↓ VP almost AP A bought V NP↓ VP a N↓D NP car N Leftmost lexical item N NP almost AP A bought V a D car ND↓ V↓ NP VP NP↓ VP AP↓ S Rightmost lexical item bought V NP↓ VP NP↓ VP AP↓ S N NP almost AP A car ND↓ NP a D Head lexical item Which gives the most meaningful trees? Is this ideal?
  • 11. Lexicalization with Adjunction 11 John bought a car John almost bought a car John bought a car too bought V NP↓ VP S NP↓ bought V NP↓ VP NP↓ VP AP↓ S bought V NP↓ VP NP↓ S VP AP↓ What should be included in the domain of locality for “bought”? VP* VP A AP almost AP VP A VP* toobought V NP↓ VP S NP↓
  • 12. Domain of Locality • CFG vs TAG - CFG, the domain of locality is constrained to direct children. - TAG, the domain of locality can be extended much more. • Reading presentation - “Domain of Locality”,Aravind Joshi, 2004. - Presented by Kate Silverstein. • Next week’s readings - “Synchronous Tree Adjoining Grammars”. - Shieber & Schabes, 1990. 12
  • 13. Exercises • Wh-question - What did John buy for Mary • Relative clause - John bought a car which Mary wanted • Light-verb construction - John made a bid for the car • Verb-particle construction - Mary threw the car away 13
  • 14. Wh-Question 14 V NP VP S S V buy NP ! PP P NP for N Mary N Johndid NP S N What “What did John buy for Mary” V NP↓ VP S S NP↓ buy NP ! PP↓ NP N John PP P NP↓ for S V S* did NP N Wh NP N Mary
  • 15. Relative Clause 15 “John bought a car which Mary wanted” a D bought V NP↓ VP S NP↓ NP N John car ND↓ NP NP N Mary NP↓ S S NP NP* NP↓ VP V NP !wanted NP N which NP S S NP NP VP V NP !wanted N Mary N whicha ND NP car VP V bought NP John N S Could it be adjoined earlier?
  • 16. Light-Verb Construction 16 “John made a bid for the car” made V NP VP NP↓ S VP PP↓ D↓ N bid NP N John PP P NP↓ for car ND↓ NP a D the D made V NP VP NP S VP PP D N bid P NP for car ND theaJohn N
  • 17. Verb-Particle Construction 17 “Mary threw the car away” threw V NP↓ VP S NP↓ P away NP N Mary the D car ND↓ NP threw V NP VP S NP P awayMary the car N ND