Unit 2 - Lecture 4 - 5
Unit 2 - Lecture 4 - 5
Processing
Instructor:
Mrs. S. Niveditha,
Lecture : 13 & 14 Assistant Professor(Sr. G)
Unit :2 SRM Institute of Science and Technology,
Session :4&5 [email protected]
Topics for Today
Lexical Disambiguation
Structural Disambiguation
Lexical Disambiguation
Introduction
Selection of correct parse tree from various parse trees by the natural
language processing system is known as syntactic disambiguation
Types of Structural / Syntactic
disambiguation
1. Attachment problem
3. Analytical ambiguities
The most common example is that of a prepositional phrase that may either
modify a verb (i.e., be a case-slot filler) or an immediately preceding noun
phrase.
For example:
Rose wanted to wash the dog with Hoary Marmot™ brand pet shampoo.
Rose wanted to phone the man with the limp.
Rose wanted to wash the dog with Hoary Marmot™ brand pet shampoo
Attachment ambiguity - Occasions
1. A prepositional phrase may have more than one noun phrase available to attach it
to (as well as, possibly, a verb):
The door near the stairs with the "Members Only" sign had tempted Nicola from the
moment she first entered the club.
The door near the stairs that had the "Members Only" sign had tempted Nicola from
the moment she first entered the club.
Attachment ambiguity - Occasions
3. A prepositional phrase can also be attached to an adjective phrase:
Depending on the parse, this could mean he seemed to act nicely towards her
(attachment to the adjective phrase) or he seemed to her to be nice (attachment to
the verb phrase).
Attachment ambiguity - Occasions
4. When a sentence contains a subsentence, both may contain places for the
attachment of a prepositional phrase or adverb:
Rose said that Nicola had taken the cleaning out yesterday.
The word yesterday may qualify the saying action of the matrix sentence, or the
taking action of the subsentence.
The preferred attachment for with garlic is fried, not knew or chicken
Attachment ambiguity - Occasions
6. On occasions, an adverbial placed between two clauses can be attached to the verb of
either:
The lady you met now and then came to visit us.
(i.e., We were visited by the lady you met now and then, or We were visited now and then by
the lady you met.)
(i.e., Sometimes the friends you praise deserve it, or The friends you sometimes praise deserve
it.
Attachment ambiguity - Summary
PP attachment—to noun or verb?
Rose insisted on phoning the man with the limp.
PP attachment—to which noun?
The door near the stairs with the "Members Only" sign
Relative clause attachment—to which noun?
The door near the stairs that had the "Members Only" sign
PP attachment—to verb or adjectival phrase?
He seemed nice to her.
PP attachment—to which verb?
Rose said that Nicola had taken the cleaning out on Tuesday.
Adverb attachment—to verb or sentence?
Happily, Nicola cleaned up the mess Rose had left.
Adverb attachment
The friends you praise sometimes deserve it
Gap finding and filling
Gap-finding ambiguities occur when a moved constituent has to be returned to its pre-
transformational starting point, and there is more than one place that it might go. For
example:
Those are the boys that the police debated about fighting
Taking the first gap gives the meaning that the police debated with the boys on the topic
of fighting. The second gives the police debated (among themselves) about fighting the
boys.
Analytical ambiguities
The attachment ambiguities that we saw above occur when it is clear
what the nature of a constituent is but not where to put it.
to be a single one.
Rose gave the dog some water, and Nicola gave the cat food.
Rose gave the shampoo, and Nicola gave the cat food.
Analytical ambiguities - Varieties
Rose wanted to visit the lab frightened the child (the cleft analysis)
the child, whom Rose wanted to visit the lab, was frightened by X, where X is some entity in
the discourse focus (the subject-verb-object analysis)
Analytical ambiguities - Varieties
(i.e., The manager, smoking a cigar, approached the boy, or The boy
smoking a cigar was approached by the manager.)
Analytical ambiguities - Summary
Present participle or noun?
We discussed running.
Cleft or not?
For example:
the words push and bottle could be verb and noun respectively, or noun and
verb; the writer intended the latter (the context of the sentence is a report on a
World War II battle), though there is a strong preference for the former.
Structural ambiguity as a closure
problem
Another way to look at many structural ambiguities is to view them as CLOSURE
PROBLEMS.
In parsing, a constituent of the parse tree is said to be OPEN if it has not been declared
complete, and so other constituents may still be attached to it.
When a constituent is complete, it is CLOSED, and that subtree may no longer be changed.
In English it is almost always true that if several constituents are open, then the attachment
of another constituent to one of them causes the closure of all open constituents at a lower
level of the tree.
Bracketed Notation
I prefer a morning flight.
Structural ambiguity as a closure
problem - Example
Nicola told the man with the limp about Rose's indiscretion
Structural ambiguity as a closure
problem - Example
Nicola told the man with the limp about Rose's indiscretion
PP
Structural ambiguity as a closure
problem - Example
Nicola told the man with the limp about Rose's indiscretion
PP
Structural ambiguity as a closure
problem - Example
Nicola told the man with the limp about Rose's indiscretion
PP
Structural ambiguity as a closure
problem - Example
Nicola told the man with the limp about Rose's indiscretion
PP
Nicola told the man with the limp about Rose's indiscretion due to gout.
Nicola told the man with the limp about Rose's indiscretion that she met at the
laundromat
End of session