SlideShare uma empresa Scribd logo
1 de 13
Possible Word Representation
Prof. Neeraj Bhargava
Kapil Chauhan
Department of Computer Science
School of Engineering & Systems Sciences
MDS University, Ajmer
Outline
 Text Semantics
 Representation
 Choosing representation
 Some General Representations
 What is a logic ?
 Propositional Logic
 Predicate logic
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
Choosing a Representation
 For certain problem solving techniques
 ‘Best’ representation already known
 Often a requirement of the technique
 Or a requirement of the programming language (e.g. Prolog)
 Examples
 First order theorem proving… first order logic
 Inductive logic programming… logic programs
 Neural networks learning… neural networks
 Some general representation schemes
 Suitable for many different (and new) AI applications
Some General Representations
 Logical Representations
 Production Rules
 Semantic Networks
• Conceptual graphs, frames
 Description Logics (see textbook)
What is a Logic?
 A language with concrete rules
 No ambiguity in representation (may be other errors!)
 Allows unambiguous communication and processing
 Very unlike natural languages e.g. English
 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 seven 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 (Classical AKA Boolean)
 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)
 True or false
 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 and propositional logic with
example.
Possible Word Representation

Mais conteúdo relacionado

Mais procurados

Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compiler
Abha Damani
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel system
Manish Singh
 
Parts of Speect Tagging
Parts of Speect TaggingParts of Speect Tagging
Parts of Speect Tagging
theyaseen51
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
Mir Majid
 

Mais procurados (20)

Syntax analysis
Syntax analysisSyntax analysis
Syntax analysis
 
Natural language-processing
Natural language-processingNatural language-processing
Natural language-processing
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
 
NLP.pptx
NLP.pptxNLP.pptx
NLP.pptx
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Introduction to Design Pattern
Introduction to Design  PatternIntroduction to Design  Pattern
Introduction to Design Pattern
 
NLP_KASHK:Morphology
NLP_KASHK:MorphologyNLP_KASHK:Morphology
NLP_KASHK:Morphology
 
Lecture 1: Semantic Analysis in Language Technology
Lecture 1: Semantic Analysis in Language TechnologyLecture 1: Semantic Analysis in Language Technology
Lecture 1: Semantic Analysis in Language Technology
 
Language processors
Language processorsLanguage processors
Language processors
 
Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compiler
 
Java Networking
Java NetworkingJava Networking
Java Networking
 
Distributed & parallel system
Distributed & parallel systemDistributed & parallel system
Distributed & parallel system
 
LISP: Introduction to lisp
LISP: Introduction to lispLISP: Introduction to lisp
LISP: Introduction to lisp
 
Package Diagram
Package DiagramPackage Diagram
Package Diagram
 
Closure properties
Closure propertiesClosure properties
Closure properties
 
Regular Grammar
Regular GrammarRegular Grammar
Regular Grammar
 
Parts of Speect Tagging
Parts of Speect TaggingParts of Speect Tagging
Parts of Speect Tagging
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologies
 
Object-Oriented Analysis and Design
Object-Oriented Analysis and DesignObject-Oriented Analysis and Design
Object-Oriented Analysis and Design
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 

Semelhante a Possible Word Representation

Word Segmentation in Sentence Analysis
Word Segmentation in Sentence AnalysisWord Segmentation in Sentence Analysis
Word Segmentation in Sentence Analysis
Andi Wu
 
Sentence analysis
Sentence analysisSentence analysis
Sentence analysis
krukob9
 
13. Constantin Orasan (UoW) Natural Language Processing for Translation
13. Constantin Orasan (UoW) Natural Language Processing for Translation13. Constantin Orasan (UoW) Natural Language Processing for Translation
13. Constantin Orasan (UoW) Natural Language Processing for Translation
RIILP
 

Semelhante a Possible Word Representation (20)

Representation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logicsRepresentation of syntax, semantics and Predicate logics
Representation of syntax, semantics and Predicate logics
 
REPORT.doc
REPORT.docREPORT.doc
REPORT.doc
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
 
NLP
NLPNLP
NLP
 
Nlp
NlpNlp
Nlp
 
Lecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptxLecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptx
 
The recognition system of sentential
The recognition system of sententialThe recognition system of sentential
The recognition system of sentential
 
Word Segmentation in Sentence Analysis
Word Segmentation in Sentence AnalysisWord Segmentation in Sentence Analysis
Word Segmentation in Sentence Analysis
 
5. phases of nlp
5. phases of nlp5. phases of nlp
5. phases of nlp
 
Sentence analysis
Sentence analysisSentence analysis
Sentence analysis
 
Ai lecture 07(unit03)
Ai lecture  07(unit03)Ai lecture  07(unit03)
Ai lecture 07(unit03)
 
The role of linguistic information for shallow language processing
The role of linguistic information for shallow language processingThe role of linguistic information for shallow language processing
The role of linguistic information for shallow language processing
 
13. Constantin Orasan (UoW) Natural Language Processing for Translation
13. Constantin Orasan (UoW) Natural Language Processing for Translation13. Constantin Orasan (UoW) Natural Language Processing for Translation
13. Constantin Orasan (UoW) Natural Language Processing for Translation
 
Cognitive plausibility in learning algorithms
Cognitive plausibility in learning algorithmsCognitive plausibility in learning algorithms
Cognitive plausibility in learning algorithms
 
The impact of standardized terminologies and domain-ontologies in multilingua...
The impact of standardized terminologies and domain-ontologies in multilingua...The impact of standardized terminologies and domain-ontologies in multilingua...
The impact of standardized terminologies and domain-ontologies in multilingua...
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
chapter2 Know.representation.pptx
chapter2 Know.representation.pptxchapter2 Know.representation.pptx
chapter2 Know.representation.pptx
 
Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logic
 
Textmining
TextminingTextmining
Textmining
 
Challenges in transfer learning in nlp
Challenges in transfer learning in nlpChallenges in transfer learning in nlp
Challenges in transfer learning in nlp
 

Mais de chauhankapil

Elements of visual perception
Elements of visual perceptionElements of visual perception
Elements of visual perception
chauhankapil
 

Mais de chauhankapil (20)

Gray level transformation
Gray level transformationGray level transformation
Gray level transformation
 
Elements of visual perception
Elements of visual perceptionElements of visual perception
Elements of visual perception
 
JSP Client Request
JSP Client RequestJSP Client Request
JSP Client Request
 
Jsp server response
Jsp   server responseJsp   server response
Jsp server response
 
Markov decision process
Markov decision processMarkov decision process
Markov decision process
 
RNN basics in deep learning
RNN basics in deep learningRNN basics in deep learning
RNN basics in deep learning
 
Introduction to generative adversarial networks (GANs)
Introduction to generative adversarial networks (GANs)Introduction to generative adversarial networks (GANs)
Introduction to generative adversarial networks (GANs)
 
Bayesian probabilistic interference
Bayesian probabilistic interferenceBayesian probabilistic interference
Bayesian probabilistic interference
 
Jsp
JspJsp
Jsp
 
Exception handling in java
Exception handling in javaException handling in java
Exception handling in java
 
Knowledge acquistion
Knowledge acquistionKnowledge acquistion
Knowledge acquistion
 
Knowledge based system
Knowledge based systemKnowledge based system
Knowledge based system
 
Introduction of predicate logics
Introduction of predicate  logicsIntroduction of predicate  logics
Introduction of predicate logics
 
Types of inheritance in java
Types of inheritance in javaTypes of inheritance in java
Types of inheritance in java
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Constructors in java
Constructors in javaConstructors in java
Constructors in java
 
Methods in java
Methods in javaMethods in java
Methods in java
 
Circular linked list
Circular linked listCircular linked list
Circular linked list
 
Doubly linked list
Doubly linked listDoubly linked list
Doubly linked list
 

Último

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 

Último (20)

(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 

Possible Word Representation

  • 1. Possible Word Representation Prof. Neeraj Bhargava Kapil Chauhan Department of Computer Science School of Engineering & Systems Sciences MDS University, Ajmer
  • 2. Outline  Text Semantics  Representation  Choosing representation  Some General Representations  What is a logic ?  Propositional Logic  Predicate logic
  • 3. 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.
  • 4. 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
  • 5. Choosing a Representation  For certain problem solving techniques  ‘Best’ representation already known  Often a requirement of the technique  Or a requirement of the programming language (e.g. Prolog)  Examples  First order theorem proving… first order logic  Inductive logic programming… logic programs  Neural networks learning… neural networks  Some general representation schemes  Suitable for many different (and new) AI applications
  • 6. Some General Representations  Logical Representations  Production Rules  Semantic Networks • Conceptual graphs, frames  Description Logics (see textbook)
  • 7. What is a Logic?  A language with concrete rules  No ambiguity in representation (may be other errors!)  Allows unambiguous communication and processing  Very unlike natural languages e.g. English  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)
  • 8. 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 seven foot tall”  A valid sentence (syntax)  And we can understand the meaning (semantics)  This sentence happens to be false (there is a counterexample)
  • 9. Propositional Logic  Syntax  Propositions, e.g. “it is wet”  Connectives: and, or, not, implies, iff (equivalent)  Brackets, T (true) and F (false)  Semantics (Classical AKA Boolean)  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
  • 10. 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)  True or false  In predicate logic each atom is a predicate  e.g. first order logic, higher-order logic
  • 11. 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
  • 12. Assignment  Explain predicate and propositional logic with example.