Docsity

Compositional and lexical semantics , Slides of Linguistics

Partial preview of the text

Download Compositional and lexical semantics and more Slides Linguistics in PDF only on Docsity!

Compositional and lexical semantics

• Compositional semantics: the construction

of meaning (generally expressed as logic)

based on syntax.

This lecture:

– Semantics with FS grammars

• Lexical semantics: the meaning of

individual words.

This lecture:

– lexical semantic relations and WordNet

– one technique for word sense

disambiguation

Simple compositional semantics in feature

structures

• Semantics is built up along with syntax

• Subcategorization ā€˜slot’ filling instantiates

syntax

• Formally equivalent to logical

representations (below: predicate calculus

with no quantifiers)

• Alternative FS encodings possible

Noun entry

fish

HEAD

CAT noun

AGR

COMP filled

SPR filled

SEM

INDEX 1

PRED fish n

ARG 1 1

• Corresponds to fish(x) where the INDEX

points to the characteristic variable of the

noun (that is x).

The INDEX is unambiguous here, but

e.g., picture(x, y) ∧ sheep(y)

picture of sheep

Verb entry

like

HEAD

CAT verb

AGR pl

COMP

HEAD

CAT noun

COMP filled

SEM

INDEX 2

SPR

HEAD

CAT noun

SEM

INDEX 1

SEM

PRED like v

ARG 1 1

ARG 2 2

• Linking syntax and semantics: ARG1 linked

to the SPR’s index; ARG2 linked to the

COMP index.

Apply to like

HEAD 1

COMP filled

SPR 3

SEM

PRED and

ARG 1 4

ARG 2 5

HEAD 1

CAT verb

AGR pl

COMP 2

HEAD

[

CAT noun

]

COMP filled

SEM 5

[

INDEX 6

]

SPR 3

HEAD

[

CAT noun

]

SEM

[

INDEX 7

]

SEM 4

PRED like v

ARG 1 7

ARG 2 6

Apply to like fish

HEAD 1

COMP filled

SPR 3

SEM

PRED and

ARG 1 4

ARG 2 5

HEAD 1

CAT verb

AGR pl

COMP 2

HEAD

 CAT^ noun

AGR

COMP filled

SPR filled

SEM 5

INDEX 6

PRED fish n

ARG 1 6

SPR 3

HEAD

[

CAT noun

]

SEM

[

INDEX 7

]

SEM 4

PRED like v

ARG 1 7

ARG 2 6

like v(x, y) ∧ fish n(y)

Meaning postulates

• e.g.,

āˆ€x[bachelor

(x) → man

(x) ∧ unmarried

(x)]

• usable with compositional semantics and

theorem provers

• e.g. from ā€˜Kim is a bachelor’, we can

construct the LF

bachelor

(Kim)

and then deduce

unmarried

(Kim)

• OK for narrow domains, but ā€˜classical’

lexical semantic relations are more generally

useful

Lexical semantic relations

Hyponymy: IS-A :

• (a sense of) dog is a hyponym of (a sense of)

animal

• animal is a hypernym of dog

• hyponymy relationships form a taxonomy

• works best for concrete nouns

Meronomy: PART-OF e.g., arm is a meronym

of body , steering wheel is a meronym of car

(piece vs part)

Synonymy e.g., aubergine / eggplant

Antonymy e.g., big / little

Hyponymy in WordNet

Sense 6

big cat, cat

=> leopard, Panthera pardus

=> leopardess

=> panther

=> snow leopard, ounce, Panthera uncia

=> jaguar, panther, Panthera onca,

Felis onca

=> lion, king of beasts, Panthera leo

=> lioness

=> lionet

=> tiger, Panthera tigris

=> Bengal tiger

=> tigress

=> liger

=> tiglon, tigon

=> cheetah, chetah, Acinonyx jubatus

=> saber-toothed tiger, sabertooth

=> Smiledon californicus

=> false saber-toothed tiger

Some uses of lexical semantics

• Semantic classification: e.g., for selectional

restrictions (e.g., the object of eat has to be

something edible) and for named entity

recognition

• Shallow inference: ā€˜X murdered Y’ implies

ā€˜X killed Y’ etc

• Back-off to semantic classes in some

statistical approaches

• Word-sense disambiguation

• Machine Translation: if you can’t translate a

term, substitute a hypernym

• Query expansion: if a search doesn’t return

enough results, one option is to replace an

over-specific term with a hypernym

WSD techniques

• supervised learning: cf. POS tagging from

lecture 3. But sense-tagged corpora are

difficult to construct, algorithms need far

more data than POS tagging

• unsupervised learning (see below)

• Machine readable dictionaries (MRDs)

• selectional preferences: don’t work very

well by themselves, useful in combination

with other techniques

WSD by (almost) unsupervised learning

Disambiguating plant (factory vs vegetation

senses):

1. Find contexts in training corpus:

sense training example

? company said that the plant is still operating

? although thousands of plant and animal species

? zonal distribution of plant life

? company manufacturing plant is in Orlando

etc

2. Identify some seeds to disambiguate a few

uses. e.g., ā€˜plant life’ for vegetation use (A)

ā€˜manufacturing plant’ for factory use (B):

sense training example

? company said that the plant is still operating

? although thousands of plant and animal species

A zonal distribution of plant life

B company manufacturing plant is in Orlando

etc

3. Train a decision list classifier on the Sense

A/Sense B examples.

Yarowsky (1995): schematically

Initial state

Seeds

A A?

life

A

B

B

manu.

A

A

Iterating:

A A?

A

B

animal

A

A

B

B

company

A

A

B

Final:

A A B

B

A

A

B

B

AA

A

A

A

B

B

A

A

A

B

A

A

B

B

A

A

A

B

B

B B

B