SlideShare a Scribd company logo
5
Most read
6
Most read
8
Most read
Representation of Syntax,
Semantics and Predicate logics
Prof. Neeraj Bhargava
Kapil Chauhan
Department of Computer Science
School of Engineering & Systems Sciences
MDS University, Ajmer
Text Semantics
• In Natural Language Processing (NLP), semantics is
concerned with the meanings of texts.
• There are two main approaches:
• Propositional or formal semantics: A block of text is to
converted into a formula in a logical language, e.g.
predicate calculus.
• Vector representation. Texts are embedded into a high-
dimensional space.
Representation
 AI agents deal with knowledge (data)
 Facts (believe & observe knowledge)
 Procedures (how to knowledge)
 Meaning (relate & define knowledge)
 Right representation is crucial
 Early realisation in AI
 Wrong choice can lead to project failure
 Active research area
Some General Representations
 Logical Representations
 Production Rules
 Semantic Networks
• Conceptual graphs, frames
 Description Logics
What is a Logic?
 A language with concrete rules
 No ambiguity in representation (may be other errors!)
 Allows unambiguous communication and processing
 Many ways to translate between languages
 A statement can be represented in different logics
 And perhaps differently in same logic
 Expressiveness of a logic
 How much can we say in this language?
 Not to be confused with logical reasoning
 Logics are languages, reasoning is a process (may use logic)
Syntax and Semantics
 Syntax
 Rules for constructing legal sentences in the logic
 Which symbols we can use (English: letters, punctuation)
 How we are allowed to combine symbols
 Semantics
 How we interpret (read) sentences in the logic
 Assigns a meaning to each sentence
 Example: “All lecturers are five foot tall”
 A valid sentence (syntax)
 And we can understand the meaning (semantics)
 This sentence happens to be false (there is a counterexample)
Propositional Logic
 Syntax
 Propositions, e.g. “it is wet”
 Connectives: and, or, not, implies, iff (equivalent)
 Brackets, T (true) and F (false)
 Semantics
 Define how connectives affect truth
 “P and Q” is true if and only if P is true and Q is true
 Use truth tables to work out the truth of statements
Predicate Logic
 Propositional logic combines atoms
 An atom contains no propositional connectives
 Have no structure (today_is_wet, john_likes_apples)
 Predicates allow us to talk about objects
 Properties: is_wet(today)
 Relations: likes(john, apples)
 In predicate logic each atom is a predicate
 e.g. first order logic, higher-order logic
Representation & Logic
 AI wanted “non-logical representations”
 Production rules
 Semantic networks
 Conceptual graphs, frames
 But all can be expressed in first order logic!
 Best of both worlds
 Logical reading ensures representation well-defined
 Representations specialised for applications
 Can make reasoning easier, more intuitive
Assignment
 Explain predicate logic with example.

More Related Content

PPTX
Semantics analysis
PPTX
Natural Language Processing: Parsing
PPT
Lexical Analysis
PDF
Nlp ambiguity presentation
PPTX
NLP_KASHK:Finite-State Morphological Parsing
PDF
Introduction to algorithms
PPTX
Error Recovery strategies and yacc | Compiler Design
PDF
Syntax directed translation
Semantics analysis
Natural Language Processing: Parsing
Lexical Analysis
Nlp ambiguity presentation
NLP_KASHK:Finite-State Morphological Parsing
Introduction to algorithms
Error Recovery strategies and yacc | Compiler Design
Syntax directed translation

What's hot (20)

PDF
Lecture 3 basic syntax and semantics
PPT
Compiler Design
PDF
Syntactic analysis in NLP
PPT
5.2 divide and conquer
PPT
Compiler Design Basics
PPT
Introduction to Compiler design
PPT
Compiler Construction introduction
PPTX
Language for specifying lexical Analyzer
PPTX
Text similarity measures
PPTX
Round Robin Algorithm.pptx
PPTX
NLP_KASHK:Smoothing N-gram Models
PPTX
Asymptotic Notations
PPTX
Semantic analysis
PPTX
Lexical analysis - Compiler Design
PDF
Function arguments In Python
PPT
Amharic WSD using WordNet
PPTX
Parallel computing
PPTX
Nlp toolkits and_preprocessing_techniques
PPTX
Language models
PPTX
Semantic interpretation
Lecture 3 basic syntax and semantics
Compiler Design
Syntactic analysis in NLP
5.2 divide and conquer
Compiler Design Basics
Introduction to Compiler design
Compiler Construction introduction
Language for specifying lexical Analyzer
Text similarity measures
Round Robin Algorithm.pptx
NLP_KASHK:Smoothing N-gram Models
Asymptotic Notations
Semantic analysis
Lexical analysis - Compiler Design
Function arguments In Python
Amharic WSD using WordNet
Parallel computing
Nlp toolkits and_preprocessing_techniques
Language models
Semantic interpretation
Ad

Similar to Representation of syntax, semantics and Predicate logics (20)

PPTX
Possible Word Representation
PPT
knowledge representation artificial intelligent CSE 315
PPTX
chapter2 Know.representation.pptx
PPT
9_2019_01_04!07_19_02_ natural languagePM.ppt
PPT
9_2019_01_04!07_19_02_PM mustansiria.ppt
PPT
lecture4.ppt is no sql database introduction
PPT
Knowledge Representation in Artificial intelligence
PPTX
Knowledege Representation.pptx
PPTX
AI3391 Artificial Intelligence Session 26 First order logic.pptx
PDF
BCS515B Module 4 vtu notes : Artificial Intelligence Module 4 .pdf
PPTX
Knowledge & logic in Artificial Intelligence.pptx
PPTX
Basic Knowledge Representation and Reasonong
PDF
Artificial intelligence course work
PPTX
Propositional logic
PPTX
Lecture 1-3-Logics-In-computer-science.pptx
PPTX
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
PPT
Semantic natural language processing ppt
PPTX
First order predicate logic(fopl)
PDF
AIES Unit_2 (2022).pdf.........../..............
PPTX
Lecture 2: From Semantics To Semantic-Oriented Applications
Possible Word Representation
knowledge representation artificial intelligent CSE 315
chapter2 Know.representation.pptx
9_2019_01_04!07_19_02_ natural languagePM.ppt
9_2019_01_04!07_19_02_PM mustansiria.ppt
lecture4.ppt is no sql database introduction
Knowledge Representation in Artificial intelligence
Knowledege Representation.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptx
BCS515B Module 4 vtu notes : Artificial Intelligence Module 4 .pdf
Knowledge & logic in Artificial Intelligence.pptx
Basic Knowledge Representation and Reasonong
Artificial intelligence course work
Propositional logic
Lecture 1-3-Logics-In-computer-science.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
Semantic natural language processing ppt
First order predicate logic(fopl)
AIES Unit_2 (2022).pdf.........../..............
Lecture 2: From Semantics To Semantic-Oriented Applications
Ad

More from chauhankapil (20)

PPTX
Gray level transformation
PPTX
Elements of visual perception
PPTX
JSP Client Request
PPTX
Jsp server response
PPTX
Markov decision process
PPTX
RNN basics in deep learning
PPTX
Introduction to generative adversarial networks (GANs)
PPTX
Bayesian probabilistic interference
PPTX
PPTX
Exception handling in java
PPTX
Knowledge acquistion
PPTX
Knowledge based system
PPTX
Introduction of predicate logics
PPTX
Types of inheritance in java
PPTX
Inheritance in java
PPTX
Propositional logic
PPTX
Constructors in java
PPTX
Methods in java
PPT
Circular linked list
PPT
Doubly linked list
Gray level transformation
Elements of visual perception
JSP Client Request
Jsp server response
Markov decision process
RNN basics in deep learning
Introduction to generative adversarial networks (GANs)
Bayesian probabilistic interference
Exception handling in java
Knowledge acquistion
Knowledge based system
Introduction of predicate logics
Types of inheritance in java
Inheritance in java
Propositional logic
Constructors in java
Methods in java
Circular linked list
Doubly linked list

Recently uploaded (20)

PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Geodesy 1.pptx...............................................
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
DOCX
573137875-Attendance-Management-System-original
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPT
Project quality management in manufacturing
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Digital Logic Computer Design lecture notes
PPT
Mechanical Engineering MATERIALS Selection
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
R24 SURVEYING LAB MANUAL for civil enggi
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Automation-in-Manufacturing-Chapter-Introduction.pdf
OOP with Java - Java Introduction (Basics)
Geodesy 1.pptx...............................................
bas. eng. economics group 4 presentation 1.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
573137875-Attendance-Management-System-original
Internet of Things (IOT) - A guide to understanding
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Project quality management in manufacturing
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Digital Logic Computer Design lecture notes
Mechanical Engineering MATERIALS Selection
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf

Representation of syntax, semantics and Predicate logics

  • 1. Representation of Syntax, Semantics and Predicate logics Prof. Neeraj Bhargava Kapil Chauhan Department of Computer Science School of Engineering & Systems Sciences MDS University, Ajmer
  • 2. Text Semantics • In Natural Language Processing (NLP), semantics is concerned with the meanings of texts. • There are two main approaches: • Propositional or formal semantics: A block of text is to converted into a formula in a logical language, e.g. predicate calculus. • Vector representation. Texts are embedded into a high- dimensional space.
  • 3. Representation  AI agents deal with knowledge (data)  Facts (believe & observe knowledge)  Procedures (how to knowledge)  Meaning (relate & define knowledge)  Right representation is crucial  Early realisation in AI  Wrong choice can lead to project failure  Active research area
  • 4. Some General Representations  Logical Representations  Production Rules  Semantic Networks • Conceptual graphs, frames  Description Logics
  • 5. What is a Logic?  A language with concrete rules  No ambiguity in representation (may be other errors!)  Allows unambiguous communication and processing  Many ways to translate between languages  A statement can be represented in different logics  And perhaps differently in same logic  Expressiveness of a logic  How much can we say in this language?  Not to be confused with logical reasoning  Logics are languages, reasoning is a process (may use logic)
  • 6. Syntax and Semantics  Syntax  Rules for constructing legal sentences in the logic  Which symbols we can use (English: letters, punctuation)  How we are allowed to combine symbols  Semantics  How we interpret (read) sentences in the logic  Assigns a meaning to each sentence  Example: “All lecturers are five foot tall”  A valid sentence (syntax)  And we can understand the meaning (semantics)  This sentence happens to be false (there is a counterexample)
  • 7. Propositional Logic  Syntax  Propositions, e.g. “it is wet”  Connectives: and, or, not, implies, iff (equivalent)  Brackets, T (true) and F (false)  Semantics  Define how connectives affect truth  “P and Q” is true if and only if P is true and Q is true  Use truth tables to work out the truth of statements
  • 8. Predicate Logic  Propositional logic combines atoms  An atom contains no propositional connectives  Have no structure (today_is_wet, john_likes_apples)  Predicates allow us to talk about objects  Properties: is_wet(today)  Relations: likes(john, apples)  In predicate logic each atom is a predicate  e.g. first order logic, higher-order logic
  • 9. Representation & Logic  AI wanted “non-logical representations”  Production rules  Semantic networks  Conceptual graphs, frames  But all can be expressed in first order logic!  Best of both worlds  Logical reading ensures representation well-defined  Representations specialised for applications  Can make reasoning easier, more intuitive
  • 10. Assignment  Explain predicate logic with example.