Majid Al-RaimiWhy NLP is hard and how progress is made

ICS 582Lecture 01Part 04

Why NLP is hard and how progress is made

Ambiguity at every level shown through 'I made her duck', the telescope sentence and real newspaper crash blossoms, six further sources of difficulty, and the knowledge sources and disciplines that make progress possible.

Concepts
4
Slides
20-25
Reading
24 min
Understood
0/4 concepts

Why this part matters

Most tasks in this course, from spelling correction to machine translation, can be viewed as resolving one of the ambiguities in this part, and the models you will meet are the machinery for doing it. If you can name the ambiguity, you can name the model that attacks it.

Part 3 laid out the levels of linguistic knowledge. This part shows why each level is needed by breaking one four-word sentence into five meanings, then drawing two grammatical parses of one prepositional phrase, then reading six real headlines that went wrong. It closes with six further sources of difficulty and the three kinds of knowledge that make progress possible. Exam questions ask for the five readings, the two attachments and the six difficulties by name, and the Arabic counterparts (dialects, clitics, no capital letters) are the difficulties your own research data will carry.

By the end you can

  1. Produce five readings of 'I made her duck' and name the linguistic level of the ambiguity behind each.
  2. Draw the NP and VP attachments of a prepositional phrase and explain why both parses are grammatical.
  3. Define a crash blossom, tell where the name comes from, and disambiguate any of the six headlines.
  4. List six sources of difficulty beyond ambiguity with the slide example and the NLP subproblem each defeats.
  5. State the three tools on slide 24 (two kinds of knowledge and a way to combine them) and the three source disciplines, and map them onto the four approaches of slide 15.

Take four ordinary words, I made her duck, and look for every meaning they can carry. The lecture asks for at least five and leaves the answers to you. Before reading on, try it honestly: how many can you find? Most people stop at two and are surprised that the sentence keeps going.

Recall

Find five meanings of 'I made her duck' before you reveal the list.

Jurafsky and Martin give these five in chapter 1 of the 2000 and 2009 editions of Speech and Language Processing: I cooked waterfowl for her; I cooked waterfowl belonging to her; I created the (plaster) duck she owns; I caused her to quickly lower her head or body; I waved my magic wand and turned her into a duck. They add that there are more.

The five meanings are not the lesson. The lesson is where each one comes from. Jurafsky and Martin use this sentence because every reading is produced by one decision at one linguistic level, and those levels are exactly the ones you met in part 3. That is what makes ambiguity the central problem of the field rather than a party trick.

Reading cyclerI made her duck: five readings, one string

I cooked waterfowl for her

Bracketing
[made [her]IO [duck]NP]
Level
Part of speech and word sense
Resolved by
POS tagging, word sense disambiguation
1 / 5

Work through what flips. The word duck can be a noun (the bird) or a verb (to lower your head), and her can be a dative pronoun (for her) or a possessive (her duck). Both are lexical ambiguities of part of speech. The word make keeps its part of speech but not its meaning: it can mean create or cook, which is a lexical ambiguity of sense, and choosing the right one is Word sense disambiguation. The cause and transform readings are not two further senses of make. They come from the frame the verb takes: the sentence as a whole can be built in three shapes, make with a single object (her duck as one noun phrase), make with two objects (her and duck, one turned into the other), or make with an object and a bare verb (her then duck as an action). That is syntactic ambiguity, a question of syntax rather than of any single word.

ReadingGlossWhat flipsLevel of ambiguity
1I cooked waterfowl for hermade = cook, her = dative, duck = nounPart of speech and word sense
2I cooked waterfowl belonging to herher = possessive, so her duck is one NPSyntactic (and POS of her)
3I created the plaster duck she ownsmade = createWord sense
4I caused her to quickly lower her headduck = verb, made takes an object plus a bare verbPart of speech and syntactic
5I turned her into a duckmade takes two objectsSyntactic (ditransitive)
Five readings of 'I made her duck' (Jurafsky and Martin, chapter 1)

One level is still missing, and it only appears when the sentence is spoken. In speech the first word could have been eye and the second could have been maid. Jurafsky and Martin call this an even deeper kind of ambiguity, because it sits below the words themselves, at the level of phonetics. A speech recogniser must settle it before any of the other decisions can even begin. Toggle the cycler to "heard, not read" to see it.

LevelThe decisionTask that resolves it
Phonetic (speech only)Is the first word I or eye, the second made or maidSpeech recognition
Part of speechIs duck a noun or a verb; is her a dative pronoun or a possessivePOS tagging
Word senseDoes make mean cook or createWord sense disambiguation
Syntactic structureDoes make take one object, two objects, or an object plus a verbParsing
Each ambiguity level has an NLP task that resolves it

This table is the sentence Jurafsky and Martin build their whole book on: most or all tasks in speech and language processing can be viewed as resolving ambiguity at one of these levels. Part-of-speech tagging decides whether duck is a noun or a verb, word sense disambiguation decides what make means, and probabilistic parsing decides whether her and duck group together. Every one of those tasks has its own chapter later in the course, and each one is answering a question this four-word sentence raises.

Recall

Which words in 'I made her duck' are ambiguous in part of speech, which word is ambiguous in sense, and what is ambiguous about the sentence as a whole?

duck (noun or verb) and her (dative or possessive) are part-of-speech ambiguities. make is ambiguous in sense (cook, create). The whole sentence is syntactically ambiguous: make can take one object, two objects (turning her into a duck), or an object plus a bare verb (causing her to duck). In speech, I versus eye and made versus maid add phonetic ambiguity.

If the duck sentence felt contrived, here is one nobody would blink at: I saw the man with a telescope. Who has the telescope? Read it once and you will have decided without noticing. Read it again and the other answer is just as available.

The phrase with a telescope is a prepositional phrase, and a prepositional phrase has to attach to something. Attach it inside the noun phrase, [the man [with a telescope]], and the man has the telescope. Attach it to the verb phrase, [saw [the man] [with a telescope]], and the telescope is the instrument of seeing: I used it. This is prepositional phrase attachment, one of the two common kinds of syntactic ambiguity in English text (the other is coordination ambiguity, as in old men and women), and the point is that both parses are fully grammatical. The grammar licenses both; only context, plausibility or statistics can choose. A third reading hides in the first word: saw can also be the present tense of the verb to saw, so I am cutting the man with a telescope, a lexical ambiguity stacked on top of the syntactic one.

One prepositional phrase, two grammatical homes: attached to the verb phrase (I used it) or inside the noun phrase (the man has it)

Jurafsky and Martin treat this under structural ambiguity in their parsing chapter: it occurs when the grammar can assign more than one parse to a sentence, and attachment ambiguity is one of the two common forms, the other being coordination ambiguity. Their own example is Groucho Marx's I shot an elephant in my pajamas, where in my pajamas can attach to the shooting or to the elephant. They call ambiguity the most serious problem faced by syntactic parsers, because a grammar big enough to cover real English assigns a naturally occurring sentence not two parses but many, most of them grammatical yet semantically unreasonable. Parsing is therefore never just recognising structure; it is choosing among structures.

Quick check

In 'I saw the man with a telescope', which attachment gives the reading where the man owns the telescope?

Crash blossoms: ambiguity in the wild

Ambiguity is not a classroom invention, and the six headlines stamped "100% REAL" in the lecture prove it: every one really ran in a news outlet. Headlines drop articles, auxiliaries and the copula to save space, which strips away exactly the cues a reader uses to settle part of speech and attachment. The result is a headline that admits an unintended reading, and copy editors have a name for it: a Crash blossom.

The name comes from the first line on the slide. In August 2009 the site Japan Today ran the headline Violinist Linked to JAL Crash Blossoms about Diana Yukawa, whose father died in the 1985 Japan Airlines crash and whose career was flourishing. Editors on the Testy Copy Editors forum read it as a species called crash blossoms and, in the thread that followed, proposed "crash blossom" as the general term for a headline that leads the reader down the garden path. Ben Zimmer picked the story up on Language Log that month and then in his New York Times On Language column in January 2010, which is what made the word stick.

Hover to flip each headline from its intended reading to the garden-path reading. The underlined word is the one whose part of speech, sense or bracketing changes.
HeadlineIntended readingGarden-path readingAmbiguous word and type
Violinist Linked to JAL Crash BlossomsA violinist connected to the crash is flourishingA species called crash blossoms is linked to a violinistblossoms: verb or noun (POS), and crash blossoms as a compound (segmentation)
Teacher Strikes Idle KidsTeachers' strikes leave children idleA teacher hits lazy childrenstrikes: noun or verb (POS), which flips idle between verb and adjective
Red Tape Holds Up New BridgesBureaucracy delays the bridgesTape robs, or physically supports, the bridgesholds up: delays, robs or supports (word sense of a phrasal verb)
Hospitals Are Sued by 7 Foot DoctorsSeven podiatrists sueDoctors seven feet tall sue[7 [foot doctors]] versus [[7 foot] doctors] (syntactic, compound attachment)
Juvenile Court to Try Shooting DefendantThe court will prosecute a defendant in a shooting caseThe court will attempt to shoot the defendanttry: prosecute or attempt (word sense); shooting: noun modifier or verb (POS)
Local High School Dropouts Cut in HalfThe dropout rate was halvedStudents were bisectedcut in half: figurative or literal (word sense), plus dropouts as a rate (world knowledge)
The six headlines on slide 22, disambiguated

Look at the last column and you will see the same three kinds of ambiguity as the duck sentence, just without the helpful function words. Strikes, blossoms and shooting are part-of-speech flips; holds up, try and cut in half are sense flips; 7 foot doctors is a bracketing flip. Notice also that one choice forces others: once strikes is a verb, idle must be an adjective, and once it is a noun, idle must be a verb. Ambiguities are not independent, which is why parsers resolve them jointly rather than word by word.

Quick check

Which ambiguity is at the root of the headline 'Teacher Strikes Idle Kids'?

Recall

What is a crash blossom, and where does the name come from?

A real headline whose compressed syntax admits an unintended garden-path reading. The name comes from Violinist Linked to JAL Crash Blossoms (Japan Today, August 2009), which was read as a species of flower; the term was proposed on the Testy Copy Editors forum and popularised by Ben Zimmer on Language Log and in the New York Times in January 2010.

Recall

Draw the two attachments of 'I saw the man with a telescope' as bracketings and say what each means.

[saw [the man [with a telescope]]]: the phrase sits inside the noun phrase, so the man has the telescope. [saw [the man] [with a telescope]]: the phrase attaches to the verb phrase, so I used the telescope to see him. A third reading takes saw as the cutting verb.

Six more reasons language is hard

Suppose ambiguity were solved. Would language understanding be easy? No, and there are six more reasons, each a different way real text refuses to behave like the tidy sentences of a grammar book. Take them one at a time, and for each one ask which NLP subproblem it defeats, because that subproblem is a research area with its own benchmarks.

Non-standard text

Guys plz d/l the lettr Ive written 2 Jeff Gaspin is perfectly readable to a human and almost useless to a model trained on edited prose. Five of its tokens are misspelt, abbreviated or numerals standing in for words. This is non-standard language, and it defeats normalisation: the step that is supposed to map surface forms to the vocabulary the model knows. For a KFUPM student the sharper version is diglossia. Farghaly and Shaalan describe Arabic as a language where Modern Standard Arabic is the formal written variety while everyday speech is Gulf, Egyptian or Levantine dialect. Text messages and social media carry that dialect into writing, and Darwish describes how it often arrives as Arabizi (Latin letters and digits standing in for Arabic sounds, as in 3ala for على), so a system trained on newswire MSA meets a different language on the phone.

Segmentation

The slide shows the New York-New Haven Railroad tokenized two ways. The naive split, on spaces alone, gives the | New | York-New | Haven | Railroad, gluing York to the wrong New. The right split, the | New York | - | New Haven | Railroad, needs to know that New York and New Haven are each one name. This is a Segmentation problem and it defeats Tokenization and named entity recognition together. Jurafsky and Martin note in their tokenization chapter that keeping a multiword expression such as New York as one token requires a multiword expression dictionary, so tokenization is tied to recognising names and to morphology. Arabic makes segmentation unavoidable rather than occasional: the preposition b (by, with) and the conjunction w (and) are clitics written attached to the following word, so وبالقلم is one orthographic word that a tokenizer must cut into w + b + al + qalam, four units, before anything else can run.

Idioms

Dark horse, get cold feet, lose face, throw in the towel. An Idiom is a multiword expression whose meaning is not built from its parts: no towel is thrown, no feet get cold. This defeats compositional semantics, the assumption that the meaning of a phrase is assembled from the meanings of its words, and it wrecks machine translation that translates word by word. Arabic has its own stock: على عيني is literally "on my eye" and means "gladly, of course".

Neologisms

Unfriend, Retweet, Malware, Webinar. Each of these entered everyday use, or in the case of unfriend returned to it with a new sense, only when a product or a threat made it necessary. A Neologism defeats any system with a closed vocabulary, which treats it as an out-of-vocabulary token and learns nothing. Vocabulary is open: new words arrive faster than lexicons can be updated. This is the motivation for the subword tokenization of lecture 2, where byte-pair encoding lets a model build unfriend from smaller, frequent pieces (ideally un plus friend) without ever having seen the whole word. Arabic coins verbs from loanwords the same way: speakers say سيّف, "to save" a file, forcing an English root into an Arabic verb pattern.

World knowledge

Mary and Sue are sisters. Mary and Sue are mothers. Same shape, same syntax, same plural predicate. Yet the first means sisters of each other and the second cannot mean mothers of each other. Nothing in the sentence tells you that; you know it because you know how sisterhood and motherhood work. This is world knowledge, and the subproblem it defeats is commonsense reasoning. It is the same in every language, which is why there is no Arabic column to add.

Tricky entity names

Where is A Bug's Life playing, Let It Be was recorded, a mutation on the for gene. A Named entity is supposed to be a proper name, but these names are made of ordinary words: an article, a pronoun, a preposition. Named entity recognition has to decide that for is a gene and Let It Be is a record without any lexical clue. In English the capital letters help a little. Arabic has no capital letters at all, so every person, place and organisation name looks like a common word. Farghaly and Shaalan list the missing capital letters among the central challenges for Arabic named entity recognition.

DifficultySlide exampleWhat it defeatsArabic counterpart
Non-standard textGuys plz d/l the lettr Ive written 2 Jeff GaspinNormalisation; models trained on edited textGulf dialect and Arabizi versus MSA
Segmentationthe New York-New Haven RailroadTokenization and named entity recognitionClitics: w + b + al + qalam written as one word
Idiomsdark horse, get cold feet, lose face, throw in the towelCompositional semantics, translation'on my eye' meaning gladly
Neologismsunfriend, Retweet, Malware, WebinarClosed vocabularies (out-of-vocabulary words)Loanword verbs such as 'to save' a file
World knowledgeMary and Sue are sisters / are mothersCommonsense reasoningSame problem in every language
Tricky entity namesA Bug's Life, Let It Be, the for geneNamed entity recognitionNo capital letters at all, so every name looks common
Six sources of difficulty, the subproblem each defeats, and the Arabic counterpart

The lecture closes the list with "But that's what makes it fun!" and for a PhD student that line is literal. Each card is a research community: text normalisation, tokenization and segmentation, multiword expressions, open-vocabulary modelling, commonsense reasoning and named entity recognition all have their own shared tasks and leaderboards, and Arabic versions of most of them are still open.

Quick check

Why does a bigger dictionary not solve idioms such as 'throw in the towel'?

Recall

List the six sources of difficulty on slide 23 with one example each.

Non-standard text (Guys plz d/l the lettr), segmentation (New York-New Haven), idioms (throw in the towel), neologisms (unfriend), world knowledge (Mary and Sue are mothers), tricky entity names (the for gene).

Go back to Mary and Sue are mothers and ask what a system would need to read it correctly. It needs the syntax of a plural predicate, which is knowledge of language. It needs to know that motherhood is not reciprocal between two women, which is knowledge about the world. And it needs some procedure that brings the two together on this sentence, a way to combine knowledge sources. Those are exactly the three tools the lecture says progress requires.

Two knowledge sources and one way to combine them produce one reading. The chips below name the disciplines the models, algorithms and theories are drawn from.

The third tool is the interesting one, because it is where the four approaches of slide 15 come from. Each approach is one answer to how knowledge sources get combined. Rule-based NLP encodes linguistic knowledge by hand and combines it by the order in which rules fire. Machine learning based NLP learns the linguistic knowledge from annotated data and lets a classifier weigh it. End-to-end deep learning learns everything, including whatever world knowledge the text happens to contain, from raw input inside one network. A hybrid approach mixes them, typically rules where knowledge is crisp and models where it is statistical.

ApproachKnowledge of language fromWorld knowledge fromHow sources are combined
Rule-basedHand-written grammars and lexiconsHand-written facts and ontologiesThe programmer decides the order of rules
Machine learningLearned from annotated corporaWhatever is encoded in featuresA classifier weighs the features
End-to-end deep learningLearned from raw textAbsorbed implicitly from huge corporaOne network mixes everything
HybridRules plus learned componentsRules, knowledge bases, learned componentsA pipeline or a voting scheme
The four approaches of slide 15 as four ways to combine the knowledge sources of slide 24

The second half of slide 24 says where the models, algorithms and theories come from: computer science, mathematics and linguistics. Slide 5 drew NLP where artificial intelligence, computer science and linguistics meet; slide 24 keeps computer science and linguistics but puts mathematics where artificial intelligence was. Jurafsky and Martin open their overview of the field with the same sentence, that the models are all drawn from the standard toolkits of computer science, mathematics and linguistics. Computer science supplies state space search, classifiers and dynamic programming. Mathematics supplies probability and linear algebra. Linguistics supplies the levels of part 3 and the categories, such as noun phrase and prepositional phrase, that the algorithms operate on.

Where the computer science tools appear later in the course

Dynamic programming
Minimum edit distance (lecture 2), Viterbi decoding for hidden Markov models
Classifiers
Naive Bayes and logistic regression for text classification
State space search
Constituency and dependency parsing, decoding in translation

Quick check

Which of the slide-24 tools tells you that 'Mary and Sue are mothers' does not mean mothers of each other?

The textbook behind the slides

The lecture credits its material mainly to Jurafsky and Martin, Speech and Language Processing. That is right; the duck sentence, the toolkit sentence and the whole shape of this lecture come from its first chapter. The edition details on the slide are not right.

Recall

Name the three tools on slide 24 and the three disciplines the models are drawn from, then say which of the four approaches of slide 15 learns its knowledge of language from raw text.

Knowledge of language, knowledge about the world, a way to combine knowledge sources; computer science, mathematics, linguistics. End-to-end deep learning learns from raw text; machine learning based NLP needs annotated data; rule-based NLP has it written by hand.

Recap

If you remember nothing else

  • Ambiguity lives at every level: part of speech (duck, her), word sense (make), syntax (argument structure, PP attachment) and, in speech, phonetics (eye, maid).
  • Jurafsky and Martin: ordinary sentences carry many grammatical parses that humans rarely notice, and most or all NLP tasks are ambiguity resolution at some level.
  • The same prepositional phrase can attach to the noun phrase or to the verb phrase. Both parses are grammatical, so grammar alone cannot choose.
  • A crash blossom is a real headline whose compressed syntax admits a garden-path reading. The name comes from 'Violinist Linked to JAL Crash Blossoms' (2009).
  • Beyond ambiguity: non-standard text, segmentation, idioms, neologisms, world knowledge and tricky entity names, each defeating a named NLP subproblem.
  • Arabic adds diglossia between MSA and dialect, clitics glued onto words, and no capitalisation cue for names.
  • Progress needs knowledge of language, knowledge about the world and a way to combine them, with tools drawn from computer science, mathematics and linguistics.
  • Slide 25's 'Prentice-Hall, 2020' is wrong. The Prentice Hall editions are 2000 and 2009; the 3rd edition is a free online draft, most recently August 2026.

Sources