Introduction To Natural Language Processing
Introduction To Natural Language Processing
INTRODUCTION TO NATURAL
LANGUAGE PROCESSING
PREPARED AND COMPILED BY: AHMAD ULLAH
Lecture# 01
07/24/2024 2
Prerequisite
for
Natural language processing
● PYTHON
● BASIC CONCEPT OF MACHINE
LEARNING AND DEEP LEARNING
07/24/2024 3
Ambiguity:
Lexical Ambiguity : The Tank is full of water.
Syntactic Ambiguity : ill men and women get to hospital.
Semantic Ambiguity : The Bike hit the pole while it was running.
Pragmatic Ambiguity : The Army is coming.
Phonology – This science helps to deal with patterns present in the sound and speeches related
to the sound as a physical entity.
Morphology – This science deals with the structure of the words and the systematic relations
between them.
Semantics – This science deals with the literal meaning of the words, phrases as well as
sentences.
07/24/2024 11
Language
SYNTACTIC ANALYSIS
SEMANTIC ANALYSIS
• The way we understand what someone has said is an unconscious
process relying on our intuition and knowledge about language itself.
• Understand language is heavily based on meaning and context.
• Semantic analysis is the process of understanding the meaning and
interpretation of words, signs and sentence structure.
• Semantic analysis is one of the toughest parts of natural language
processing and it’s not fully solved yet.
07/24/2024 17
• PARSING
• “Resolve a sentence into its component parts and describe their syntactic
roles.”
• Parsing refers to the formal analysis of a sentence by a computer into its
constituents
• A parse tree also provides us with information about the grammatical
relationships of the words due to the structure of their representation.
07/24/2024 18
STEMMING
TEXT SEGMENTATION
Relationship Extraction
• Relationship extraction takes the named entities and tries to identify the
semantic relationships between them.
• This could mean, for example, finding out who is teaches to whom, that a
person works for a specific company and so on.
07/24/2024 22
Sentiment Analysis
APPLICATION OF NLP
• Spell and Grammar Checking
Checking spelling and grammar
Suggesting alternatives for the errors
07/24/2024 24
Word Prediction
• Predicting the next word that is highly probable to be typed by the user
07/24/2024 25
Information Retrieval
Machine Translation
Sentiment Analysis
Speech recognition
NLP
• Speech synthesis
Producing a spoken language from a text
• Spoken dialog systems
Running a dialog between the user and the system
• Google Assistant is one of the best example of NLP.
07/24/2024 31
APPLICATIONS
07/24/2024 32
USED BY