Natural Language Processing: Instructor: Dr. Muhammad Asfand-E-Yar
Natural Language Processing: Instructor: Dr. Muhammad Asfand-E-Yar
Natural Language Processing: Instructor: Dr. Muhammad Asfand-E-Yar
Processing
Lecture 1
Instructor: Dr. Muhammad Asfand-e-yar
You are welcome to watch videos, read those if you feel more
comfortable with that
We will change things based on experience, so please be patient.
Reference Book:
Enter the Access
Enter the Class code Code:
as “ANLPcsc741”
“CSC 741: Adv.NLP”
Press the
button:
“Join Classes”
Structure
Language NLP
Meaning
A symbolic/discrete system:
table:
piano:
• Gestures
• Image (writing)
2. Variability
3. Sparsity
4. Grounding
Example:
1. the round table (is an adjective),
2. to round the corner (is a verb),
3. dance in a round (is a noun),
4. come round and see us (is an adverb),
5. he walked round the room (is a preposition).
Example,
“They are cooking apples” is ambiguous because it may or may
not mean that apples are being cooked …
c) Structural Ambiguity
VP V NP
V NP PP discuss violence
PP
discuss violence P NP P NP
on TV
Definition: on TV
A context-free grammar can assign two or more phrase structures (“parse
trees”) to one and the same sequence of terminal symbols (words or word
classes)
Even short sentences have hundreds of analyses
MS(CS), Bahria University, Islamabad Instructor: Dr. Muhammad Asfand-e-yar
d) Semantic Ambiguity
Definition:
Concerns the meaning of a word or phrase/sentence
Claims suffer from semantic ambiguity when they contain a word (or words) with
multiple meanings.
Example:
“I don't like it when my father smokes.”
The word “smokes” has more than one meaning, and the significance of the
sentence changes dramatically depending on which meaning is intended.
(smokes also means without results)
Example:
“I ate an apple”
Unigrams: “I”, “ate”, “an”, “apple”
Bigrams: “I ate”, “ate an”, “an apple”
Relation: instance of
Bengal Tiger
tiger
Machine Learning/
Computer Science NLP Statistics
Artificial
Intelligence
Cognitive Science
How does the human brain process language?
Sports
Politics
Science
MS(CS), Bahria University, Islamabad Instructor: Dr. Muhammad Asfand-e-yar
2. Information Extraction
New York Times Co. named Russell T. Lewis, 45, president and general
manager of its flagship New York Times newspaper, responsible for all
business-side activities. He was executive vice president and deputy general
manager. He succeeds Lance R. Primis, who in September was named
president and chief operating officer of the parent.
Move all my
Wednesday
meetings in
April
NP
A A N V Adv.
S → NP | VP N → man
NP → DET | N N → woman
VP → Vt | N DET → the
VP → Vi DET → a
Vt → hugged
Vi → slept
MS(CS), Bahria University, Islamabad Instructor: Dr. Muhammad Asfand-e-yar
Empirical Revolution
“Whenever I fire a linguist, our system performance improves.”
Jelinek, 1988
When I look at an article in Russian, I say: “This is really written in English, but it
has been coded in some strange symbols. I will now proceed to decode.’
Weaver, 1995
Of course, we must not go overboard and mistakenly conclude that the successes
of statistical NLP render linguistics irrelevant (rash statements to this effect have
been made in the past, e.g., the notorious remark, “Every time I fire a linguist, my
performance goes up”). The information and insight that linguists, psychologists,
and others have gathered about language is invaluable in creating high
performance broad domain language understanding systems; for instance, in the
speech recognition setting described above, better understanding of language
structure can lead to better language models.”
Lilian Lee, 2001
MS(CS), Bahria University, Islamabad Instructor: Dr. Muhammad Asfand-e-yar
Empirical Revolution
Options:
• Choose a research paper, implement it
• Build a model that does something you care about
• Define a research problem and work on it
• Must submit a research paper of your interest, related to NLP (that
needs to be approved) on 14th Feb, 2018.