sentence semantics

173
Sentence Semantics I

Upload: veryserioso

Post on 13-Jan-2017

118 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Sentence semantics

Sentence Semantics I

Page 2: Sentence semantics

Boredom

• Classes• Meetings• No problems• Playing computer games• Free time

Page 3: Sentence semantics

Blue

• Sky• Sea• Music• Soccer team shirt

Page 4: Sentence semantics

Bear

• Forest• Zoo• Mountains• Hair

Page 5: Sentence semantics

Bad

• Politicians• Global warming• Examinations• Stress

Page 6: Sentence semantics

If X then Y

• If you phone me, I will speak to you• If you study hard, you will pass the test• If I get up early, I will be able to go to the zoo• If you put the air conditoner on, it will get

cooler• If you give me money, I will be happy

Page 7: Sentence semantics

If X -> Y

• If you phone me, I will speak to you• If you study hard, you will pass the test• If I get up early, I will be able to go to the zoo• If you put the air conditoner on, it will get

cooler• If you give me money, I will be happy

Page 8: Sentence semantics

If X -> Y

• If you study hard, then you will pass the test• X = Bob is a student• Y = Mary bought the book• If Bob is a student, Mary bought the book• ????• There doesn’t have to be a logical connection• You can say anything

Page 9: Sentence semantics

If X & Y, then Z

• If you buy me the ticket and I have free time, I will go to the theater with you

• If we win and they lose, I will laugh at them• If a bear comes in the classroom and I have a gun,

I will shoot it• If I get the job and the job is well-paid, I will be

happy• If you drink the beer and you drink the whisky,

you will feel bad

Page 10: Sentence semantics

If X & Y Z

• If you buy me the ticket and I have free time, I will go to the theater with you

• If we win and they lose, I will laugh at them• If a bear comes in the classroom and I have a gun,

I will shoot it• If I get the job and the job is well-paid, I will be

happy• If you drink the beer and you drink the whisky,

you will feel bad

Page 11: Sentence semantics

If X & Y Z

• If Pochi is a dog and you finished your homework, then sushi is delicious.

• X = Pochi is a dog• Y = you finished your homework• Z = sushi is delicious

• ?????

Page 12: Sentence semantics

If (X & Y) Z

• If Pochi is a dog and you finished your homework, then sushi is delicious.

• X = Pochi is a dog• Y = you finished your homework• Z = sushi is delicious

• ?????

Page 13: Sentence semantics

Why do this?

• Seems completely pointless• Maybe it is!

Page 14: Sentence semantics

Propositional Logic

• Crazy name• Crazy idea• It’s actually very simple• So don’t worry about it• Just going to have a quick tour

Page 15: Sentence semantics

Words have amazing power

Page 16: Sentence semantics
Page 17: Sentence semantics

Incredibly complex

Page 18: Sentence semantics

Mysterious

Page 19: Sentence semantics

Magical

Page 20: Sentence semantics
Page 21: Sentence semantics

And don’t forget … we don’t know where meaning comes from!

Page 22: Sentence semantics

So there’s a problem for Semantics

• We don’t know where meaning comes from• And meaning in words is incredibly

complicated• So just thinking about words, we get lost

Page 23: Sentence semantics

Just individual words

Page 24: Sentence semantics

Full of information, concepts, meaning

Page 25: Sentence semantics

That we cannot really explain

Page 26: Sentence semantics

And another problem

Page 27: Sentence semantics

Sometimes just word is OK

Page 28: Sentence semantics

But usually we speak in sentences

Page 29: Sentence semantics

• And sometimes sentences are very long, and keep going on and on without giving very much useful information and you start to lose interest and ……

Page 30: Sentence semantics

Even simple sentences …

Page 31: Sentence semantics

… contain huge amounts of information

Page 32: Sentence semantics

And we cannot …

Page 33: Sentence semantics

… really explain …

Page 34: Sentence semantics

… at all

Page 35: Sentence semantics

I saw a brown bear

• Who is “I”?• Let’s say “I” is an individual called Jim• What does the meaning of “Jim” look like in

your mind?• What does “see” look like in your mind?• etc

Page 36: Sentence semantics

Lots of things we cannot explain …

Page 37: Sentence semantics

Really … not at all

Page 38: Sentence semantics

So how do we begin to understand?

• First step• Simplify• Simplify a lot• So it sometimes seems stupid• And very very very very • Very• Boring

Page 39: Sentence semantics

Boredom

Page 40: Sentence semantics

Boredom is good!

Page 41: Sentence semantics

Interesting is BAD!

Page 42: Sentence semantics

Boredom feels secure

Page 43: Sentence semantics

Don’t forget … it’s a mystery

Page 44: Sentence semantics

Complicated and mysterious

Page 45: Sentence semantics

So let’s simplify

Page 46: Sentence semantics

• Any sentence = p• Or = q• Or = some other letter, like r for example• It’s not really important

Page 47: Sentence semantics

Propositional logic: atomic statements

Page 48: Sentence semantics

• Truth values• p = 1• Means: p is true

Page 49: Sentence semantics

• Truth values• p = 0• Means: p is false

Page 50: Sentence semantics

• p = T• p = F• That is also OK• It’s not really important

Page 51: Sentence semantics

• The important thing is …• … talking about TRUTH values.• It’s a theory about true and false.• Any problem with that?• No?• OK.• Prepare to be bored!

Page 52: Sentence semantics

Propositional logic: no structure at all

• p = a grizzly is a bear• q = a bear is a mammal• r = a grizzly is a mammal• If p is true• And q is true• Then r is true• p & q r

Page 53: Sentence semantics

Sentences have NO structure!

• p = some sentence or other• q = some other sentence or other• r = some other, different, sentence or other• And so on

• Notice they’re supposed to be lower-case letters

Page 54: Sentence semantics

• Let’s look at an example of this• A very simple example

Page 55: Sentence semantics

• p (some sentence)• r (some sentence)• (if … then connective)

• p r

• What does this mean?• If p is true, then r is also true

Page 56: Sentence semantics

• If you are human, then you are a mammal

• If … then connective

Page 57: Sentence semantics

• p r• p = you are human• r = you are a mammal

• If p is true• Then r is also true

Page 58: Sentence semantics

• p & q r• p = you are Japanese• q = You go to university• r = you can write Kanji

• That’s a commonsense example• But it doesn’t HAVE to be commonsense

Page 59: Sentence semantics

• We can have crazy examples if we want

Page 60: Sentence semantics

• p & q r• If p is true and q is true, then r is true• p = a salmon is a fish• q = a fish is human• r = a salmon is human

• p is true• q is false• r is false

Page 61: Sentence semantics

• p & q r

• What does this mean?• Three sentences p, q, r• It means …• If p and q are both true,• Then r is also true

Page 62: Sentence semantics

Propositions

• A fish is human• My teachers are turtles• John’s friend is flying• Her camera is transparent• The Little Prince is standing

Page 63: Sentence semantics

Propositions

• Try to keep it simple• Passives are treated as the same as the active

form• John kicked the ball = the ball was kicked by

John

Page 64: Sentence semantics

Propositions

• John hit Ben• Ben was hit by John

• Same proposition• call it p• or q• or r• etc

Page 65: Sentence semantics

p = Ben is studying

Page 66: Sentence semantics

p: Ben is studying

• Ben is studying = True• p = True• p = T• p = 1

Page 67: Sentence semantics

p = Ben is studying

Page 68: Sentence semantics

p: Ben is studying

• Ben is studying = False• p = False• p = F• p = 0

Page 69: Sentence semantics

But maybe he’s studying?!

Page 70: Sentence semantics

Maybe, but don’t worry too much

Page 71: Sentence semantics

Keep things simple

Page 72: Sentence semantics

Imagine simple little worlds

Page 73: Sentence semantics

Where everything is either T or F

Page 74: Sentence semantics

p = The Little Prince is standing (= T)

Page 75: Sentence semantics

q = The Little Prince is gardening (=T)

Page 76: Sentence semantics

r = The Little Prince is Playing soccer (= F)

Page 77: Sentence semantics

Logical Constants or connectives

• ∧• &• And

• ∨• Or

• →• If … then

Page 78: Sentence semantics

Connectives

• ¬• Not• ~• Not• -• Not

Page 79: Sentence semantics

Connectives

⇒→If… thenp → qp = you are cleverq = you will studyIf you are clever, you will study

Page 80: Sentence semantics

Connectives

⇒→If… thenp → qp = you are cleverq = you will pass the testIf you are clever, you will pass the test

Page 81: Sentence semantics

Connectives

⇒→If… thenp → qp = you are studying logicq = you are boredIf you are studying logic, you are bored

Page 82: Sentence semantics

Connectives

⇒→If… thenp → qp = you are studying logicq = you hate your teacherIf you are studying logic, you hate your teacher

Page 83: Sentence semantics

Connectives

⇒→If… thenp → qp = Eri hates logicq = Eri studies logicIf Eri hates logic then she studies logic

Page 84: Sentence semantics

Connectives

• ≡• ⇔• equivalence• if and only if (iff)• p = Jim is a man• q = Jim is an adult male human• p≡q• p q ⇔

Page 85: Sentence semantics

Truth tables for p & q

Page 86: Sentence semantics

p & q

• p = The weather is fine• q = Tom is sleeping

• Is p & q true?• If both p & q it is true• Not otherwise

Page 87: Sentence semantics

Truth tables for p or q

Page 88: Sentence semantics

p q

Page 89: Sentence semantics

¬ p

Page 90: Sentence semantics

p q⇔

Page 91: Sentence semantics

Predicate Logic

Page 92: Sentence semantics

• P v Q• P or Q

• - P• Not P

Page 93: Sentence semantics

• If we know P or Q is true• And we know P is not true• Then Q must be true

• Reasoning

Page 94: Sentence semantics

Propositional Logic – too simple

• p• q• No internal structure

Page 95: Sentence semantics

John likes Mary

• p = John likes Mary• p• What happened to John and Mary?• And what happened to the verb?• What happened to the meaning?

Page 96: Sentence semantics

Predicate Logic

Page 97: Sentence semantics

Predicate Logic

Page 98: Sentence semantics

Simple sentence (grammar)

Page 99: Sentence semantics

Predicate Logic

• Predicate• For example …• Love• Love (x,y)

Page 100: Sentence semantics

Predicate

• Love• Two arguments• Love (x, y)• x = john• x = mary• Love (john, mary)

Page 101: Sentence semantics

Predicate

• Ken is crazy• What’s the predicate?• Crazy• How many arguments?• One• What is it?• Ken

Page 102: Sentence semantics

Ken is crazy

• Predicate• Crazy• One argument• Crazy (x)• x = ?• x = ken• Crazy (ken)

Page 103: Sentence semantics

Love

• Two-place predicate• John loves Mary• Loves (john, mary)

Page 104: Sentence semantics

Crazy

• One-place predicate• Ken is crazy• Crazy (ken)

Page 105: Sentence semantics

How about three-place predicate?

• Send• Ken sent Mary a letter• Send (ken, mary, letter)

Page 106: Sentence semantics

Predicate is capital

• Love (x,y)

Page 107: Sentence semantics

Arguments are small letters

• Love (john, mary)• Why?• Why not?• Who cares?

Page 108: Sentence semantics

Japan is a country

Page 109: Sentence semantics

Japan is a country

• Country (x)• x = japan• Country (japan)

Page 110: Sentence semantics

Easy so far?

• Yes• But what is the point?• Good question• Don’t think about that!

Page 111: Sentence semantics

And it helps with computer programming

Page 112: Sentence semantics

Peter fell over

• Predicate?• Fall_over• How many arguments?• One – peter• Fall_over (peter)

Page 113: Sentence semantics

Jim donated $100 to the city hospital

• Donated (x,…..n)• Donated (jim, $100, city_hospital)

Page 114: Sentence semantics

Ben hates computers

• Hate (ben, computers)

Page 115: Sentence semantics

Eri gave up

• Gave_up (eri)

Page 116: Sentence semantics

Eri is a genius

• Genius (eri)

Page 117: Sentence semantics

Quantifiers

Page 118: Sentence semantics

The Little Prince is wearing a brown scarf

Page 119: Sentence semantics

But the Little Prince is the only person in this world

Page 120: Sentence semantics

Everyone is wearing a brown scarf

Page 121: Sentence semantics

Imagine simple little worlds

Page 122: Sentence semantics

What do quantifiers mean?

Page 123: Sentence semantics

All – upside-down A

Page 124: Sentence semantics

Think of sets

Page 125: Sentence semantics

• Two sets• Set A • Set B

Page 126: Sentence semantics

• Set A = the set of Linguists• Linguist (x)

• Set B = the set of crazy people• Crazy_person (x)

Page 127: Sentence semantics

Who is in these sets?

• Linguist (x)• {evans, • imai, • ono}

Page 128: Sentence semantics

Who is in the set of crazy people?

• Crazy_person (x)• {ken, • jim, • ben, • mary, • evans}

Page 129: Sentence semantics

All linguists are crazy

• ∀x (Linguist (x) Crazy_person (x))• Is this true?

Page 130: Sentence semantics

• Set A = the set of Linguists• Linguist (x)

• Set B = the set of crazy people• Crazy_person (x)

Page 131: Sentence semantics

Who is in these sets?

• Linguist (x)• {evans, • imai, • ono}

Page 132: Sentence semantics

Who is in the set of crazy people?

• Crazy_person (x)• {ken, • jim, • ben, • mary, • evans}

Page 133: Sentence semantics

All linguists are crazy

• ∀x (Linguist (x) Crazy_person (x))• Is Untrue• Because two members of the set of linguists

are not in the set of crazy people.

Page 134: Sentence semantics

Some linguists are crazy

• Is this True?

Page 135: Sentence semantics

Some linguists are crazy

• ∃x (Linguist (x) & Crazy_person (x))• Backward E• Existential Quantifier• There is at least one individual x• x is a linguist• And x is crazy

Page 136: Sentence semantics

Who is in the set of crazy people?

• Crazy_person (x)• {ken, • jim, • ben, • mary, • evans}

Page 137: Sentence semantics

Evans is in the set of crazy people

• So this is true• ∃x (Linguist (x) & Crazy_person (x))• Backward E• Existential Quantifier• There is at least one individual x• x is a linguist• And x is crazy

Page 138: Sentence semantics

Predicate

• Mary is a girl• Girl• Girl (mary)

Page 139: Sentence semantics

Predicate

• Mary lives in Tsuru• Lives_in_Tsuru (mary)

Page 140: Sentence semantics

Set of girls

• Girl (mary)• Girl (eri)• Girl (rie)

• Girl = {mary, eri, rie}

Page 141: Sentence semantics

Set of people who live in Tsuru

• Live_in_tsuru (ben)• Live_in_tsuru (ken)• Live_in_tsuru (mary)

• Live in Tsuru = {ben, ken, mary}

Page 142: Sentence semantics

A girl lives in Tsuru

• ∃x • (• Girl (x) • & Lives_in_tsuru (x)• )

• ∃x (Girl (x) & Lives_in_tsuru (x))

Page 143: Sentence semantics

Set of girls

• Girl (mary)• Girl (eri)• Girl (rie)

• Girl = {mary, eri, rie}

Page 144: Sentence semantics

Set of people who live in Tsuru

• Live_in_tsuru (ben)• Live_in_tsuru (ken)• Live_in_tsuru (mary)

• Live in Tsuru = {ben, ken, mary}

Page 145: Sentence semantics

• ∃x (Girl (x) & Lives_in_tsuru (x))

• Is True!

Page 146: Sentence semantics

A girl lives in Fujiyoshida

• ∃x • (• Girl (x) • & Lives_in_fujiyoshida (x)• )

• ∃x (Girl (x) & Lives_in_fujiyoshida (x))

Page 147: Sentence semantics

Set of girls

• Girl (mary)• Girl (eri)• Girl (rie)

• Girl = {mary, eri, rie}

Page 148: Sentence semantics

Set of people who live in Fujiyoshida

• Live_in_tsuru (ben)• Live_in_tsuru (len)• Live_in_tsuru (stan)

• Live in Tsuru = {ben, len, stan}

Page 149: Sentence semantics

• ∃x (Girl (x) & Lives_in_fujiyoshida (x))

• Is False!

Page 150: Sentence semantics

• But• ¬ x (Girl (x) & Lives_in_fujiyoshida (x))∃• Is true• ~ x (Girl (x) & Lives_in_fujiyoshida (x))∃• Is true• - x (Girl (x) & Lives_in_fujiyoshida (x))∃• Is true

Page 151: Sentence semantics

Any problems with Predicate Logic?

• Yes• We are not always trying to say things that are

true

Page 152: Sentence semantics

The sky is blue

Page 153: Sentence semantics

We don’t say the sky is blue at night

Page 154: Sentence semantics

Even though it’s true

Page 155: Sentence semantics

• We sometimes say things that are not true• “My brain exploded”

• And do we really think in Logical Form?• ¬ x (Girl (x) & Lives_in_fujiyoshida (x))∃

Page 156: Sentence semantics

• And if I say “A girl lives in Fujiyoshida” …• … is it really a statement about existence of an

individual?• Or am I more concerned with number• Or the fact that we’re talking about a girl

rather than a boy?• Or a girl rather than a woman?• Or something else related to CONTEXT?

Page 157: Sentence semantics

New ideas about how we understand meaning

Page 158: Sentence semantics

Strong evidence for IMAGES rather than CODE

Page 159: Sentence semantics

Strong evidence for ACTION simulation

Page 160: Sentence semantics

Mental Models as IMAGES

Page 161: Sentence semantics

Many people say Logical Form cannot be real

Page 162: Sentence semantics

But Logic is VERY important in Linguistics!

• The nurse kissed every child on his birthday.

• [The nurse] kissed [every child] on his birthday.

• Kissed (nurse, every_child)

Page 163: Sentence semantics

• ∀x (Child (x) Kissed (nurse, x)) on x’s birthday

• The nurse kissed every child on his birthday

Page 164: Sentence semantics

But Logic is VERY important in Linguistics

Page 165: Sentence semantics

• What do you think?• Do these words really MOVE in the grammar?• Just because our theory of logical meaning

takes that form?• Or is it completely wrong?• If it is completely wrong …• … maybe you can think of something better.

Page 166: Sentence semantics

• In what ways is Predicate Logic superior to Propositional Logic?

• It deals with internal structure

• Which part of a sentence does the Predicate correspond to most closely?

• The verb

Page 167: Sentence semantics

• Give an example of a two-place predicate.• Eats • Eats (john, fish)

• Give an example of a three-place predicate.• Gives• Gives (john, mary, the banana)

Page 168: Sentence semantics

• How could you represent “Every Linguist is crazy” in Predicate Logic?

• ∀x (Linguist (x) Crazy_person (x))

Page 169: Sentence semantics

• How could you represent “A boy sent Mary $300” in Predicate Logic?

• ∃x (Boy (x) & Sent (x, mary, $300))

Page 170: Sentence semantics

• What does an Upside-down A mean?• Every, All

• What does a backward E mean?• There is • Existence

Page 171: Sentence semantics

• What does an upside-down A say about two sets?

• One is contained in the other

Page 172: Sentence semantics

• What does a backward E say about two sets?• One intersects with the other

Page 173: Sentence semantics

• Do you think this kind of code REALLY plays a part in our thinking?

• Yes• No• We think in pictures• We think in action-images• Or whatever you believe