Lecture09 - Lexical Semantics
Lecture09 - Lexical Semantics
Processing
Lecture 9: Lexical Semantics -
Word Senses and Lexical Relations
11/23/2020
COMS W4705
Yassine Benajiba
Natural Language Semantics
• Semantics is concerned with the meaning of language.
• Formal Semantics:
• Examples:
• Following a recipe.
Syntax and Semantics
• Can we do syntax without semantics?
bank (of a river) vs. bank (financial institution) vs. bank (storage facility)
bright [light] vs. bright [idea] vs. bright [student] vs. bright [future]
• Examples:
• bank
• check
• kind
• bass
Polysemy
• Multiple semantically related concepts correspond to the
same word form.
• Examples:
• Synonym / Antonym
• couch/sofa
• vomit/throw up
• car/automobile
• hazelnut/filbert
• water/H2O
Note that even though the sense is the same, there may be differences in politeness, slang,
register, genre, etc.
Lexical Substitution
• Two lexemes are synonyms if they can be substituted for
each other in a sentence, such that the sentence retains
its meaning (truth conditions).
large
How big is that plane?
large (?)
She was like a big sister to him.
Antonyms
• Senses are opposites with respect to one specific feature of their
meaning.
• Related to entailment:
dog
animal mammal
{newspaper, paper}
{paper}
4 senses of mouse
Sense 1
mouse
=> rodent, gnawer
=> placental, placental mammal, eutherian, eutherian mammal
=> mammal, mammalian
=> vertebrate, craniate
=> chordate
=> animal, animate being, beast, brute, creature, fauna
=> organism, being
=> living thing, animate thing
=> whole, unit
=> object, physical object
=> physical entity
=> entity
WordNet Meronyms
$ wn mouse -meron
1 of 4 senses of mouse
Sense 4
mouse, computer mouse
HAS PART: mouse button
Semantic Relations as a
Graph
structure,
library construction
hypernyms
loft,attic,
building,
garret
edifice
porch
house, home
dormitory, dorm,
meronyms residence hall,
study
hall, student
skyscraper residence
Word Sense Disambiguation
(WSD)
• Given a word token in context, identify its correct word sense (from
a list of possible word-senses).
• Similar to POS tagging (but specific set of tags for each word).
WSD Methods
• Supervised Machine Learning
• Dictionary Methods
• Semi-supervised learning
• A classifier.
• "line, hard, serve" dataset. 4.000 instances each for the words line,
hard, and serve.
• All-words task:
But if one lengthens the slit in the opaque mask, until one can see not only
the central word in question but also say N words on either side, then if N is
large enough one can unambiguously decide the meaning of the central
word…
• Collocational features:
• Bag-of-word features:
fish 0
⋮ ⋮
guitar 1
guitar,
watching,
⋮ ⋮
Youtube watching 1
⋮ ⋮
Youtube 1
Collocational Features
He learned how to play guitar and bass watching Youtube videos.
...
wn-2
...
...
|V|
...
...
wn-1
...
sense1
...
... ...
P(sense|context)
...
wn+1 sensen
...
...
softmax
output layer
...
...
1. (25) bank
sloping land (especially the slope beside a body of water)
"they pulled the canoe up on the bank"
"he sat on the bank of the river and watched the currents"
1. (25) bank
sloping land (especially the slope beside a body of water)
"they pulled the canoe up on the bank"
"he sat on the bank of the river and watched the currents"
• Inter-annotator agreement:
• 75%-80%
Semi-Supervised WSD
• What if we only have a few labeled training examples.
We need more good teachers – right now, there are only a half a dozen who can play
the free bass with ease.
An electric guitar and bass player stand off to one side, not really part of the scene, just
as a sort of nod to gringo expectations perhaps
The researchers said the worms spend part of their life cycle in such fish as Pacific
salmon and striped bass and Pacific rockfish or snapper.
And it all started when fishermen decided the striped bass in Lake Mead were too
skinny.
A Lexical Substitution Task
• Instead of identifying word sense
Snow covered areas appear bright blue in the image which was taken in early spring.
... an institution that nurtures the best and brightest young musicians.