Professional Documents
Culture Documents
Pawan Goyal
CSE, IIT Kharagpur
1 / 29
Semantics
What is Semantics?
The study of meaning: Relation between symbols and their denotata.
2 / 29
Computational Semantics
Computational Semantics
The study of how to automate the process of constructing and reasoning with
meaning representations of natural language expressions.
3 / 29
Lexical Semantics
Definition
Lexical semantics is concerned with the systematic meaning related
connections among lexical items, and the internal meaning-related structure of
individual lexical items.
4 / 29
Lexical Semantics
Definition
Lexical semantics is concerned with the systematic meaning related
connections among lexical items, and the internal meaning-related structure of
individual lexical items.
To identify the semantics of lexical items, we need to focus on the notion of
lexeme, an individual entry in the lexicon.
4 / 29
Lexical Semantics
Definition
Lexical semantics is concerned with the systematic meaning related
connections among lexical items, and the internal meaning-related structure of
individual lexical items.
To identify the semantics of lexical items, we need to focus on the notion of
lexeme, an individual entry in the lexicon.
What is a lexeme?
Lexeme should be thought of as a pairing of a particular orthographic and
phonological form with some sort of symbolic meaning representation.
Orthographic form, and phonological form refer to the appropriate form
part of a lexeme
Sense refers to a lexemes meaning counterpart.
Pawan Goyal (IIT Kharagpur)
4 / 29
Example
5 / 29
6 / 29
6 / 29
Homonymy
Polysemy
Synonymy
Antonymy
Hypernymy
Hyponymy
Meronymy
7 / 29
Homonymy
Definition
Homonymy is defined as a relation that holds between words that have the
same form with unrelated meanings.
8 / 29
Homonymy
Definition
Homonymy is defined as a relation that holds between words that have the
same form with unrelated meanings.
Examples
Bat (wooden stick-like thing) vs Bat (flying mammal thing)
Bank (financial institution) vs Bank (riverside)
8 / 29
Homonymy
Definition
Homonymy is defined as a relation that holds between words that have the
same form with unrelated meanings.
Examples
Bat (wooden stick-like thing) vs Bat (flying mammal thing)
Bank (financial institution) vs Bank (riverside)
8 / 29
Text-to-Speech
Same orthographic form but different phonological form
9 / 29
Text-to-Speech
Same orthographic form but different phonological form
Information Retrieval
Different meaning but same orthographic form
9 / 29
Text-to-Speech
Same orthographic form but different phonological form
Information Retrieval
Different meaning but same orthographic form
Speech Recognition
to, two, too
Perfect homonyms are also problematic
9 / 29
Polysemy
10 / 29
Polysemy
Another example
Heavy snow caused the roof of the school to collapse.
The school hired more teachers this year than ever before.
10 / 29
11 / 29
More examples:
Author (Jane Austen wrote Emma) Works of Author (I really love Jane
Austen)
Animal (The chicken was domesticated in Asia) Meat (The chicken
was overcooked)
Tree (Plums have beautiful blossoms) Fruit (I ate a preserved plum
yesterday)
11 / 29
Zeugma test
Which of these flights serve breakfast?
Does Midwest Express serve Philadelphia?
12 / 29
Zeugma test
Which of these flights serve breakfast?
Does Midwest Express serve Philadelphia?
*Does Midwest Express serve breakfast and San Jose?
12 / 29
Zeugma test
Which of these flights serve breakfast?
Does Midwest Express serve Philadelphia?
*Does Midwest Express serve breakfast and San Jose?
Since it sounds weird, we say that these are two different senses of serve.
12 / 29
Synonymy
13 / 29
14 / 29
14 / 29
Why?
big has a sense that means being older, or grown up
large lacks this sense
14 / 29
Synonyms
Shades of meaning
What is the cheapest first class fare?
*What is the cheapest first class price?
15 / 29
Synonyms
Shades of meaning
What is the cheapest first class fare?
*What is the cheapest first class price?
Collocational constraints
We frustate em and frustate em, and pretty soon they make a big
mistake.
*We frustate em and frustate em, and pretty soon they make a large
mistake.
15 / 29
Antonyms
Senses that are opposites with respect to one feature of their meaning
Otherwise, they are similar!
I
I
I
I
I
dark / light
short / long
hot / cold
up / down
in / out
16 / 29
Antonyms
Senses that are opposites with respect to one feature of their meaning
Otherwise, they are similar!
I
I
I
I
I
dark / light
short / long
hot / cold
up / down
in / out
16 / 29
17 / 29
Hypernymy
Conversely
vehicle is a hypernym/superordinate of car
animal is a hypernym of dog
fruit is a hypernym of mango
17 / 29
Entailment
Sense A is a hyponym of sense B if being an A entails being a B.
Ex: dog, animal
Transitivity
A hypo B and B hypo C entails A hypo C
18 / 29
Definition
Meronymy: an asymmetric, transitive relation between senses.
X is a meronym of Y if it denotes a part of Y .
The inverse relation is holonymy.
meronym
porch
wheel
leg
nose
holonym
house
car
chair
face
19 / 29
WordNet
no. synsets
82,115
13,767
18,156
3,621
20 / 29
Synsets in WordNet
21 / 29
22 / 29
23 / 29
WordNet Hierarchies
24 / 29
Word Similarity
Synonymy is a binary relation
I
25 / 29
Word Similarity
Synonymy is a binary relation
I
Word similarity or
Word distance
25 / 29
Word Similarity
Synonymy is a binary relation
I
Word similarity or
Word distance
25 / 29
Word Similarity
Synonymy is a binary relation
I
Word similarity or
Word distance
25 / 29
Word Similarity
Synonymy is a binary relation
I
Word similarity or
Word distance
25 / 29
Distributional algorithms
By comparing words based on their distributional context in the corpora
Thesaurus-based algorithms
Based on whether words are nearby in WordNet
26 / 29
27 / 29
27 / 29
27 / 29
Path-based similarity
Basic Idea
Two words are similar if they are nearby in the hypernym graph
28 / 29
Path-based similarity
Basic Idea
Two words are similar if they are nearby in the hypernym graph
28 / 29
Path-based similarity
Basic Idea
Two words are similar if they are nearby in the hypernym graph
1
1+pathlen(c1 ,c2 )
28 / 29
Path-based similarity
Basic Idea
Two words are similar if they are nearby in the hypernym graph
1
1+pathlen(c1 ,c2 )
28 / 29
29 / 29