SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Natural Language Processing
(NLP)
by edhole
Prof. Carolina Ruiz
Computer Science
WPI
http://ebooks.edhole.com
References
 The essence of Artificial Intelligence
– By A. Cawsey
– Prentice Hall Europe 1998
 Artificial Intelligence: Theory and Practice
– By T. Dean, J. Allen, and Y. Aloimonos.
– The Benjamin/Cummings Publishing Company, 1995
 Artificial Intelligence
– By P. Winston
– Addison Wesley, 1992
 Artificial Intelligence: A Modern Approach
– By Russell and Norvig
– Prentice Hall, 2003
– http://ebooks.edhole.com
Communication Typical communication episode
S (speaker) wants to convey P (proposition) to H (hearer) using W
(words in a formal or natural language)
1. Speaker
 Intention: S wants H to
believe P
 Generation: S chooses
words W
 Synthesis: S utters words
W
http://ebooks.edhole.com
2. Hearer
 Perception: H perceives
words W” (ideally W” = W)
 Analysis: H infers possible
meanings P1,P2,…,Pn for
W”
 Disambiguation: H infers
that S intended to convey
Pi (ideally Pi=P)
 Incorporation: H decides
to believe or disbelieve Pi
Natural Language Processing (NLP)
1. Natural Language Understanding
 Taking some spoken/typed sentence and
working out what it means
1. Natural Language Generation
 Taking some formal representation of what you
want to say and working out a way to express it
in a natural (human) language (e.g., English)
http://ebooks.edhole.com
Applications of Nat. Lang. Processing
 Machine Translation
 Database Access
 Information Retrieval
– Selecting from a set of documents the ones that are relevant to
a query
 Text Categorization
– Sorting text into fixed topic categories
 Extracting data from text
– Converting unstructured text into structure data
 Spoken language control systems
 Spelling and grammar checkers
Natural language understanding
Raw speech signal
 Speech recognition
Sequence of words spoken
 Syntactic analysis using knowledge of the grammar
Structure of the sentence
 Semantic analysis using info. about meaning of words
Partial representation of meaning of sentence
 Pragmatic analysis using info. about context
Final representation of meaning of sentence
http://ebooks.edhole.com
 Input/Output data Processing stage Other data used
Frequency spectrogram freq. of diff.
speech recognition sounds
Word sequence grammar of
“He loves Mary” syntactic analysis language
Sentence structure meanings of
semantic analysis words
He loves Mary
Partial Meaning context of
Ξx loves(x,mary) pragmatics utterance
Sentence meaning
loves(john,mary)
http://ebooks.edhole.com
Natural Language Understanding
Speech Recognition (1 of 3)
Input Analog Signal Freq.
spectrogram
(microphone records voice) (e.g. Fourier
transform)
http://ebooks.edhole.com
time
Hz
Speech Recognition (2 of 3)
 Frequency spectrogram
– Basic sounds in the signal (40-50 phonemes)
(e.g. “a” in “cat”)
 Template matching against db of phonemes
– Using dynamic time warping (speech speed)
– Constructing words from phonemes
(e.g. “th”+”i”+”ng”=thing)
 Unreliable/probabilistic phonemes (e.g. “th” 50%, “f” 30%, …)
 Non-unique pronunciations (e.g. tomato),
 statistics of transitions phonemes/words (hidden Markov models)
 Words
 http://ebooks.edhole.com
Speech Recognition - Complications
 No simple mapping between sounds and words
– Variance in pronunciation due to gender, dialect, …
 Restriction to handle just one speaker
– Same sound corresponding to diff. words
 e.g. bear, bare
– Finding gaps between words
 “how to recognize speech”
 “how to wreck a nice beach”
– Noise
– http://ebooks.edhole.com
Syntactic Analysis
 Rules of syntax (grammar) specify the possible
organization of words in sentences and allows us to
determine sentence’s structure(s)
– “John saw Mary with a telescope”
 John saw (Mary with a telescope)
 John (saw Mary with a telescope)
 Parsing: given a sentence and a grammar
– Checks that the sentence is correct according with the
grammar and if so returns a parse tree representing the
structure of the sentence
– http://ebooks.edhole.com
Syntactic Analysis - Grammar
 sentence -> noun_phrase, verb_phrase
 noun_phrase -> proper_noun
 noun_phrase -> determiner, noun
 verb_phrase -> verb, noun_phrase
 proper_noun -> [mary]
 noun -> [apple]
 verb -> [ate]
 determiner -> [the]
 http://ebooks.edhole.com
Syntactic Analysis - Parsing
sentence
noun_phrase verb_phrase
proper_noun verb noun_phrase
determiner noun
“Mary” “ate” “the” “apple”
http://ebooks.edhole.com
Syntactic Analysis – Complications (1)
 Number (singular vs. plural) and gender
– sentence->
noun_phrase(n),verb_phrase(n)
– proper_noun(s) -> [mary]
– noun(p) -> [apples]
 Adjective
– noun_phrase->
determiner,adjectives,noun
– adjectives-> adjective, adjectives
– adjective->[ferocious]
 Adverbs, …
Syntactic Analysis – Complications (2)
 Handling ambiguity
– Syntactic ambiguity: “fruit flies like a banana”
 Having to parse syntactically incorrect sentences
http://ebooks.edhole.com
Semantic Analysis
 Generates (partial) meaning/representation of the
sentence from its syntactic structure(s)
 Compositional semantics: meaning of the sentence
from the meaning of its parts:
– Sentence: A tall man likes Mary
– Representation: Ξx man(x) & tall(x) & likes(x,mary)
 Grammar + Semantics
– Sentence (Smeaning)->
noun_phrase(NPmeaning),verb_phrase(VPmeaning),
combine(NPmeaning,VPmeaning,Smeaning)
– http://ebooks.edhole.com
Semantic Analysis – Complications
 Handling ambiguity
– Semantic ambiguity: “I saw the prudential building
flying into Boston”
– http://ebooks.edhole.com
Pragmatics
 Uses context of utterance
– Where, by who, to whom, why, when it was said
– Intentions: inform, request, promise, criticize, …
 Handling Pronouns
– “Mary eats apples. She likes them.”
 She=“Mary”, them=“apples”.
 Handling ambiguity
– Pragmatic ambiguity: “you’re late”: What’s the
speaker’s intention: informing or criticizing?
– http://ebooks.edhole.com
Natural Language Generation
 http://ebooks.edhole.com

Weitere ähnliche Inhalte

Mehr von Edhole.com

Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbaiEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Video lectures for mba
Video lectures for mbaVideo lectures for mba
Video lectures for mbaEdhole.com
 
Video lecture for b.tech
Video lecture for b.techVideo lecture for b.tech
Video lecture for b.techEdhole.com
 
Video lecture for bca
Video lecture for bcaVideo lecture for bca
Video lecture for bcaEdhole.com
 

Mehr von Edhole.com (20)

Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Video lectures for mba
Video lectures for mbaVideo lectures for mba
Video lectures for mba
 
Video lecture for b.tech
Video lecture for b.techVideo lecture for b.tech
Video lecture for b.tech
 
Video lecture for bca
Video lecture for bcaVideo lecture for bca
Video lecture for bca
 

Kürzlich hochgeladen

How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 

Kürzlich hochgeladen (20)

How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 

free ebooks download

  • 1. Natural Language Processing (NLP) by edhole Prof. Carolina Ruiz Computer Science WPI http://ebooks.edhole.com
  • 2. References  The essence of Artificial Intelligence – By A. Cawsey – Prentice Hall Europe 1998  Artificial Intelligence: Theory and Practice – By T. Dean, J. Allen, and Y. Aloimonos. – The Benjamin/Cummings Publishing Company, 1995  Artificial Intelligence – By P. Winston – Addison Wesley, 1992  Artificial Intelligence: A Modern Approach – By Russell and Norvig – Prentice Hall, 2003 – http://ebooks.edhole.com
  • 3. Communication Typical communication episode S (speaker) wants to convey P (proposition) to H (hearer) using W (words in a formal or natural language) 1. Speaker  Intention: S wants H to believe P  Generation: S chooses words W  Synthesis: S utters words W http://ebooks.edhole.com 2. Hearer  Perception: H perceives words W” (ideally W” = W)  Analysis: H infers possible meanings P1,P2,…,Pn for W”  Disambiguation: H infers that S intended to convey Pi (ideally Pi=P)  Incorporation: H decides to believe or disbelieve Pi
  • 4. Natural Language Processing (NLP) 1. Natural Language Understanding  Taking some spoken/typed sentence and working out what it means 1. Natural Language Generation  Taking some formal representation of what you want to say and working out a way to express it in a natural (human) language (e.g., English) http://ebooks.edhole.com
  • 5. Applications of Nat. Lang. Processing  Machine Translation  Database Access  Information Retrieval – Selecting from a set of documents the ones that are relevant to a query  Text Categorization – Sorting text into fixed topic categories  Extracting data from text – Converting unstructured text into structure data  Spoken language control systems  Spelling and grammar checkers
  • 6. Natural language understanding Raw speech signal  Speech recognition Sequence of words spoken  Syntactic analysis using knowledge of the grammar Structure of the sentence  Semantic analysis using info. about meaning of words Partial representation of meaning of sentence  Pragmatic analysis using info. about context Final representation of meaning of sentence http://ebooks.edhole.com
  • 7.  Input/Output data Processing stage Other data used Frequency spectrogram freq. of diff. speech recognition sounds Word sequence grammar of “He loves Mary” syntactic analysis language Sentence structure meanings of semantic analysis words He loves Mary Partial Meaning context of Ξx loves(x,mary) pragmatics utterance Sentence meaning loves(john,mary) http://ebooks.edhole.com Natural Language Understanding
  • 8. Speech Recognition (1 of 3) Input Analog Signal Freq. spectrogram (microphone records voice) (e.g. Fourier transform) http://ebooks.edhole.com time Hz
  • 9. Speech Recognition (2 of 3)  Frequency spectrogram – Basic sounds in the signal (40-50 phonemes) (e.g. “a” in “cat”)  Template matching against db of phonemes – Using dynamic time warping (speech speed) – Constructing words from phonemes (e.g. “th”+”i”+”ng”=thing)  Unreliable/probabilistic phonemes (e.g. “th” 50%, “f” 30%, …)  Non-unique pronunciations (e.g. tomato),  statistics of transitions phonemes/words (hidden Markov models)  Words  http://ebooks.edhole.com
  • 10. Speech Recognition - Complications  No simple mapping between sounds and words – Variance in pronunciation due to gender, dialect, …  Restriction to handle just one speaker – Same sound corresponding to diff. words  e.g. bear, bare – Finding gaps between words  “how to recognize speech”  “how to wreck a nice beach” – Noise – http://ebooks.edhole.com
  • 11. Syntactic Analysis  Rules of syntax (grammar) specify the possible organization of words in sentences and allows us to determine sentence’s structure(s) – “John saw Mary with a telescope”  John saw (Mary with a telescope)  John (saw Mary with a telescope)  Parsing: given a sentence and a grammar – Checks that the sentence is correct according with the grammar and if so returns a parse tree representing the structure of the sentence – http://ebooks.edhole.com
  • 12. Syntactic Analysis - Grammar  sentence -> noun_phrase, verb_phrase  noun_phrase -> proper_noun  noun_phrase -> determiner, noun  verb_phrase -> verb, noun_phrase  proper_noun -> [mary]  noun -> [apple]  verb -> [ate]  determiner -> [the]  http://ebooks.edhole.com
  • 13. Syntactic Analysis - Parsing sentence noun_phrase verb_phrase proper_noun verb noun_phrase determiner noun “Mary” “ate” “the” “apple” http://ebooks.edhole.com
  • 14. Syntactic Analysis – Complications (1)  Number (singular vs. plural) and gender – sentence-> noun_phrase(n),verb_phrase(n) – proper_noun(s) -> [mary] – noun(p) -> [apples]  Adjective – noun_phrase-> determiner,adjectives,noun – adjectives-> adjective, adjectives – adjective->[ferocious]  Adverbs, …
  • 15. Syntactic Analysis – Complications (2)  Handling ambiguity – Syntactic ambiguity: “fruit flies like a banana”  Having to parse syntactically incorrect sentences http://ebooks.edhole.com
  • 16. Semantic Analysis  Generates (partial) meaning/representation of the sentence from its syntactic structure(s)  Compositional semantics: meaning of the sentence from the meaning of its parts: – Sentence: A tall man likes Mary – Representation: Ξx man(x) & tall(x) & likes(x,mary)  Grammar + Semantics – Sentence (Smeaning)-> noun_phrase(NPmeaning),verb_phrase(VPmeaning), combine(NPmeaning,VPmeaning,Smeaning) – http://ebooks.edhole.com
  • 17. Semantic Analysis – Complications  Handling ambiguity – Semantic ambiguity: “I saw the prudential building flying into Boston” – http://ebooks.edhole.com
  • 18. Pragmatics  Uses context of utterance – Where, by who, to whom, why, when it was said – Intentions: inform, request, promise, criticize, …  Handling Pronouns – “Mary eats apples. She likes them.”  She=“Mary”, them=“apples”.  Handling ambiguity – Pragmatic ambiguity: “you’re late”: What’s the speaker’s intention: informing or criticizing? – http://ebooks.edhole.com
  • 19. Natural Language Generation  http://ebooks.edhole.com