SlideShare a Scribd company logo
1 of 26
1
SEMANTIC PROCESSING
• Concerned with meaning of the sentence
• Many words have several meanings
mean (1) verb to signify
(2) adjective unpleasant or cheap
(3) noun statistical average
This is known as lexical ambiguity. To remove
this, each word is associated with the context
word senses, also called semantic markers as
2
SEMANTIC PROCESSING (Contd..)
1. Location 2. Physical-Object 3. Animate-Object
4. Abstract-Object
For example – at requires a time or a location as its object.
• The verb hate prefers a subject that is animate.
• John hates the cold – conveys the feeling of person.
• My lawn hates the cold – no animate object.
Other methods for semantic processing are
• Semantic grammars
• Case grammars
• Conceptual parsing
• Approximately compositional semantic interpretation.
3
SEMANTIC GRAMMAR
• Encodes semantic information in syntactic
grammar.
• Uses context-free rewrite rules with non
terminal semantic constituents as attribute,
object etc.
• The choice of non terminals and production
rules are governed by semantic as well as
syntactic information.
• The grammar rules are designed around key
semantic concepts.
4
SEMANTIC GRAMMAR (Contd..)
Consider the sentence
Example – 1 : I want to print Bill’s .init file
In this the semantic action is a command action.
The grammar rules for the above sentence are
S  I want to Action
Action  Print File
File  File-name/File1
File1  User’s File2
File2  Ext. File
Ext.  .init /.txt/.lsp
User  Bill
5
SEMANTIC GRAMMAR (Contd..)
Example – 2 : What is the extension of file ?
S  What is File-property of file ?
In – this the semantic action is a query.
File-Property  The File-Prop
File-Prop  extension/protection/ creation date/owner
Applications Include
• Lifer - a Data Base query system for navy and
• Sophie - a Tutorial System to teach the debugging of
circuit faults.
• Queries in LIFER include
- “What is the name and location of the carrier nearest
to New York ?”
- “Who commands the KENNEDY?”
6
TRANSFORMATIONAL GRAMMARS
• Generative grammars produce different
structures for sentences having the same
meaning.
Ex : Active and passive forms of a
sentence Rama killed Ravana
Ravana was killed by Rama
7
TRANSFORMATIONAL GRAMMARS (Contd..)
S S
NP VP NP VP
Verb PP
RAMA v NP Ravana
Aux v Prep NP
Killed
Ravana
was killed by Rama
Structures for above active and passive sentences
8
TRANSFORMATIONAL GRAMMARS (Contd..)
• Chomsky extended generative grammar to produce
same internal knowledge structures for sentences with
same meaning.
• Single representation is possible through a series of
transformations
(Killed
(agent Rama
Object Ravana))
• Transformational generative grammar includes
generative grammar, semantic component, and
phonological component (Produces meaning and sound
sequences to syntactic component).
9
CASE GRAMMARS
• Fillmore extended transformational grammars to
include more semantic aspects.
• Case is used to extract the meaning of sentences.
• Mood : Group of forms of a verb indicating a fact, a
possibility or a condition.
S  M + P
M – Modality constituent composed of mood, tense,
aspect, negation etc.
Mood represents verb category as indicative,
imperative, or subjunctive (question, condition or a
wish)
P – Consists of one or more cases
P  C1 + C2 + C3 + …. Ck
10
CASE GRAMMARS (Contd..)
Examples of Cases :
• The case of an instigator of action
(agentive case)
• The case of an instrument or object used in an
action (instrumental case)
• The case of an object receiving the action
(objective case)
• The case of location of an event (locative case)
• The case of an entity effected by an action
(dative case) etc.
11
CASE GRAMMARS (Contd..)
“The soldier struck the suspect with the rifle butt”
The soldier is the agentive case.
The suspect is the objective case.
The rifle butt is the instrumental case.
Case frames are provided for verbs to identify allowable
cases.
Struck [ Objective (Agentive) (Instrumental) ]
Verb struck must occur in sentences with a noun phrase
in the objective case and optionally with noun phrases in
the agentive and instrumental cases.
12
CASE GRAMMARS (Contd..)
S Rama killed Ravana
S
M P P
M
V C1 C2
Declarative V C1 C2
negation Declaration
Past past kill Rama
Take Sue The car Ravana
Case grammar tree representation for the sentence
“Sue did not take the car” and “Rama killed Ravana”
13
CONCEPTUAL PARSING
• Finds the structure and meaning of a sentence in one
step.
• Uses a dictionary that describes the meaning of words
as conceptual dependency (CD) structures.
• CD representation involves a syntactic processor that
extracts the main noun and verb and determines the
aspectual class of the verb based on the environment in
which a verb can appear.
Example : The dictionary entries for want.
Wanting : something to happen (stative) (It must rain)
Wanting an object (Transitive) (The little boy wants a toy)
Wanting a person (intransitive) (The boss wanted his
subordinate to work hard)
14
CONCEPTUAL PARSING (Contd..)
Consider the sentence
“John wanted Mary to go to the store”.
the store
cf
Mary  ptrans O MARY
I
John  pleased
< PTRANS --- Go >
I relationship between two conceptualities
PP  PA means PP (picture producer) has an
attribute PA (picture aider)
C condition f future, ptrans – go, I Relationship between two
conceptualizations,  agent-verb relation
• The dictionary entry of the verb is chosen
• The conceptual processor analyses the sentence and fills the
empty slots.
15
COMPOSITIONAL SEMANTICS
• Also known as Montague semantics.
• For every step in syntactic parsing process
there is a corresponding step in semantic
interpretation.
• Semantic interpretation rules are applied
to each syntactic constituent and an
interpretation for the sentence is produced
• consider the sentence
• “I want to print Bill’s .init file”
16
COMPOSITIONAL SEMANTICS (Contd..)
Knowledge base (KB) for the sentence
User
is a : Person
name : must be <string>
Printing
is a : Physical event
agent : must be < animate>
Object : must be <state or event>
Wanting
is a : Mental-event
agent : must be <animate>
performer : must be <animate or program>
object : must be <event>
17
COMPOSITIONAL SEMANTICS (Contd..)
Compositional semantic rules describe the
mapping of the verbs in terms of events in
the KB.
Want  unit instance : wanting
Subject : agent : RM i ;
Object : object : RM j ;
(RMi ; RMj are Reference Markers)
18
COMPOSITIONAL SEMANTICS (Contd..)
Print  unit
instance : printing
Subject : agent : RM i
Object : object : RM j
• Init
modifying NPI  unit for NP1 plus
extension . init
Possessive marker  unit for NP2 plus owner : NP1
(NP1’s NP2)
“file”  unit
instance : File-structure
“Bill”  unit
instance : person
first-name : Bill
(NP1, NP2 are NOUN PHRASE 1 and NOUN PHRASE 2)
19
COMPOSITIONAL SEMANTICS (Contd..)
• The semantic rules implicitly make available to the
semantic processing system all the information
contained in the KB.
• For example, for the verb want, combining mapping
knowledge in semantic rule with KB constraints,
unit
instance : wanting
agent : RM i
must be < animate >
object : RM j
must be < state or event >
20
COMPOSITIONAL SEMANTICS (Contd..)
There are limitations in qualified expressions
“ John only eats meat on Friday and Mary does too”.
can be interpreted as
Meat is the only thing that John eats on Friday.
The control between syntactic and semantic
processors can be to
• apply semantic interpretation to a syntactic
constituent.
• parse entire sentence and interpret the whole
thing.
21
DISCOURSE AND PRAGMATIC PROCESSING
Discourse means written or spoken communication or a formal discussion of
debate
Pragmatics is a subfield of linguistics which studies the ways in which
context contributes to meaning
• To recognize relationships among sentences, a great deal of knowledge
about the world is required.
• Some examples of relationships between phrases and parts of discourse
contexts
• Identical entities :
- Bill had red balloon
- John wanted it red balloon
• Parts of entities
Sue opened the book she just bought
The title page was torn (refers to the page of the book)
• Parts of action :
- John went on a business trip to New York
- He left on an early morning flight
Taking a flight refers to the action of going on a trip
22
DISCOURSE AND PRAGMATIC PROCESSING (Contd..)
• Names of individuals :
- Dave went to the movie person’s name
• Casual chains :
- There was big snow storm yesterday
- The schools were closed today
snow storm was the reason for closing of schools.
Planning Sequence :
– Salley wanted a new car. Getting a job due to desire for
a
She decided to get a job. new car
Illocutionary force : It sure is cold in here
intended effect may be expecting to close the window or turn up
the thermostat.
23
DISCOURSE AND PRAGMATIC PROCESSING (Contd..)
• Implicit Presumptions
- Did joe clear CSIO1
Presuppositions Include
• – CSIO1 is a valid course
- John is a student
- John took the course
• Programs to understand such contexts require
large knowledge bases or strong constraints on
the domain of discourse to limit the KB.
• The way the knowledge is organized is critical to
the success of the understanding program.
24
Kinds of knowledge in discourse and
pragramatic Programming
• Four kinds of knowledge can be identified
1. The current focus of the dialogue.
2. A model of each participant’s current beliefs
3. The goal driven character of dialogue
4. The rules of conversation shared by all
participants.
• The goal is to reason about objects, events,
goals, beliefs, plans and likelihoods into NLU.
25
Using Focus in understanding
There are two tasks :
• Focus on the relevant parts of the KB.
• Use that knowledge to make connections among things
that were said.
Some mechanisms for focusing.
• Using appropriate scripts such as hotel script.
• By giving highly simplified instruction
- To make the cake, combine all ingredients pour them
into the pan, and bake for 30 mns.
• Use phrases (explicitly) such as “on the other hand” to
return to an earlier topic or “a second issue is” to
denote the continuation of a topic.
26
How to use the focused knowledge ?
• Any object in a KB relates somehow to
almost to any other. Some highly
important relations include physical-part-
of, temporal part-of, and element of.
Consider “sue opened the book she just
bought”
“The title page was torn”
In this physical-part-of relates the title
page to the book that is in focus.

More Related Content

What's hot

Muwanika rogers (software testing) muni university
Muwanika rogers (software testing) muni universityMuwanika rogers (software testing) muni university
Muwanika rogers (software testing) muni universityrogers muwanika
 
Capturing comprehensive storage workload traces in windows
Capturing comprehensive storage workload traces in windowsCapturing comprehensive storage workload traces in windows
Capturing comprehensive storage workload traces in windowsBruce Worthington
 
Chapter 6 intermediate code generation
Chapter 6   intermediate code generationChapter 6   intermediate code generation
Chapter 6 intermediate code generationVipul Naik
 
Algorithm paradigms
Algorithm paradigmsAlgorithm paradigms
Algorithm paradigmssuresh5c2
 
Expert Systems & Prolog
Expert Systems & PrologExpert Systems & Prolog
Expert Systems & PrologFatih Karatana
 
Búsqueda informada y exploración
Búsqueda informada y exploraciónBúsqueda informada y exploración
Búsqueda informada y exploraciónJeffoG92
 
RISC-V & SoC Architectural Exploration for AI and ML Accelerators
RISC-V & SoC Architectural Exploration for AI and ML AcceleratorsRISC-V & SoC Architectural Exploration for AI and ML Accelerators
RISC-V & SoC Architectural Exploration for AI and ML AcceleratorsRISC-V International
 
Concurrency & Parallel Programming
Concurrency & Parallel ProgrammingConcurrency & Parallel Programming
Concurrency & Parallel ProgrammingRamazan AYYILDIZ
 
Lecture 05 problem solving through ai
Lecture 05 problem solving through aiLecture 05 problem solving through ai
Lecture 05 problem solving through aiHema Kashyap
 
Production systems
Production systemsProduction systems
Production systemsAdri Jovin
 
Expert system 21 sldes
Expert system 21 sldesExpert system 21 sldes
Expert system 21 sldesYasir Khan
 
ARTIFICIAL INTELLIGENCE & NEURAL NETWORKS
ARTIFICIAL INTELLIGENCE & NEURAL NETWORKSARTIFICIAL INTELLIGENCE & NEURAL NETWORKS
ARTIFICIAL INTELLIGENCE & NEURAL NETWORKSEr Kaushal
 
BIG MART SALES PRIDICTION PROJECT.pptx
BIG MART SALES PRIDICTION PROJECT.pptxBIG MART SALES PRIDICTION PROJECT.pptx
BIG MART SALES PRIDICTION PROJECT.pptxLSURYAPRAKASHREDDY
 

What's hot (20)

Sorting algorithms
Sorting algorithmsSorting algorithms
Sorting algorithms
 
NLP
NLPNLP
NLP
 
Muwanika rogers (software testing) muni university
Muwanika rogers (software testing) muni universityMuwanika rogers (software testing) muni university
Muwanika rogers (software testing) muni university
 
Capturing comprehensive storage workload traces in windows
Capturing comprehensive storage workload traces in windowsCapturing comprehensive storage workload traces in windows
Capturing comprehensive storage workload traces in windows
 
Chapter 6 intermediate code generation
Chapter 6   intermediate code generationChapter 6   intermediate code generation
Chapter 6 intermediate code generation
 
NP completeness
NP completenessNP completeness
NP completeness
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Algorithm paradigms
Algorithm paradigmsAlgorithm paradigms
Algorithm paradigms
 
Expert Systems & Prolog
Expert Systems & PrologExpert Systems & Prolog
Expert Systems & Prolog
 
Búsqueda informada y exploración
Búsqueda informada y exploraciónBúsqueda informada y exploración
Búsqueda informada y exploración
 
RISC-V & SoC Architectural Exploration for AI and ML Accelerators
RISC-V & SoC Architectural Exploration for AI and ML AcceleratorsRISC-V & SoC Architectural Exploration for AI and ML Accelerators
RISC-V & SoC Architectural Exploration for AI and ML Accelerators
 
Concurrency & Parallel Programming
Concurrency & Parallel ProgrammingConcurrency & Parallel Programming
Concurrency & Parallel Programming
 
Lecture 05 problem solving through ai
Lecture 05 problem solving through aiLecture 05 problem solving through ai
Lecture 05 problem solving through ai
 
Production systems
Production systemsProduction systems
Production systems
 
Expected questions in Artificial Intelligence
Expected questions in Artificial IntelligenceExpected questions in Artificial Intelligence
Expected questions in Artificial Intelligence
 
Expert system 21 sldes
Expert system 21 sldesExpert system 21 sldes
Expert system 21 sldes
 
ARTIFICIAL INTELLIGENCE & NEURAL NETWORKS
ARTIFICIAL INTELLIGENCE & NEURAL NETWORKSARTIFICIAL INTELLIGENCE & NEURAL NETWORKS
ARTIFICIAL INTELLIGENCE & NEURAL NETWORKS
 
BIG MART SALES PRIDICTION PROJECT.pptx
BIG MART SALES PRIDICTION PROJECT.pptxBIG MART SALES PRIDICTION PROJECT.pptx
BIG MART SALES PRIDICTION PROJECT.pptx
 
Np complete
Np completeNp complete
Np complete
 

Similar to Lec12 semantic processing

Natural Language Processing Course in AI
Natural Language Processing Course in AINatural Language Processing Course in AI
Natural Language Processing Course in AISATHYANARAYANAKB
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language ProcessingPranav Gupta
 
Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4DigiGurukul
 
Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...RajkiranVeluri
 
Semantics and Computational Semantics
Semantics and Computational SemanticsSemantics and Computational Semantics
Semantics and Computational SemanticsMarina Santini
 
Different Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering SystemsDifferent Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering SystemsAndre Freitas
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingToine Bogers
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxRuchitaMaaran
 
Sanskrit in Natural Language Processing
Sanskrit in Natural Language ProcessingSanskrit in Natural Language Processing
Sanskrit in Natural Language ProcessingHitesh Joshi
 
Effective Semantics for Engineering NLP Systems
Effective Semantics for Engineering NLP SystemsEffective Semantics for Engineering NLP Systems
Effective Semantics for Engineering NLP SystemsAndre Freitas
 
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...Seth Grimes
 
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...Seth Grimes
 
Lexical Semantics, Semantic Similarity and Relevance for SEO
Lexical Semantics, Semantic Similarity and Relevance for SEOLexical Semantics, Semantic Similarity and Relevance for SEO
Lexical Semantics, Semantic Similarity and Relevance for SEOKoray Tugberk GUBUR
 
lexical-semantics-221118101910-ccd46ac3.pdf
lexical-semantics-221118101910-ccd46ac3.pdflexical-semantics-221118101910-ccd46ac3.pdf
lexical-semantics-221118101910-ccd46ac3.pdfGagu6
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxkitsenthilkumarcse
 

Similar to Lec12 semantic processing (20)

Natural Language Processing Course in AI
Natural Language Processing Course in AINatural Language Processing Course in AI
Natural Language Processing Course in AI
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4
 
Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...
 
Semantics and Computational Semantics
Semantics and Computational SemanticsSemantics and Computational Semantics
Semantics and Computational Semantics
 
AI Lesson 11
AI Lesson 11AI Lesson 11
AI Lesson 11
 
Lesson 41.pdf
Lesson 41.pdfLesson 41.pdf
Lesson 41.pdf
 
Different Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering SystemsDifferent Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering Systems
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
 
Sanskrit in Natural Language Processing
Sanskrit in Natural Language ProcessingSanskrit in Natural Language Processing
Sanskrit in Natural Language Processing
 
NLP_KASHK: Introduction
NLP_KASHK: Introduction NLP_KASHK: Introduction
NLP_KASHK: Introduction
 
NLP
NLPNLP
NLP
 
NLP
NLPNLP
NLP
 
Effective Semantics for Engineering NLP Systems
Effective Semantics for Engineering NLP SystemsEffective Semantics for Engineering NLP Systems
Effective Semantics for Engineering NLP Systems
 
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
 
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
 
Lexical Semantics, Semantic Similarity and Relevance for SEO
Lexical Semantics, Semantic Similarity and Relevance for SEOLexical Semantics, Semantic Similarity and Relevance for SEO
Lexical Semantics, Semantic Similarity and Relevance for SEO
 
lexical-semantics-221118101910-ccd46ac3.pdf
lexical-semantics-221118101910-ccd46ac3.pdflexical-semantics-221118101910-ccd46ac3.pdf
lexical-semantics-221118101910-ccd46ac3.pdf
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptx
 

More from Manju Rajput

More from Manju Rajput (12)

1111111112
11111111121111111112
1111111112
 
Tools for data warehousing
Tools  for data warehousingTools  for data warehousing
Tools for data warehousing
 
Snake project report
Snake project reportSnake project report
Snake project report
 
Crucial decisions in designing a data warehouse
Crucial decisions in designing a data warehouseCrucial decisions in designing a data warehouse
Crucial decisions in designing a data warehouse
 
Metadata
MetadataMetadata
Metadata
 
Fuzzylogic
FuzzylogicFuzzylogic
Fuzzylogic
 
Fuzzylogic
Fuzzylogic Fuzzylogic
Fuzzylogic
 
Crt display devices
Crt display devicesCrt display devices
Crt display devices
 
blue brain technology
blue brain technologyblue brain technology
blue brain technology
 
Introduction cg
Introduction cgIntroduction cg
Introduction cg
 
Autocad
AutocadAutocad
Autocad
 
Onlinejob
OnlinejobOnlinejob
Onlinejob
 

Recently uploaded

EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutionsmonugehlot87
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 

Recently uploaded (20)

EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutions
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 

Lec12 semantic processing

  • 1. 1 SEMANTIC PROCESSING • Concerned with meaning of the sentence • Many words have several meanings mean (1) verb to signify (2) adjective unpleasant or cheap (3) noun statistical average This is known as lexical ambiguity. To remove this, each word is associated with the context word senses, also called semantic markers as
  • 2. 2 SEMANTIC PROCESSING (Contd..) 1. Location 2. Physical-Object 3. Animate-Object 4. Abstract-Object For example – at requires a time or a location as its object. • The verb hate prefers a subject that is animate. • John hates the cold – conveys the feeling of person. • My lawn hates the cold – no animate object. Other methods for semantic processing are • Semantic grammars • Case grammars • Conceptual parsing • Approximately compositional semantic interpretation.
  • 3. 3 SEMANTIC GRAMMAR • Encodes semantic information in syntactic grammar. • Uses context-free rewrite rules with non terminal semantic constituents as attribute, object etc. • The choice of non terminals and production rules are governed by semantic as well as syntactic information. • The grammar rules are designed around key semantic concepts.
  • 4. 4 SEMANTIC GRAMMAR (Contd..) Consider the sentence Example – 1 : I want to print Bill’s .init file In this the semantic action is a command action. The grammar rules for the above sentence are S  I want to Action Action  Print File File  File-name/File1 File1  User’s File2 File2  Ext. File Ext.  .init /.txt/.lsp User  Bill
  • 5. 5 SEMANTIC GRAMMAR (Contd..) Example – 2 : What is the extension of file ? S  What is File-property of file ? In – this the semantic action is a query. File-Property  The File-Prop File-Prop  extension/protection/ creation date/owner Applications Include • Lifer - a Data Base query system for navy and • Sophie - a Tutorial System to teach the debugging of circuit faults. • Queries in LIFER include - “What is the name and location of the carrier nearest to New York ?” - “Who commands the KENNEDY?”
  • 6. 6 TRANSFORMATIONAL GRAMMARS • Generative grammars produce different structures for sentences having the same meaning. Ex : Active and passive forms of a sentence Rama killed Ravana Ravana was killed by Rama
  • 7. 7 TRANSFORMATIONAL GRAMMARS (Contd..) S S NP VP NP VP Verb PP RAMA v NP Ravana Aux v Prep NP Killed Ravana was killed by Rama Structures for above active and passive sentences
  • 8. 8 TRANSFORMATIONAL GRAMMARS (Contd..) • Chomsky extended generative grammar to produce same internal knowledge structures for sentences with same meaning. • Single representation is possible through a series of transformations (Killed (agent Rama Object Ravana)) • Transformational generative grammar includes generative grammar, semantic component, and phonological component (Produces meaning and sound sequences to syntactic component).
  • 9. 9 CASE GRAMMARS • Fillmore extended transformational grammars to include more semantic aspects. • Case is used to extract the meaning of sentences. • Mood : Group of forms of a verb indicating a fact, a possibility or a condition. S  M + P M – Modality constituent composed of mood, tense, aspect, negation etc. Mood represents verb category as indicative, imperative, or subjunctive (question, condition or a wish) P – Consists of one or more cases P  C1 + C2 + C3 + …. Ck
  • 10. 10 CASE GRAMMARS (Contd..) Examples of Cases : • The case of an instigator of action (agentive case) • The case of an instrument or object used in an action (instrumental case) • The case of an object receiving the action (objective case) • The case of location of an event (locative case) • The case of an entity effected by an action (dative case) etc.
  • 11. 11 CASE GRAMMARS (Contd..) “The soldier struck the suspect with the rifle butt” The soldier is the agentive case. The suspect is the objective case. The rifle butt is the instrumental case. Case frames are provided for verbs to identify allowable cases. Struck [ Objective (Agentive) (Instrumental) ] Verb struck must occur in sentences with a noun phrase in the objective case and optionally with noun phrases in the agentive and instrumental cases.
  • 12. 12 CASE GRAMMARS (Contd..) S Rama killed Ravana S M P P M V C1 C2 Declarative V C1 C2 negation Declaration Past past kill Rama Take Sue The car Ravana Case grammar tree representation for the sentence “Sue did not take the car” and “Rama killed Ravana”
  • 13. 13 CONCEPTUAL PARSING • Finds the structure and meaning of a sentence in one step. • Uses a dictionary that describes the meaning of words as conceptual dependency (CD) structures. • CD representation involves a syntactic processor that extracts the main noun and verb and determines the aspectual class of the verb based on the environment in which a verb can appear. Example : The dictionary entries for want. Wanting : something to happen (stative) (It must rain) Wanting an object (Transitive) (The little boy wants a toy) Wanting a person (intransitive) (The boss wanted his subordinate to work hard)
  • 14. 14 CONCEPTUAL PARSING (Contd..) Consider the sentence “John wanted Mary to go to the store”. the store cf Mary  ptrans O MARY I John  pleased < PTRANS --- Go > I relationship between two conceptualities PP  PA means PP (picture producer) has an attribute PA (picture aider) C condition f future, ptrans – go, I Relationship between two conceptualizations,  agent-verb relation • The dictionary entry of the verb is chosen • The conceptual processor analyses the sentence and fills the empty slots.
  • 15. 15 COMPOSITIONAL SEMANTICS • Also known as Montague semantics. • For every step in syntactic parsing process there is a corresponding step in semantic interpretation. • Semantic interpretation rules are applied to each syntactic constituent and an interpretation for the sentence is produced • consider the sentence • “I want to print Bill’s .init file”
  • 16. 16 COMPOSITIONAL SEMANTICS (Contd..) Knowledge base (KB) for the sentence User is a : Person name : must be <string> Printing is a : Physical event agent : must be < animate> Object : must be <state or event> Wanting is a : Mental-event agent : must be <animate> performer : must be <animate or program> object : must be <event>
  • 17. 17 COMPOSITIONAL SEMANTICS (Contd..) Compositional semantic rules describe the mapping of the verbs in terms of events in the KB. Want  unit instance : wanting Subject : agent : RM i ; Object : object : RM j ; (RMi ; RMj are Reference Markers)
  • 18. 18 COMPOSITIONAL SEMANTICS (Contd..) Print  unit instance : printing Subject : agent : RM i Object : object : RM j • Init modifying NPI  unit for NP1 plus extension . init Possessive marker  unit for NP2 plus owner : NP1 (NP1’s NP2) “file”  unit instance : File-structure “Bill”  unit instance : person first-name : Bill (NP1, NP2 are NOUN PHRASE 1 and NOUN PHRASE 2)
  • 19. 19 COMPOSITIONAL SEMANTICS (Contd..) • The semantic rules implicitly make available to the semantic processing system all the information contained in the KB. • For example, for the verb want, combining mapping knowledge in semantic rule with KB constraints, unit instance : wanting agent : RM i must be < animate > object : RM j must be < state or event >
  • 20. 20 COMPOSITIONAL SEMANTICS (Contd..) There are limitations in qualified expressions “ John only eats meat on Friday and Mary does too”. can be interpreted as Meat is the only thing that John eats on Friday. The control between syntactic and semantic processors can be to • apply semantic interpretation to a syntactic constituent. • parse entire sentence and interpret the whole thing.
  • 21. 21 DISCOURSE AND PRAGMATIC PROCESSING Discourse means written or spoken communication or a formal discussion of debate Pragmatics is a subfield of linguistics which studies the ways in which context contributes to meaning • To recognize relationships among sentences, a great deal of knowledge about the world is required. • Some examples of relationships between phrases and parts of discourse contexts • Identical entities : - Bill had red balloon - John wanted it red balloon • Parts of entities Sue opened the book she just bought The title page was torn (refers to the page of the book) • Parts of action : - John went on a business trip to New York - He left on an early morning flight Taking a flight refers to the action of going on a trip
  • 22. 22 DISCOURSE AND PRAGMATIC PROCESSING (Contd..) • Names of individuals : - Dave went to the movie person’s name • Casual chains : - There was big snow storm yesterday - The schools were closed today snow storm was the reason for closing of schools. Planning Sequence : – Salley wanted a new car. Getting a job due to desire for a She decided to get a job. new car Illocutionary force : It sure is cold in here intended effect may be expecting to close the window or turn up the thermostat.
  • 23. 23 DISCOURSE AND PRAGMATIC PROCESSING (Contd..) • Implicit Presumptions - Did joe clear CSIO1 Presuppositions Include • – CSIO1 is a valid course - John is a student - John took the course • Programs to understand such contexts require large knowledge bases or strong constraints on the domain of discourse to limit the KB. • The way the knowledge is organized is critical to the success of the understanding program.
  • 24. 24 Kinds of knowledge in discourse and pragramatic Programming • Four kinds of knowledge can be identified 1. The current focus of the dialogue. 2. A model of each participant’s current beliefs 3. The goal driven character of dialogue 4. The rules of conversation shared by all participants. • The goal is to reason about objects, events, goals, beliefs, plans and likelihoods into NLU.
  • 25. 25 Using Focus in understanding There are two tasks : • Focus on the relevant parts of the KB. • Use that knowledge to make connections among things that were said. Some mechanisms for focusing. • Using appropriate scripts such as hotel script. • By giving highly simplified instruction - To make the cake, combine all ingredients pour them into the pan, and bake for 30 mns. • Use phrases (explicitly) such as “on the other hand” to return to an earlier topic or “a second issue is” to denote the continuation of a topic.
  • 26. 26 How to use the focused knowledge ? • Any object in a KB relates somehow to almost to any other. Some highly important relations include physical-part- of, temporal part-of, and element of. Consider “sue opened the book she just bought” “The title page was torn” In this physical-part-of relates the title page to the book that is in focus.