6-Lecture Six (Chapter Four-Semantic Analysis)
6-Lecture Six (Chapter Four-Semantic Analysis)
(Part II)
Adama Science and Technology University
School of Electrical Engineering and Computing
Department of CSE
Dr. Mesfin Abebe Haile (2022)
Outline
Semantic Analysis
Lexical semantics and word-sense disambiguation
Compositional semantics
Semantic Role Labeling and Semantic Parsing.
01/02/23 2
Semantic Analysis
01/02/23 3
Introduction
01/02/23 4
Introduction…
01/02/23 5
Introduction…
01/02/23 6
Introduction…
01/02/23 7
Introduction…
01/02/23 8
Lexical Semantics and Word-Sense
Disambiguation
Three Perspectives on Meaning
1. Lexical Semantics
The meanings of individual words.
2. Formal Semantics (or Compositional Semantics or Sentential
Semantics)
How those meanings combine to make meanings for individual
sentences or utterances.
3. Discourse or Pragmatics
How those meanings combine with each other and with other facts
about various kinds of context to make meanings for a text or
discourse.
Dialog or Conversation is often lumped together with Discourse.
01/02/23 9
Lexical Semantics and Word-Sense
Disambiguation…
Lexical Semantics
Can be defined as the study of what individual lexical items mean,
why they mean, what they do, how we can represent all of this, and
where the combined interpretation for an utterance comes from.
Lexical semantics is concerned with the identification and
representation of the semantics of lexical items.
If we are to identify the semantics of lexical items, we have to be
prepared for the eventuality of a given word having multiple
interpretations = polysemy (cf. monosemy).
Polysemy = the condition of a single lexical item having
multiple meanings.
01/02/23 10
Lexical Semantics and Word-Sense
Disambiguation…
Lexical Semantics…
There is a traditional division made between lexical semantics and
supralexical semantics.
Lexical semantics, which concerns itself with the meanings of words
and fixed word combinations,
Supralexical (combinational, or compositional) semantics, which
concerns itself with the meanings of the indefinitely large number of
word combinations—phrases and sentences—allowable under the
grammar.
While there is some obvious appeal and validity to this division, it
is increasingly recognized that word-level semantics and
grammatical semantics interact and interpenetrate in various ways.
01/02/23 11
Lexical Semantics and Word-Sense
Disambiguation…
Word-Sense Disambiguation
Many tasks in natural language processing require
disambiguation of ambiguous words.
Question Answering
Information Retrieval
Machine Translation
Text Mining
Phone Help Systems
01/02/23 13
Lexical Semantics and Word-Sense
Disambiguation…
Word-Sense Disambiguation…
Given
A word in context,
A fixed inventory of potential word senses.
Decide which sense of the word this is:
English-to-Spanish MT
Inventory is the set of Spanish translations
Speech Synthesis
Inventory is homographs with different pronunciations like bass
and bow.
Automatic indexing of medical articles
MeSH (Medical Subject Headings) thesaurus entries.
01/02/23 14
Lexical Semantics and Word-Sense
Disambiguation…
Word-Sense Disambiguation…
Approaches
Supervised
Semi-supervised
Unsupervised
» Dictionary-based techniques
» Selectional association
Lightly supervised
» Bootstrapping
» Preferred Selectional Association
01/02/23 15
Lexical Semantics and Word-Sense
Disambiguation…
Word-Sense Disambiguation…
WSD Approaches
Disambiguation based on manually created rules,
01/02/23 16
Lexical Semantics and Word-Sense
Disambiguation…
Word-Sense Disambiguation…
Lexical Ambiguity
Most words in natural languages have multiple possible meanings.
– “pen” (noun)
» The dog is in the pen.
» The ink is in the pen.
– “take” (verb)
» Take one pill every morning.
» Take the first right past the stoplight.
Syntax helps distinguish meanings for different parts of speech of an
ambiguous word.
– “conduct” (noun or verb)
» John’s conduct in class is unacceptable.
» John will conduct the orchestra on Thursday.
01/02/23 17
Lexical Semantics and Word-Sense
Disambiguation…
Word-Sense Disambiguation…
Evaluation of WSD
“In vitro”:
Corpus developed in which one or more ambiguous words are
labeled with explicit sense tags according to some sense inventory.
Corpus used for training and testing WSD and evaluated using
accuracy (percentage of labeled words correctly disambiguated).
» Use most common sense selection as a baseline.
“In vivo”:
Incorporate WSD system into some larger application system, such
as machine translation, information retrieval, or question answering.
Evaluate relative contribution of different WSD methods by
measuring performance impact on the overall system on final task
(accuracy of MT, IR, or QA results).
01/02/23 18
Lexical Semantics and Word-Sense
Disambiguation…
Word-Sense Disambiguation…
Issues in WSD
What is the right granularity of a sense inventory?
Integrating WSD with other NLP tasks:
Syntactic parsing
Semantic role labeling
Semantic parsing
01/02/23 20
Semantic Role Labeling and
Semantic Parsing…
Semantic Parsing:
Traditional sentence parsing is often performed as a method of
understanding the exact meaning of a sentence or word,
sometimes with the aid of devices such as sentence diagrams.
It usually emphasizes the importance of grammatical divisions
such as subject and predicate.
Within computational linguistics parsing is used to refer to the
formal analysis by a computer of a sentence or other string of
words into its constituents, resulting in a parse tree showing their
syntactic relation to each other.
Semantic parsing is the extension of broad-coverage probabilistic
parsers to represent sentence meaning.
01/02/23 21
Question & Answer
01/02/23 22
Thank You !!!
01/02/23 23
Individual Assignment - Three
01/02/23 24
Individual Assignment - Two
01/02/23 25