Natural Language Processing: Dr. Ahmed El-Bialy
Natural Language Processing: Dr. Ahmed El-Bialy
Automatic summarization
amounts of texts Condense 1 book into 1 page
require NLP expertise Question answering
Knowledge acquisition
Text generations / dialogues
Where does it fit in the CS taxonomy?
Computers
Semantics Parsing
NLP
aims at :
making computers talk
humans
Dialog system
Fiction
Conversational agent – system dialog
E-commerce: AINI
E-teaching : autotutor
(http://www.autotutor.org/what/what.htm )
Intelligent tutoring system that helps student learn by
holding a conversationnal in natural language
Animated agent : synthesis speech, intonation, facial
expressions, and gestures
demo (from 2002)
Machine translation
Automatically translate a
document from one language
to another
Very useful on the web
Far from solved problem
The Dream
It’d be great if machines could
Process our email (usefully)
Translate languages accurately
Help us manage, summarize, and
aggregate information
Use speech as a UI (when needed)
Talk to us / listen to us
But they can’t:
Language is complex, ambiguous,
flexible, and subtle
Good solutions need linguistics
and machine learning knowledge
So:
9/34
The mystery
What’s now impossible for computers (and any other
species) to do is effortless for humans
✕ ✕ ✓
10/34
What is NLP?
11/34
Role of Knowledge in Language Understanding
Text Processing
Lexical: tokenization, part of speech, head, lemmas
Parsing and chunking
Semantic tagging: semantic role, word sense
Certain expressions: named entities
Discourse: coreference, discourse segments
Speech Processing
Phonetic transcription
Segmentation (punctuations)
Prosody
The NLP Problem & Symbolic Approach
14/34
Discourse
Pragmatics
Semantics
Syntax
eg . V={a, b}
V* = { , a, b, aa, ab, ba, aaa, ……….}
V+={ a, b, aa, ab, ba, aaa, ……….}
g1 g1 g1 g1 g2
V NP P NP
Det
art N Det N
art
S NP VP
S Aux NP VP
SVP
VP V
VP V NP
NP PropN
NP art N
NP NP PP
VP VP PP
PP P NP
art art
12/08/2021
Bottom-Up Parsing
26
S
The tree notation is difficult to compute
with directly, so we can convert the
representation into more useful:
NP VP
(S (NP (POSS my)
(NOUN dog))
(VP (VERB ate)
POSS NOUN VERB NP (NP (ART a)
(NOUN frog))))
ART NOUN
NP VP
S S0 S1 S2
VERB NP
VP VP0 VP1 VP2
POSS POSS
When the lexicon gets really big, drawing them takes forever!
Transition Network
NP VP
S
V NP
VP
art
N
NP
frog
poss ate
N
V
dog
my
a
art poss
Transition Network
NP VP
S
art N V NP
NP VP