CPE 480 Natural Language Processing

25
1 CPE 480 Natural Language Processing Lecture 6: Semantics--From words to sentences to idioms Asst. Prof. Nuttanart Facundes, Ph.D.

description

CPE 480 Natural Language Processing. Lecture 6: Semantics--From words to sentences to idioms Asst. Prof. Nuttanart Facundes, Ph.D. Theories of Meaning. Words have different meaning, depending on the context in which they are used What is the meaning of a word? - PowerPoint PPT Presentation

Transcript of CPE 480 Natural Language Processing

Page 1: CPE 480 Natural Language Processing

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

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

3

Page 4: CPE 480 Natural Language Processing

4

4 Representation Approaches

• First-Order Predicate Calculus• Semantic Networks• Conceptual Dependencies• Frame-Based Representations

Page 5: CPE 480 Natural Language Processing

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

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

7

Page 8: CPE 480 Natural Language Processing

8

Page 9: CPE 480 Natural Language Processing

9

Problems with FOPC

• Hard to represent beliefs• For example: I believe that Mary ate

British food.

Page 10: CPE 480 Natural Language Processing

10

Page 11: CPE 480 Natural Language Processing

11

Page 12: CPE 480 Natural Language Processing

12

Page 13: CPE 480 Natural Language Processing

13

Page 14: CPE 480 Natural Language Processing

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

15

Page 16: CPE 480 Natural Language Processing

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

17

Page 18: CPE 480 Natural Language Processing

18

Solution: Lambda Calculus

Page 19: CPE 480 Natural Language Processing

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

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

21

Page 22: CPE 480 Natural Language Processing

22

Page 23: CPE 480 Natural Language Processing

23

Page 24: CPE 480 Natural Language Processing

24

Page 25: CPE 480 Natural Language Processing

25