SlideShare a Scribd company logo
1 of 28
Jan 2004 CSA3050: NLG2 1
CSA3050:
Natural Language Generation 2
Surface Realisation
Systemic Grammar
Functional Unification Grammar
see J&M Chapter 20.3
Jan 2004 CSA3050: NLG2 2
Surface Realisation within NLG
Jan 2004 CSA3050: NLG2 3
Revealing Quotations
• Language understanding is somewhat like
counting from one to infinity; language
generation is like counting from infinity
back to one. [Y. Wilks, 1988]
• Generation from what?! [C. Longuet-
Higgins]
• Moral: there is no consensus about the
level of representation we start from. This
applies in particular to surface realisation.
Jan 2004 CSA3050: NLG2 4
Surface Realisation
• There is, however, some agreement that output
should be specified in terms of function rather
than syntactic form
• Consider the case of voice (syntactic form)
The system will save the document vs.
The document will be saved by the system
• Output of a discourse planner is not in terms of
voice, active v. passive.
• More likely in terms of notions like topic, focus
etc. whose surface realisation is left to a
subsequent processing stage.
Jan 2004 CSA3050: NLG2 5
Two Approaches to
Surface Realisation
• Systemic Grammar (Halliday 1985)
– Systemic Functional Linguistics
– Language as a resource for expressing meaning in
context.
– Sentences are regarded collections of functions that
are mapped to grammatical forms.
• Functional Unification Grammar (Kay 1979)
– Grammar is a "feature structure" (recursive
attribute/value pairs).
– Input specification is another feature structure
– Realisation viewed as further specification of input to
yield output sentence via fundamental operation of
functional unification.
Jan 2004 CSA3050: NLG2 6
Systemic Grammar:
Multi-Layered Sentence Analysis
the system will save the document
Mood subject finite predicator object
Transitivity actor process goal
Theme theme rheme
• Mood layer defines interaction between reader and writer:
telling v. asking v. ordering
• Transitivity layer expresses propositional content
• Theme layer deals with topic (highlighting function)
Jan 2004 CSA3050: NLG2 7
Systemic Grammar
• Grammar is represented as a graph called
a system network. This comprises
• and systems (curly braces)
– conjunctive features in boldface
• or systems (straight vertical lines)
– disjunctive features in normal face
• realisation statements (in italic).
– specify how disjunctive features are realised
Jan 2004 CSA3050: NLG2 8
Jan 2004 CSA3050: NLG2 9
Realisation Statements
• +X: insert the function X
+predicator
• X=Y: conflate the functions X and Y
goal = subject
• X>Y: order X somewhere before Y
subject > predicator
• X/A: function X has grammatical feature Y
subject/noun phrase
• X!L assign function X to lexical item L
passive!be
Jan 2004 CSA3050: NLG2 10
Generation Procedure
1. Traverse network from left to right, choosing
the appropriate features and collecting the
appropriate realisation statements.
2. Build an intermediate expression that obeys
the constraints set by the realisation
statements.
3. Recurse back through the grammar at a lower
level for functions not fully specified.
Jan 2004 CSA3050: NLG2 11
Example Input
(
:process save-1
:actor system-1
:goal document-1
:speechact assertion
:tense future
)
• N.B. This specification resembles that used by
PENMAN system (Mann 1983) based on KL-
ONE knowledge base.
Jan 2004 CSA3050: NLG2 12
Generation 1
• Start with clause feature
– insert predicator and classify as verb
• Proceed to mood subsystem
• after interrogating input specification
(assertion is specified) choose indicative
and declarative features.
• Insert subject and finite functions with
ordering subject > finite > predicator
Jan 2004 CSA3050: NLG2 13
Output of Mood System
Mood subject finite predicator
Jan 2004 CSA3050: NLG2 14
Generation 2
• Proceed to Transitivity subsystem.
• Assuming save-1 is a material process
(from KB)
– Insert goal and process functions
– Conflate process with (finite, predicator) pair
– Proceed to Voice subsystem
– Choose Active feature and obey realisation
statements.
Jan 2004 CSA3050: NLG2 15
Output of Transitivity System
Mood subject finite predicator object
Transitivity actor process goal
Jan 2004 CSA3050: NLG2 16
Generation 3
• Proceed to Theme subsystem
• Since there is no thematic specification in
the input, choose Unmarked Theme
– Insert theme and rheme functions
– Conflate theme with subject and rheme with
predicator,object
Jan 2004 CSA3050: NLG2 17
Output of Mood Subsystem
Mood subject finite predicator object
Transitivity actor process goal
Theme theme rheme
Jan 2004 CSA3050: NLG2 18
Generation 4
• Generation now recursively enters the
grammar at lower levels to fully specify
– the phrases (noun phrase network, auxiliary
network – not shown here)
– lexical items (usually through entries in the
knowledge base)
– and possibly morphological choices
Jan 2004 CSA3050: NLG2 19
Result of Generation
the system will save the document
Mood subject finite predicator object
Transitivity actor process goal
Theme theme rheme
Jan 2004 CSA3050: NLG2 20
Functional Unification Grammar
• Build the generation grammar as a feature
structure (FS)
• Build input specification as an FS
• Unify the two together (functional
unification operation).
• Linearize result.
Jan 2004 CSA3050: NLG2 21
Feature Structures
• Feature structures are essentially sets of
attribute value pairs
attribute1 value1
attribute2 value2
:
attribute3 value3
Jan 2004 CSA3050: NLG2 22
Feature Structure 2
• These can be used to express facts of
different kinds
name mike
height 156
:
eyes green
number sing
gender masc
:
case nom
human facts agreement facts
Jan 2004 CSA3050: NLG2 23
Feature Structures 3
• Furthermore, values can themselves be
feature structures
number sing
gender masc
case nom
cat NP
agreement
Jan 2004 CSA3050: NLG2 24
Functional Unification
• The information in feature structures can
be combined together by means of the
functional unification () operation.
name mike
height 156
eyes green
name mike
height 156
eyes green

=
25
Grammar as a Feature Structure
Jan 2004 CSA3050: NLG2 26
Input Specification –
as a Feature Structure
cat S
actor head lex system
process head lex save
tense future
goal head lex document
27
Partial Result
cat S
actor cat NP
head lex system
process cat VP
number {actor number}
head lex save
tense future
goal cat NP
head lex document
pattern (actor process goal)
28
Full Result

More Related Content

What's hot

“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...
“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...
“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...Edge AI and Vision Alliance
 
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)Mohammad Ilyas Malik
 
Homomorphic Encryption
Homomorphic EncryptionHomomorphic Encryption
Homomorphic EncryptionGöktuğ Serez
 
1시간만에 GAN(Generative Adversarial Network) 완전 정복하기
1시간만에 GAN(Generative Adversarial Network) 완전 정복하기1시간만에 GAN(Generative Adversarial Network) 완전 정복하기
1시간만에 GAN(Generative Adversarial Network) 완전 정복하기NAVER Engineering
 
Fantastic DSL in Python
Fantastic DSL in PythonFantastic DSL in Python
Fantastic DSL in Pythonkwatch
 
Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.
Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.
Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.kiki utagawa
 
Proposed Lightweight Block Cipher Algorithm for Securing Internet of Things
Proposed Lightweight Block Cipher Algorithm for Securing Internet of ThingsProposed Lightweight Block Cipher Algorithm for Securing Internet of Things
Proposed Lightweight Block Cipher Algorithm for Securing Internet of ThingsSeddiq Q. Abd Al-Rahman
 
Hub 102 - Lesson 5 - Algorithm: Sorting & Searching
Hub 102 - Lesson 5 - Algorithm: Sorting & SearchingHub 102 - Lesson 5 - Algorithm: Sorting & Searching
Hub 102 - Lesson 5 - Algorithm: Sorting & SearchingTiểu Hổ
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree methodRajendran
 
C++でCプリプロセッサを作ったり速くしたりしたお話
C++でCプリプロセッサを作ったり速くしたりしたお話C++でCプリプロセッサを作ったり速くしたりしたお話
C++でCプリプロセッサを作ったり速くしたりしたお話Kinuko Yasuda
 
Malli: inside data-driven schemas
Malli: inside data-driven schemasMalli: inside data-driven schemas
Malli: inside data-driven schemasMetosin Oy
 
GoogleのSHA-1のはなし
GoogleのSHA-1のはなしGoogleのSHA-1のはなし
GoogleのSHA-1のはなしMITSUNARI Shigeo
 
Gaussian process in machine learning
Gaussian process in machine learningGaussian process in machine learning
Gaussian process in machine learningVARUN KUMAR
 
Restricted Boltzmann Machine - A comprehensive study with a focus on Deep Bel...
Restricted Boltzmann Machine - A comprehensive study with a focus on Deep Bel...Restricted Boltzmann Machine - A comprehensive study with a focus on Deep Bel...
Restricted Boltzmann Machine - A comprehensive study with a focus on Deep Bel...Indraneel Pole
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithmsRajendran
 

What's hot (20)

“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...
“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...
“An Introduction to Data Augmentation Techniques in ML Frameworks,” a Present...
 
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
Finite Automata: Deterministic And Non-deterministic Finite Automaton (DFA)
 
Homomorphic Encryption
Homomorphic EncryptionHomomorphic Encryption
Homomorphic Encryption
 
1시간만에 GAN(Generative Adversarial Network) 완전 정복하기
1시간만에 GAN(Generative Adversarial Network) 완전 정복하기1시간만에 GAN(Generative Adversarial Network) 완전 정복하기
1시간만에 GAN(Generative Adversarial Network) 완전 정복하기
 
Fantastic DSL in Python
Fantastic DSL in PythonFantastic DSL in Python
Fantastic DSL in Python
 
Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.
Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.
Pythonの処理系はどのように実装され,どのように動いているのか? 我々はその実態を調査すべくアマゾンへと飛んだ.
 
Proposed Lightweight Block Cipher Algorithm for Securing Internet of Things
Proposed Lightweight Block Cipher Algorithm for Securing Internet of ThingsProposed Lightweight Block Cipher Algorithm for Securing Internet of Things
Proposed Lightweight Block Cipher Algorithm for Securing Internet of Things
 
Hub 102 - Lesson 5 - Algorithm: Sorting & Searching
Hub 102 - Lesson 5 - Algorithm: Sorting & SearchingHub 102 - Lesson 5 - Algorithm: Sorting & Searching
Hub 102 - Lesson 5 - Algorithm: Sorting & Searching
 
Why rust?
Why rust?Why rust?
Why rust?
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
 
C++でCプリプロセッサを作ったり速くしたりしたお話
C++でCプリプロセッサを作ったり速くしたりしたお話C++でCプリプロセッサを作ったり速くしたりしたお話
C++でCプリプロセッサを作ったり速くしたりしたお話
 
Faster rcnn
Faster rcnnFaster rcnn
Faster rcnn
 
8 queens problem.pptx
8 queens problem.pptx8 queens problem.pptx
8 queens problem.pptx
 
Malli: inside data-driven schemas
Malli: inside data-driven schemasMalli: inside data-driven schemas
Malli: inside data-driven schemas
 
Recursive algorithms
Recursive algorithmsRecursive algorithms
Recursive algorithms
 
GoogleのSHA-1のはなし
GoogleのSHA-1のはなしGoogleのSHA-1のはなし
GoogleのSHA-1のはなし
 
Daa unit 4
Daa unit 4Daa unit 4
Daa unit 4
 
Gaussian process in machine learning
Gaussian process in machine learningGaussian process in machine learning
Gaussian process in machine learning
 
Restricted Boltzmann Machine - A comprehensive study with a focus on Deep Bel...
Restricted Boltzmann Machine - A comprehensive study with a focus on Deep Bel...Restricted Boltzmann Machine - A comprehensive study with a focus on Deep Bel...
Restricted Boltzmann Machine - A comprehensive study with a focus on Deep Bel...
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
 

Similar to Surface Realisation Approaches in Systemic Grammar and Functional Unification Grammar

Concept lattices: a representation space to structure software variability
Concept lattices: a representation space to structure software variabilityConcept lattices: a representation space to structure software variability
Concept lattices: a representation space to structure software variabilityRa'Fat Al-Msie'deen
 
Task-oriented Conversational semantic parsing
Task-oriented Conversational semantic parsingTask-oriented Conversational semantic parsing
Task-oriented Conversational semantic parsingjie cao
 
Functional Programming.pptx
Functional Programming.pptxFunctional Programming.pptx
Functional Programming.pptxKarthickT28
 
Seminar on Parallel and Concurrent Programming
Seminar on Parallel and Concurrent ProgrammingSeminar on Parallel and Concurrent Programming
Seminar on Parallel and Concurrent ProgrammingStefan Marr
 
Apache Lucene/Solr Document Classification
Apache Lucene/Solr Document ClassificationApache Lucene/Solr Document Classification
Apache Lucene/Solr Document ClassificationSease
 
Chapter10.pptx
Chapter10.pptxChapter10.pptx
Chapter10.pptxadnansbp
 
Lucene And Solr Document Classification
Lucene And Solr Document ClassificationLucene And Solr Document Classification
Lucene And Solr Document ClassificationAlessandro Benedetti
 
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Claudio Greco
 
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Alessandro Suglia
 
Thomson Reuters at NIST TAC 2008
Thomson Reuters at NIST TAC 2008Thomson Reuters at NIST TAC 2008
Thomson Reuters at NIST TAC 2008leidner
 
human computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppthuman computer Interaction cognitive models.ppt
human computer Interaction cognitive models.pptJayaprasanna4
 
human computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppthuman computer Interaction cognitive models.ppt
human computer Interaction cognitive models.pptJayaprasanna4
 
Large-scale Reasoning with a Complex Cultural Heritage Ontology (CIDOC CRM) ...
 Large-scale Reasoning with a Complex Cultural Heritage Ontology (CIDOC CRM) ... Large-scale Reasoning with a Complex Cultural Heritage Ontology (CIDOC CRM) ...
Large-scale Reasoning with a Complex Cultural Heritage Ontology (CIDOC CRM) ...Vladimir Alexiev, PhD, PMP
 
RuleML2015 - Tutorial - Powerful Practical Semantic Rules in Rulelog - Funda...
RuleML2015 - Tutorial -  Powerful Practical Semantic Rules in Rulelog - Funda...RuleML2015 - Tutorial -  Powerful Practical Semantic Rules in Rulelog - Funda...
RuleML2015 - Tutorial - Powerful Practical Semantic Rules in Rulelog - Funda...RuleML
 
Extending Rotor with Structural Reflection to support Reflective Languages
Extending Rotor with Structural Reflection to support Reflective LanguagesExtending Rotor with Structural Reflection to support Reflective Languages
Extending Rotor with Structural Reflection to support Reflective Languagesfranciscoortin
 

Similar to Surface Realisation Approaches in Systemic Grammar and Functional Unification Grammar (20)

Slides chapters 28-32
Slides chapters 28-32Slides chapters 28-32
Slides chapters 28-32
 
SlidesSeams15
SlidesSeams15SlidesSeams15
SlidesSeams15
 
Concept lattices: a representation space to structure software variability
Concept lattices: a representation space to structure software variabilityConcept lattices: a representation space to structure software variability
Concept lattices: a representation space to structure software variability
 
Task-oriented Conversational semantic parsing
Task-oriented Conversational semantic parsingTask-oriented Conversational semantic parsing
Task-oriented Conversational semantic parsing
 
34. uml
34. uml34. uml
34. uml
 
Norman and McCraken, "OpenURL Implementation: Link Resolution That Users Will...
Norman and McCraken, "OpenURL Implementation: Link Resolution That Users Will...Norman and McCraken, "OpenURL Implementation: Link Resolution That Users Will...
Norman and McCraken, "OpenURL Implementation: Link Resolution That Users Will...
 
Icsm07.ppt
Icsm07.pptIcsm07.ppt
Icsm07.ppt
 
Functional Programming.pptx
Functional Programming.pptxFunctional Programming.pptx
Functional Programming.pptx
 
Seminar on Parallel and Concurrent Programming
Seminar on Parallel and Concurrent ProgrammingSeminar on Parallel and Concurrent Programming
Seminar on Parallel and Concurrent Programming
 
Apache Lucene/Solr Document Classification
Apache Lucene/Solr Document ClassificationApache Lucene/Solr Document Classification
Apache Lucene/Solr Document Classification
 
Chapter10.pptx
Chapter10.pptxChapter10.pptx
Chapter10.pptx
 
Lucene And Solr Document Classification
Lucene And Solr Document ClassificationLucene And Solr Document Classification
Lucene And Solr Document Classification
 
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
 
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neur...
 
Thomson Reuters at NIST TAC 2008
Thomson Reuters at NIST TAC 2008Thomson Reuters at NIST TAC 2008
Thomson Reuters at NIST TAC 2008
 
human computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppthuman computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppt
 
human computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppthuman computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppt
 
Large-scale Reasoning with a Complex Cultural Heritage Ontology (CIDOC CRM) ...
 Large-scale Reasoning with a Complex Cultural Heritage Ontology (CIDOC CRM) ... Large-scale Reasoning with a Complex Cultural Heritage Ontology (CIDOC CRM) ...
Large-scale Reasoning with a Complex Cultural Heritage Ontology (CIDOC CRM) ...
 
RuleML2015 - Tutorial - Powerful Practical Semantic Rules in Rulelog - Funda...
RuleML2015 - Tutorial -  Powerful Practical Semantic Rules in Rulelog - Funda...RuleML2015 - Tutorial -  Powerful Practical Semantic Rules in Rulelog - Funda...
RuleML2015 - Tutorial - Powerful Practical Semantic Rules in Rulelog - Funda...
 
Extending Rotor with Structural Reflection to support Reflective Languages
Extending Rotor with Structural Reflection to support Reflective LanguagesExtending Rotor with Structural Reflection to support Reflective Languages
Extending Rotor with Structural Reflection to support Reflective Languages
 

More from shakeelAsghar6

nlp-150531043309-lva1-app6891_3.pdf
nlp-150531043309-lva1-app6891_3.pdfnlp-150531043309-lva1-app6891_3.pdf
nlp-150531043309-lva1-app6891_3.pdfshakeelAsghar6
 
naturallanguageprocessing-160722053804.pdf
naturallanguageprocessing-160722053804.pdfnaturallanguageprocessing-160722053804.pdf
naturallanguageprocessing-160722053804.pdfshakeelAsghar6
 
natural language processing
natural language processing natural language processing
natural language processing shakeelAsghar6
 
grammer genration in design
grammer genration in design grammer genration in design
grammer genration in design shakeelAsghar6
 
Natural Language Processing - English Grammar
 Natural Language Processing- English Grammar  Natural Language Processing- English Grammar
Natural Language Processing - English Grammar shakeelAsghar6
 

More from shakeelAsghar6 (8)

nlp-150531043309-lva1-app6891_3.pdf
nlp-150531043309-lva1-app6891_3.pdfnlp-150531043309-lva1-app6891_3.pdf
nlp-150531043309-lva1-app6891_3.pdf
 
naturallanguageprocessing-160722053804.pdf
naturallanguageprocessing-160722053804.pdfnaturallanguageprocessing-160722053804.pdf
naturallanguageprocessing-160722053804.pdf
 
natural language processing
natural language processing natural language processing
natural language processing
 
grammer genration in design
grammer genration in design grammer genration in design
grammer genration in design
 
Natural Language Processing - English Grammar
 Natural Language Processing- English Grammar  Natural Language Processing- English Grammar
Natural Language Processing - English Grammar
 
grammer genration
grammer genration grammer genration
grammer genration
 
grammer genration
grammer genration grammer genration
grammer genration
 
Shakeel
ShakeelShakeel
Shakeel
 

Recently uploaded

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Recently uploaded (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

Surface Realisation Approaches in Systemic Grammar and Functional Unification Grammar

  • 1. Jan 2004 CSA3050: NLG2 1 CSA3050: Natural Language Generation 2 Surface Realisation Systemic Grammar Functional Unification Grammar see J&M Chapter 20.3
  • 2. Jan 2004 CSA3050: NLG2 2 Surface Realisation within NLG
  • 3. Jan 2004 CSA3050: NLG2 3 Revealing Quotations • Language understanding is somewhat like counting from one to infinity; language generation is like counting from infinity back to one. [Y. Wilks, 1988] • Generation from what?! [C. Longuet- Higgins] • Moral: there is no consensus about the level of representation we start from. This applies in particular to surface realisation.
  • 4. Jan 2004 CSA3050: NLG2 4 Surface Realisation • There is, however, some agreement that output should be specified in terms of function rather than syntactic form • Consider the case of voice (syntactic form) The system will save the document vs. The document will be saved by the system • Output of a discourse planner is not in terms of voice, active v. passive. • More likely in terms of notions like topic, focus etc. whose surface realisation is left to a subsequent processing stage.
  • 5. Jan 2004 CSA3050: NLG2 5 Two Approaches to Surface Realisation • Systemic Grammar (Halliday 1985) – Systemic Functional Linguistics – Language as a resource for expressing meaning in context. – Sentences are regarded collections of functions that are mapped to grammatical forms. • Functional Unification Grammar (Kay 1979) – Grammar is a "feature structure" (recursive attribute/value pairs). – Input specification is another feature structure – Realisation viewed as further specification of input to yield output sentence via fundamental operation of functional unification.
  • 6. Jan 2004 CSA3050: NLG2 6 Systemic Grammar: Multi-Layered Sentence Analysis the system will save the document Mood subject finite predicator object Transitivity actor process goal Theme theme rheme • Mood layer defines interaction between reader and writer: telling v. asking v. ordering • Transitivity layer expresses propositional content • Theme layer deals with topic (highlighting function)
  • 7. Jan 2004 CSA3050: NLG2 7 Systemic Grammar • Grammar is represented as a graph called a system network. This comprises • and systems (curly braces) – conjunctive features in boldface • or systems (straight vertical lines) – disjunctive features in normal face • realisation statements (in italic). – specify how disjunctive features are realised
  • 9. Jan 2004 CSA3050: NLG2 9 Realisation Statements • +X: insert the function X +predicator • X=Y: conflate the functions X and Y goal = subject • X>Y: order X somewhere before Y subject > predicator • X/A: function X has grammatical feature Y subject/noun phrase • X!L assign function X to lexical item L passive!be
  • 10. Jan 2004 CSA3050: NLG2 10 Generation Procedure 1. Traverse network from left to right, choosing the appropriate features and collecting the appropriate realisation statements. 2. Build an intermediate expression that obeys the constraints set by the realisation statements. 3. Recurse back through the grammar at a lower level for functions not fully specified.
  • 11. Jan 2004 CSA3050: NLG2 11 Example Input ( :process save-1 :actor system-1 :goal document-1 :speechact assertion :tense future ) • N.B. This specification resembles that used by PENMAN system (Mann 1983) based on KL- ONE knowledge base.
  • 12. Jan 2004 CSA3050: NLG2 12 Generation 1 • Start with clause feature – insert predicator and classify as verb • Proceed to mood subsystem • after interrogating input specification (assertion is specified) choose indicative and declarative features. • Insert subject and finite functions with ordering subject > finite > predicator
  • 13. Jan 2004 CSA3050: NLG2 13 Output of Mood System Mood subject finite predicator
  • 14. Jan 2004 CSA3050: NLG2 14 Generation 2 • Proceed to Transitivity subsystem. • Assuming save-1 is a material process (from KB) – Insert goal and process functions – Conflate process with (finite, predicator) pair – Proceed to Voice subsystem – Choose Active feature and obey realisation statements.
  • 15. Jan 2004 CSA3050: NLG2 15 Output of Transitivity System Mood subject finite predicator object Transitivity actor process goal
  • 16. Jan 2004 CSA3050: NLG2 16 Generation 3 • Proceed to Theme subsystem • Since there is no thematic specification in the input, choose Unmarked Theme – Insert theme and rheme functions – Conflate theme with subject and rheme with predicator,object
  • 17. Jan 2004 CSA3050: NLG2 17 Output of Mood Subsystem Mood subject finite predicator object Transitivity actor process goal Theme theme rheme
  • 18. Jan 2004 CSA3050: NLG2 18 Generation 4 • Generation now recursively enters the grammar at lower levels to fully specify – the phrases (noun phrase network, auxiliary network – not shown here) – lexical items (usually through entries in the knowledge base) – and possibly morphological choices
  • 19. Jan 2004 CSA3050: NLG2 19 Result of Generation the system will save the document Mood subject finite predicator object Transitivity actor process goal Theme theme rheme
  • 20. Jan 2004 CSA3050: NLG2 20 Functional Unification Grammar • Build the generation grammar as a feature structure (FS) • Build input specification as an FS • Unify the two together (functional unification operation). • Linearize result.
  • 21. Jan 2004 CSA3050: NLG2 21 Feature Structures • Feature structures are essentially sets of attribute value pairs attribute1 value1 attribute2 value2 : attribute3 value3
  • 22. Jan 2004 CSA3050: NLG2 22 Feature Structure 2 • These can be used to express facts of different kinds name mike height 156 : eyes green number sing gender masc : case nom human facts agreement facts
  • 23. Jan 2004 CSA3050: NLG2 23 Feature Structures 3 • Furthermore, values can themselves be feature structures number sing gender masc case nom cat NP agreement
  • 24. Jan 2004 CSA3050: NLG2 24 Functional Unification • The information in feature structures can be combined together by means of the functional unification () operation. name mike height 156 eyes green name mike height 156 eyes green  =
  • 25. 25 Grammar as a Feature Structure
  • 26. Jan 2004 CSA3050: NLG2 26 Input Specification – as a Feature Structure cat S actor head lex system process head lex save tense future goal head lex document
  • 27. 27 Partial Result cat S actor cat NP head lex system process cat VP number {actor number} head lex save tense future goal cat NP head lex document pattern (actor process goal)