Natural Language Processing · TEE · papers

Q1d · Ambiguity in NLP

2023-01-30 · re-exam · recovered AI paper

Previous examination · complete worked answers

Question. Explain the types of ambiguity in NLP with examples. [5 marks]

Answer

Ambiguity means an expression supports more than one interpretation. Good exam answers name the ambiguity and explain both readings.

ChallengeExampleWhy a system can fail
Lexical/sense ambiguitybank: finance or river edgeOne written word has several senses
Syntactic ambiguityI saw the man with a telescope.The telescope may modify saw or the man
Reference ambiguityRiya told Neha that she won.She may refer to either person without more context
SarcasmGreat, another delay.Literal positive word conveys frustration
NegationThe film was not good.Dropping not reverses meaning
Domain shift“Positive” in a medical reportMeaning/use differs by domain
Code mixingKal meeting reschedule karna.Several languages and spelling conventions
Noisy texttmrw, repeated letters, typosVocabulary/token boundaries become uncertain
Low-resource settingFew labelled examples in a languageModels lack representative training evidence
Bias and privacySkewed data or personal detailsErrors and harms can persist in deployed systems

Homophones sound alike but may differ in spelling (pair/pear). Homographs share spelling but can differ in meaning or pronunciation (lead the team / lead metal). These are different dimensions from syntactic ambiguity.

Long-distance dependencies, cultural knowledge, idioms, morphology and multilingual writing systems also complicate processing. For “kick the bucket”, literal word-by-word interpretation can miss the idiomatic meaning. For “The book that the students recommended is useful”, the verb is agrees with book across an intervening phrase.

Exam mein challenge ka naam + ek sentence + dono meanings/actual failure likho.

Structural ambiguity occurs when a sentence has more than one valid parse tree. In “I saw the man with a telescope”, the prepositional phrase “with a telescope” can attach to saw (the instrument I used) or to the man (the man possessing the telescope). The words and their order stay the same, but the grouping changes.

ReadingAttachmentMeaning
I [saw the man] [with a telescope]PP modifies VPI used a telescope to see the man.
I saw [the man with a telescope]PP modifies NPThe man had a telescope.

A parser may need context, probabilities or semantic constraints to choose between trees. A plain CFG describes permitted structures but does not itself assign a probability to each tree. Do not invent rule probabilities for an ordinary CFG question.

Lexical ambiguity also matters: book can be a noun or verb. In “Book the flight”, the imperative analysis begins S→VP, followed by VP→V NP. A parser that initially chooses book as a noun may reach a dead end and must try another permitted analysis.

Yaad rakho: Same words, alag grouping → alag meaning.