CPE 480 Natural Language Processing
description
Transcript of CPE 480 Natural Language Processing
![Page 1: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/1.jpg)
1
CPE 480 Natural Language Processing
Lecture 6: Semantics--From words to sentences to idioms
Asst. Prof. Nuttanart Facundes, Ph.D.
![Page 2: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/2.jpg)
2
Theories of Meaning
• Words have different meaning, depending on the context in which they are used– What is the meaning of a word?– How can we represent the meaning?– What formalisms can be used?
![Page 3: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/3.jpg)
3
![Page 4: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/4.jpg)
4
4 Representation Approaches
• First-Order Predicate Calculus• Semantic Networks• Conceptual Dependencies• Frame-Based Representations
![Page 5: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/5.jpg)
5
Correspondences between representations
• They all share a common foundation: meaning representation consists of structures composed of sets of symbols
Symbol Structures are objects and relations among objects
![Page 6: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/6.jpg)
6
Meaning structure of language
• Various ways by which human language conveys meaning– Form-meaning associations– Word-order regularities– Sense systems– Conjunctions and quantifiers– Predicate-argument structure
![Page 7: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/7.jpg)
7
![Page 8: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/8.jpg)
8
![Page 9: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/9.jpg)
9
Problems with FOPC
• Hard to represent beliefs• For example: I believe that Mary ate
British food.
![Page 10: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/10.jpg)
10
![Page 11: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/11.jpg)
11
![Page 12: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/12.jpg)
12
![Page 13: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/13.jpg)
13
![Page 14: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/14.jpg)
14
Principle of Compositionality (Frege)
• The meaning of a sentence is composed by the meaning of its parts
![Page 15: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/15.jpg)
15
![Page 16: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/16.jpg)
16
Semantic Augmentations to Context-Free Grammars
• Augmenting context-free grammar rules with semantic attachments
• Attachments = Instructions that specify how to compute the meaning representation of a construction from the meanings of its consistent parts
![Page 17: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/17.jpg)
17
![Page 18: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/18.jpg)
18
Solution: Lambda Calculus
![Page 19: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/19.jpg)
19
Different Sentences
• Declarative: Flight 487 serves lunch.• Imperative: Serve lunch.• Yes/No Questions: Does Flight 207 serve
lunch?• Wh-Questions: Which flights serve lunch?
![Page 20: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/20.jpg)
20
The Role of Sentences
• Declarative intended to convey factual information
• Imperative request for an action• Yes/No Questions request for
affirmative/negative answer• Wh-Questions request for information
![Page 21: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/21.jpg)
21
![Page 22: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/22.jpg)
22
![Page 23: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/23.jpg)
23
![Page 24: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/24.jpg)
24
![Page 25: CPE 480 Natural Language Processing](https://reader036.fdocuments.in/reader036/viewer/2022070502/56814d4f550346895dba831c/html5/thumbnails/25.jpg)
25