SlideShare a Scribd company logo
Semantic Parsing with Combinatory Categorial
Grammar (CCG)
Sherzod Hakimov
Sherzod Hakimov
Publication
Sherzod Hakimov, Christina Unger, Sebastian Walter, Philipp Cimiano. Applying Semantic Parsing to Question
Answering Over Linked Data: Addressing the Lexical Gap. NLDB 2015: 103-109
QALD-4
Question Answering over Linked Data
● multilingual (English, German, Spanish, Italian, French, Dutch, Romanian)
● over 200 training, 50 test questions
● DBpedia 3.9
QALD-4
Question:
Which river does the Brooklyn Bridge cross?
Query:
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
res:Brooklyn_Bridge dbo:crosses ?uri .
}
Answer:
http://dbpedia.org/resource/East_River
Semantic Parsing
● ZC_05 [1] Parsing
○ Lambda Calculus
○ CCG (Combinatory Categorial Grammar)[2]
○ CYK - dynamic programming
● Training
○ Perceptron Algorithm
[1] Luke S. Zettlemoyer, Michael Collins. Learning to Map Sentences to Logical Form: Structured Classification with Probabilistic
Categorial Grammars. UAI 2005: 658-666
[2] Mark Steedman. Surface structure and interpretation. Linguistic inquiry 30, MIT Press 1997, ISBN 978-0-262-69193-2, pp. 1-126
Geobase880
● 880 questions paired with semantics
● geographic concepts about the U.S.
● categories : city, river, mountain ...
● functions : next_to, loc ...
● entities : colorado, texas ...
Question : what are the major cities in Texas?
Semantics : λx (major(x) ∧ city(x) ∧ location(texas, x))
Geobase880
● 880 questions paired with semantics
● geographic concepts about the U.S.
● categories : city, river, mountain ...
● functions : next_to, loc ...
● entities : colorado, texas ...
Question : what are the major cities in Texas?
Semantics : λx (major(x) ∧ city(x) ∧ location(texas, x))
Precision Recall F1
ZC05 96.25 79.29 86.95
Semantic Parsing using CCG and Lambda Calculus
CCG - Combination rules CCG - Categories
Semantic Parsing using CCG and Lambda Calculus
What are the major cities in Texas?
what are the major cities in Texas
S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP
λg.λx. (g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas
NN
λg.λx.location(texas, x) ∧ g(x)
what are the major cities in Texas
S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP
λg.λx. (g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas
NN
λg.λx.location(texas, x) ∧ g(x)
N
λx.location(texas, x) ∧ city(x)
what are the major cities in Texas
S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP
λg.λx.(g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas
NN
λg.λx.location(texas, x) ∧ g(x)
N
λx.location(texas, x) ∧ city(x)
N
λx.major(x) ∧ location(texas, x) ∧ city(x)
what are the major cities in Texas
S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP
λg.λx.(g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas
NN
λg.λx.location(texas, x) ∧ g(x)
N
λx.location(texas, x) ∧ city(x)
N
λx.major(x) ∧ location(texas, x) ∧ city(x)
NP
λx.major(x) ∧ location(texas, x) ∧ city(x)
what are the major cities in Texas
S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP
λg.λx.(g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas
NN
λg.λx.location(texas, x) ∧ g(x)
N
λx.location(texas, x) ∧ city(x)
N
λx.major(x) ∧ location(texas, x) ∧ city(x)
NP
λx.major(x) ∧ location(texas, x) ∧ city(x)
(SNP)
λx.major(x) ∧ location(texas, x) ∧ city(x)
what are the major cities in Texas
S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP
λg.λx.(g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas
NN
λg.λx.location(texas, x) ∧ g(x)
N
λx.location(texas, x) ∧ city(x)
N
λx.major(x) ∧ location(texas, x) ∧ city(x)
NP
λx.major(x) ∧ location(texas, x) ∧ city(x)
(SNP)
λx.major(x) ∧ location(texas, x) ∧ city(x)
S
λx (major(x) ∧ location(texas, x) ∧ city(x))
Semantic Parsing on QALD
● update GENLEX[1] rules for DBpedia predicates, categories, resources
● Convert logical forms in Lambda Calculus to SPARQL queries
[1] Luke S. Zettlemoyer, Michael Collins. Learning to Map Sentences to Logical Form: Structured Classification with Probabilistic
Categorial Grammars. UAI 2005: 658-666
GENLEX for QALD-4
Parsing Example
Results
- QALD-4
○ training (200 instances)
○ test (50 instances)
Results -1
- trained lexical entries
- DBpedia Ontology labels (predicates, categories)
Results -1
- trained lexical entries
- DBpedia Ontology labels (predicates, categories)
Precision Recall F1
Learned lexicon + ontology labels 0.66 0.05 0.09
Results -2
- lexical entries generated by M-ATOLL
- DBpedia Ontology labels (predicates, categories)
Results -2
- lexical entries generated by M-ATOLL[1]
- DBpedia Ontology labels (predicates, categories)
Precision Recall F1
Learned lexicon + ontology labels + M-ATOLL 0.70 0.18 0.30
[1] Sebastian Walter, Christina Unger, Philipp Cimiano. M-ATOLL: A Framework for the Lexicalization of Ontologies in Multiple
Languages. International Semantic Web Conference (1) 2014: 472-486
Results -3
- handcrafted lexical entries
- DBpedia Ontology labels (predicates, categories)
Results -3
- handcrafted lexical entries
- DBpedia Ontology (predicates, categories)
Results -3
- handcrafted lexical entries
- DBpedia Ontology labels (predicates, categories)
Comparison for QALD-4

More Related Content

What's hot

How to build TiDB
How to build TiDBHow to build TiDB
How to build TiDB
PingCAP
 
Top k shortest-paths in directed labelled multi-graphs
Top k shortest-paths in directed labelled multi-graphsTop k shortest-paths in directed labelled multi-graphs
Top k shortest-paths in directed labelled multi-graphs
Sarwan ali
 
Building a transactional key-value store that scales to 100+ nodes (percona l...
Building a transactional key-value store that scales to 100+ nodes (percona l...Building a transactional key-value store that scales to 100+ nodes (percona l...
Building a transactional key-value store that scales to 100+ nodes (percona l...
PingCAP
 
GRAPHITE: An Extensible Graph Traversal Framework for Relational Database Ma...
GRAPHITE:  An Extensible Graph Traversal Framework for Relational Database Ma...GRAPHITE:  An Extensible Graph Traversal Framework for Relational Database Ma...
GRAPHITE: An Extensible Graph Traversal Framework for Relational Database Ma...Marcus Paradies
 
LSH
LSHLSH
Scale Relational Database with NewSQL
Scale Relational Database with NewSQLScale Relational Database with NewSQL
Scale Relational Database with NewSQL
PingCAP
 
On unifying query languages for RDF streams
On unifying query languages for RDF streamsOn unifying query languages for RDF streams
On unifying query languages for RDF streams
Daniele Dell'Aglio
 
C-GeoSPARQL: Streaming geospatial support on C-SPARQL
C-GeoSPARQL: Streaming geospatial support on C-SPARQLC-GeoSPARQL: Streaming geospatial support on C-SPARQL
C-GeoSPARQL: Streaming geospatial support on C-SPARQL
Alexander Dejonghe
 

What's hot (9)

How to build TiDB
How to build TiDBHow to build TiDB
How to build TiDB
 
Top k shortest-paths in directed labelled multi-graphs
Top k shortest-paths in directed labelled multi-graphsTop k shortest-paths in directed labelled multi-graphs
Top k shortest-paths in directed labelled multi-graphs
 
Building a transactional key-value store that scales to 100+ nodes (percona l...
Building a transactional key-value store that scales to 100+ nodes (percona l...Building a transactional key-value store that scales to 100+ nodes (percona l...
Building a transactional key-value store that scales to 100+ nodes (percona l...
 
GRAPHITE: An Extensible Graph Traversal Framework for Relational Database Ma...
GRAPHITE:  An Extensible Graph Traversal Framework for Relational Database Ma...GRAPHITE:  An Extensible Graph Traversal Framework for Relational Database Ma...
GRAPHITE: An Extensible Graph Traversal Framework for Relational Database Ma...
 
LSH
LSHLSH
LSH
 
Scale Relational Database with NewSQL
Scale Relational Database with NewSQLScale Relational Database with NewSQL
Scale Relational Database with NewSQL
 
aug1
aug1aug1
aug1
 
On unifying query languages for RDF streams
On unifying query languages for RDF streamsOn unifying query languages for RDF streams
On unifying query languages for RDF streams
 
C-GeoSPARQL: Streaming geospatial support on C-SPARQL
C-GeoSPARQL: Streaming geospatial support on C-SPARQLC-GeoSPARQL: Streaming geospatial support on C-SPARQL
C-GeoSPARQL: Streaming geospatial support on C-SPARQL
 

Similar to Semantic Parsing with Combinatory Categorial Grammar (CCG)

Abstract machines for great good
Abstract machines for great goodAbstract machines for great good
Abstract machines for great good
Александр Ежов
 
CCG
CCGCCG
CCG
jie cao
 
Extending lifespan with Hadoop and R
Extending lifespan with Hadoop and RExtending lifespan with Hadoop and R
Extending lifespan with Hadoop and R
Radek Maciaszek
 
Scala as a Declarative Language
Scala as a Declarative LanguageScala as a Declarative Language
Scala as a Declarative Language
vsssuresh
 
Harmonic Analysis and Deep Learning
Harmonic Analysis and Deep LearningHarmonic Analysis and Deep Learning
Harmonic Analysis and Deep Learning
Sungbin Lim
 
Detecting paraphrases using recursive autoencoders
Detecting paraphrases using recursive autoencodersDetecting paraphrases using recursive autoencoders
Detecting paraphrases using recursive autoencoders
Feynman Liang
 
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
rusbase
 
leanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL ReasonerleanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL Reasoner
Adriano Melo
 
First Place Memocode'14 Design Contest Entry
First Place Memocode'14 Design Contest EntryFirst Place Memocode'14 Design Contest Entry
First Place Memocode'14 Design Contest Entry
Kevin Townsend
 
Reference classes: a case study with the poweRlaw package
Reference classes: a case study with the poweRlaw packageReference classes: a case study with the poweRlaw package
Reference classes: a case study with the poweRlaw package
Colin Gillespie
 
Data exploration and graphics with R
Data exploration and graphics with RData exploration and graphics with R
Data exploration and graphics with R
Alberto Labarga
 
"That scripting language called Prolog"
"That scripting language called Prolog""That scripting language called Prolog"
"That scripting language called Prolog"
Sergei Winitzki
 
Archipelagos
ArchipelagosArchipelagos
Archipelagos
msramanujan
 
Automatic Mathematical Information Retrieval to Perform Translations up to Co...
Automatic Mathematical Information Retrieval to Perform Translations up to Co...Automatic Mathematical Information Retrieval to Perform Translations up to Co...
Automatic Mathematical Information Retrieval to Perform Translations up to Co...
Scientific Information Analytics Group, Prof. Gipp
 
RSP-QL*: Querying Data-Level Annotations in RDF Streams
RSP-QL*: Querying Data-Level Annotations in RDF StreamsRSP-QL*: Querying Data-Level Annotations in RDF Streams
RSP-QL*: Querying Data-Level Annotations in RDF Streams
keski
 
Sara el hassad
Sara el hassadSara el hassad
Sara el hassad
Sara EL HASSAD
 
Delayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithmsDelayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithms
Christian Robert
 
Definite Clause Grammars For Language Analysis
Definite Clause Grammars For Language AnalysisDefinite Clause Grammars For Language Analysis
Definite Clause Grammars For Language Analysis
RePierre
 
Incremental View Maintenance for openCypher Queries
Incremental View Maintenance for openCypher QueriesIncremental View Maintenance for openCypher Queries
Incremental View Maintenance for openCypher Queries
Gábor Szárnyas
 

Similar to Semantic Parsing with Combinatory Categorial Grammar (CCG) (20)

Abstract machines for great good
Abstract machines for great goodAbstract machines for great good
Abstract machines for great good
 
CCG
CCGCCG
CCG
 
Extending lifespan with Hadoop and R
Extending lifespan with Hadoop and RExtending lifespan with Hadoop and R
Extending lifespan with Hadoop and R
 
Scala as a Declarative Language
Scala as a Declarative LanguageScala as a Declarative Language
Scala as a Declarative Language
 
Harmonic Analysis and Deep Learning
Harmonic Analysis and Deep LearningHarmonic Analysis and Deep Learning
Harmonic Analysis and Deep Learning
 
Detecting paraphrases using recursive autoencoders
Detecting paraphrases using recursive autoencodersDetecting paraphrases using recursive autoencoders
Detecting paraphrases using recursive autoencoders
 
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
Сергей Кольцов —НИУ ВШЭ —ICBDA 2015
 
leanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL ReasonerleanCoR: lean Connection-based DL Reasoner
leanCoR: lean Connection-based DL Reasoner
 
First Place Memocode'14 Design Contest Entry
First Place Memocode'14 Design Contest EntryFirst Place Memocode'14 Design Contest Entry
First Place Memocode'14 Design Contest Entry
 
Reference classes: a case study with the poweRlaw package
Reference classes: a case study with the poweRlaw packageReference classes: a case study with the poweRlaw package
Reference classes: a case study with the poweRlaw package
 
Data exploration and graphics with R
Data exploration and graphics with RData exploration and graphics with R
Data exploration and graphics with R
 
"That scripting language called Prolog"
"That scripting language called Prolog""That scripting language called Prolog"
"That scripting language called Prolog"
 
Archipelagos
ArchipelagosArchipelagos
Archipelagos
 
Automatic Mathematical Information Retrieval to Perform Translations up to Co...
Automatic Mathematical Information Retrieval to Perform Translations up to Co...Automatic Mathematical Information Retrieval to Perform Translations up to Co...
Automatic Mathematical Information Retrieval to Perform Translations up to Co...
 
RSP-QL*: Querying Data-Level Annotations in RDF Streams
RSP-QL*: Querying Data-Level Annotations in RDF StreamsRSP-QL*: Querying Data-Level Annotations in RDF Streams
RSP-QL*: Querying Data-Level Annotations in RDF Streams
 
Sara el hassad
Sara el hassadSara el hassad
Sara el hassad
 
Lect6 csp
Lect6 cspLect6 csp
Lect6 csp
 
Delayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithmsDelayed acceptance for Metropolis-Hastings algorithms
Delayed acceptance for Metropolis-Hastings algorithms
 
Definite Clause Grammars For Language Analysis
Definite Clause Grammars For Language AnalysisDefinite Clause Grammars For Language Analysis
Definite Clause Grammars For Language Analysis
 
Incremental View Maintenance for openCypher Queries
Incremental View Maintenance for openCypher QueriesIncremental View Maintenance for openCypher Queries
Incremental View Maintenance for openCypher Queries
 

More from shakimov

Applications of Word Vectors in Text Retrieval and Classification
Applications of Word Vectors in Text Retrieval and ClassificationApplications of Word Vectors in Text Retrieval and Classification
Applications of Word Vectors in Text Retrieval and Classification
shakimov
 
Learning Multilingual Semantic Parsers for Question Answering over Linked Dat...
Learning Multilingual Semantic Parsers for Question Answering over Linked Dat...Learning Multilingual Semantic Parsers for Question Answering over Linked Dat...
Learning Multilingual Semantic Parsers for Question Answering over Linked Dat...
shakimov
 
Multilingual qa
Multilingual qaMultilingual qa
Multilingual qa
shakimov
 
Towards a Large Corpus of Richly Annotated Web Tables for Knowledge Base Popu...
Towards a Large Corpus of Richly Annotated Web Tables for Knowledge Base Popu...Towards a Large Corpus of Richly Annotated Web Tables for Knowledge Base Popu...
Towards a Large Corpus of Richly Annotated Web Tables for Knowledge Base Popu...
shakimov
 
Combining Textual and Graph-Based Features for Named Entity Disambiguation us...
Combining Textual and Graph-Based Features for Named Entity Disambiguation us...Combining Textual and Graph-Based Features for Named Entity Disambiguation us...
Combining Textual and Graph-Based Features for Named Entity Disambiguation us...
shakimov
 
Combining Textual and Graph-based Features for Entity Disambiguation
Combining Textual and Graph-based Features for Entity DisambiguationCombining Textual and Graph-based Features for Entity Disambiguation
Combining Textual and Graph-based Features for Entity Disambiguation
shakimov
 

More from shakimov (6)

Applications of Word Vectors in Text Retrieval and Classification
Applications of Word Vectors in Text Retrieval and ClassificationApplications of Word Vectors in Text Retrieval and Classification
Applications of Word Vectors in Text Retrieval and Classification
 
Learning Multilingual Semantic Parsers for Question Answering over Linked Dat...
Learning Multilingual Semantic Parsers for Question Answering over Linked Dat...Learning Multilingual Semantic Parsers for Question Answering over Linked Dat...
Learning Multilingual Semantic Parsers for Question Answering over Linked Dat...
 
Multilingual qa
Multilingual qaMultilingual qa
Multilingual qa
 
Towards a Large Corpus of Richly Annotated Web Tables for Knowledge Base Popu...
Towards a Large Corpus of Richly Annotated Web Tables for Knowledge Base Popu...Towards a Large Corpus of Richly Annotated Web Tables for Knowledge Base Popu...
Towards a Large Corpus of Richly Annotated Web Tables for Knowledge Base Popu...
 
Combining Textual and Graph-Based Features for Named Entity Disambiguation us...
Combining Textual and Graph-Based Features for Named Entity Disambiguation us...Combining Textual and Graph-Based Features for Named Entity Disambiguation us...
Combining Textual and Graph-Based Features for Named Entity Disambiguation us...
 
Combining Textual and Graph-based Features for Entity Disambiguation
Combining Textual and Graph-based Features for Entity DisambiguationCombining Textual and Graph-based Features for Entity Disambiguation
Combining Textual and Graph-based Features for Entity Disambiguation
 

Recently uploaded

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
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
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
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
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
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
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
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
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 

Recently uploaded (20)

Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
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?
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
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
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
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
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
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 -...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 

Semantic Parsing with Combinatory Categorial Grammar (CCG)

  • 1. Semantic Parsing with Combinatory Categorial Grammar (CCG) Sherzod Hakimov Sherzod Hakimov
  • 2. Publication Sherzod Hakimov, Christina Unger, Sebastian Walter, Philipp Cimiano. Applying Semantic Parsing to Question Answering Over Linked Data: Addressing the Lexical Gap. NLDB 2015: 103-109
  • 3. QALD-4 Question Answering over Linked Data ● multilingual (English, German, Spanish, Italian, French, Dutch, Romanian) ● over 200 training, 50 test questions ● DBpedia 3.9
  • 4. QALD-4 Question: Which river does the Brooklyn Bridge cross? Query: PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> SELECT DISTINCT ?uri WHERE { res:Brooklyn_Bridge dbo:crosses ?uri . } Answer: http://dbpedia.org/resource/East_River
  • 5. Semantic Parsing ● ZC_05 [1] Parsing ○ Lambda Calculus ○ CCG (Combinatory Categorial Grammar)[2] ○ CYK - dynamic programming ● Training ○ Perceptron Algorithm [1] Luke S. Zettlemoyer, Michael Collins. Learning to Map Sentences to Logical Form: Structured Classification with Probabilistic Categorial Grammars. UAI 2005: 658-666 [2] Mark Steedman. Surface structure and interpretation. Linguistic inquiry 30, MIT Press 1997, ISBN 978-0-262-69193-2, pp. 1-126
  • 6. Geobase880 ● 880 questions paired with semantics ● geographic concepts about the U.S. ● categories : city, river, mountain ... ● functions : next_to, loc ... ● entities : colorado, texas ... Question : what are the major cities in Texas? Semantics : λx (major(x) ∧ city(x) ∧ location(texas, x))
  • 7. Geobase880 ● 880 questions paired with semantics ● geographic concepts about the U.S. ● categories : city, river, mountain ... ● functions : next_to, loc ... ● entities : colorado, texas ... Question : what are the major cities in Texas? Semantics : λx (major(x) ∧ city(x) ∧ location(texas, x)) Precision Recall F1 ZC05 96.25 79.29 86.95
  • 8. Semantic Parsing using CCG and Lambda Calculus CCG - Combination rules CCG - Categories
  • 9. Semantic Parsing using CCG and Lambda Calculus What are the major cities in Texas?
  • 10. what are the major cities in Texas S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP λg.λx. (g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas NN λg.λx.location(texas, x) ∧ g(x)
  • 11. what are the major cities in Texas S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP λg.λx. (g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas NN λg.λx.location(texas, x) ∧ g(x) N λx.location(texas, x) ∧ city(x)
  • 12. what are the major cities in Texas S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP λg.λx.(g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas NN λg.λx.location(texas, x) ∧ g(x) N λx.location(texas, x) ∧ city(x) N λx.major(x) ∧ location(texas, x) ∧ city(x)
  • 13. what are the major cities in Texas S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP λg.λx.(g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas NN λg.λx.location(texas, x) ∧ g(x) N λx.location(texas, x) ∧ city(x) N λx.major(x) ∧ location(texas, x) ∧ city(x) NP λx.major(x) ∧ location(texas, x) ∧ city(x)
  • 14. what are the major cities in Texas S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP λg.λx.(g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas NN λg.λx.location(texas, x) ∧ g(x) N λx.location(texas, x) ∧ city(x) N λx.major(x) ∧ location(texas, x) ∧ city(x) NP λx.major(x) ∧ location(texas, x) ∧ city(x) (SNP) λx.major(x) ∧ location(texas, x) ∧ city(x)
  • 15. what are the major cities in Texas S/(SNP) (SNP)/NP (NP/N) N/N N (NN)/NP NP λg.λx.(g(x)) λf.f(x) λf.f(x) λg.λx.major(x) ∧ g(x) λx.city(x) λy.λg.λx.location(y, x) ∧ g(x) texas NN λg.λx.location(texas, x) ∧ g(x) N λx.location(texas, x) ∧ city(x) N λx.major(x) ∧ location(texas, x) ∧ city(x) NP λx.major(x) ∧ location(texas, x) ∧ city(x) (SNP) λx.major(x) ∧ location(texas, x) ∧ city(x) S λx (major(x) ∧ location(texas, x) ∧ city(x))
  • 16. Semantic Parsing on QALD ● update GENLEX[1] rules for DBpedia predicates, categories, resources ● Convert logical forms in Lambda Calculus to SPARQL queries [1] Luke S. Zettlemoyer, Michael Collins. Learning to Map Sentences to Logical Form: Structured Classification with Probabilistic Categorial Grammars. UAI 2005: 658-666
  • 19. Results - QALD-4 ○ training (200 instances) ○ test (50 instances)
  • 20. Results -1 - trained lexical entries - DBpedia Ontology labels (predicates, categories)
  • 21. Results -1 - trained lexical entries - DBpedia Ontology labels (predicates, categories) Precision Recall F1 Learned lexicon + ontology labels 0.66 0.05 0.09
  • 22. Results -2 - lexical entries generated by M-ATOLL - DBpedia Ontology labels (predicates, categories)
  • 23. Results -2 - lexical entries generated by M-ATOLL[1] - DBpedia Ontology labels (predicates, categories) Precision Recall F1 Learned lexicon + ontology labels + M-ATOLL 0.70 0.18 0.30 [1] Sebastian Walter, Christina Unger, Philipp Cimiano. M-ATOLL: A Framework for the Lexicalization of Ontologies in Multiple Languages. International Semantic Web Conference (1) 2014: 472-486
  • 24. Results -3 - handcrafted lexical entries - DBpedia Ontology labels (predicates, categories)
  • 25. Results -3 - handcrafted lexical entries - DBpedia Ontology (predicates, categories)
  • 26. Results -3 - handcrafted lexical entries - DBpedia Ontology labels (predicates, categories)