SlideShare a Scribd company logo
1 of 17
Natural Language Processing
Introduction
▪ Natural Language Processing is a subfield of Artificial Intelligence
and linguistics, devoted to make computers understand the
statements or words written by humans.
▪ A language is a system, a set of rules or set of symbols.
1. Symbols are combined and used for conveying information or
broadcasting the information.
2. Rules of grammar are used for handling symbols.
Introduction
▪ The history of NLP generally starts in the year 1950s. In 1950, Alan
Turing published an article titled "Machine and Intelligence" which
advertised what is now called theTuring test as a subfield of
intelligence.
▪ Natural languages are languages that living creatures use for
communication
▪ Artificial Languages are mathematically defined classes of signals
that can be used for communication with machines
▪ A language is a set of sentences that may be used as signals to
convey semantic information
▪ The meaning of a sentence is the semantic information it conveys
Problems faced in NLP
1. Incomplete description
2. Same word different Meanings
3. NewWords, Expressions and Meanings are generated quite freely.
4. There are a lot of ways of telling the same thing.
STEPS OF NATURAL LANGUAGE PROCESSING
▪ Morphological Analysis: Individual words are analyzed into
their components and non word tokens such as punctuations
are separated from the words.
▪ Syntactic Analysis: Linear sequences of words are
transformed into structures that show how the words relate to
each other.
▪ Semantic Analysis:The structures created by the syntactic
analyzer are assigned meanings.
▪ Discourse integration:The meaning of an individual sentence
may depend on the sentences that precede it and may
influence the meanings of the sentences that follow it.
▪ Pragmatic Analysis:The structure representing what was said
is reinterpreted to determine what was actually meant.
Syntax analysis
▪ The lexicon of a language is its vocabulary that includes its words and
expressions. Morphology depicts analysing, identifying and
description of structure of words.
▪ It involves dividing a text into paragraphs, words and the sentences
▪ The words are generally accepted as being the smallest units of
syntax.The syntax refers to the rules and principles that govern the
sentence structure of any individual languages
Syntactic Analysis
– S → NPVP
– NP → the NP1
– NP → PRO
– NP → PN
– NP → NP1
– NP1 →ADJS N
– ADJS → ε |ADJ ADJS
– VP →V
– VP →V NP
– N → file | printer
– PN → Bill
– PRO → I
– ADJ → short | long | fast
– V → printed | created | want
A Parse tree for a sentence :
S
NP
PN
Bill
VP
V
printed
NP
the
NP1
ADJS
E
N
file
▪ Text : Bill Printed the file
Syntax Tree Example
Syntactic Analysis Example
▪ A parse tree :
John ate the apple.
1. S -> NPVP
2. VP ->V NP
3. NP -> NAME
4. NP -> ART N
5. NAME -> John
6. V -> ate
7. ART-> the
8. N -> apple
S
NP VP
NAME
John
V
ate
NP
ART N
the apple
Semantic Analysis
▪ It must map individual words into appropriate objects in the
knowledgebase or database.
▪ It must create the correct structure to correspond to the way the
meaning of the individual words combine with each other.
▪ Thus a mapping is made between the syntactic structures and
objects in the task domain.The structures for which no such mapping
is possible is rejected.
▪ Eg: the sentence “Colorless green ideas…” would be rejected as
semantically anomalous because colorless and green makes no
sense.
Knowledge Base Fragment
Partial Meaning for a Sentence
Discourse Integration
▪ The Meaning of an individual sentence may depend on the sentences that
precede it and may influence the meaning of the sentences that follow it.
▪ Example: the word “it” in the sentence,”you wanted it” depends on the
prior discourse content.
▪ Specifically we do not know whom the pronoun “I” or the proper noun “Bill”
refers to.
▪ To pin down these references requires an appeal to a model of the current
discourse context, from which we can learn that the current user is
USER068 and that the only person named “Bill” about whom we could be
talking is USER073.
▪ Once the correct referent for Bill is known, we can also determine exactly
which file is being referred to.
Pragmatic Analysis
▪ The final step toward effective understanding is to decide what to do as a
results.
▪ One possible thing to do is to record what was said as a fact and be done
with it.
▪ For some sentences, whose intended effect is clearly declarative, that is
precisely correct thing to do.
▪ But for other sentences, including this one, the intended effect is different.
▪ We can discover this intended effect by applying a set of rules that
characterize cooperative dialogues.
▪ The final step in pragmatic processing is to translate, from the knowledge
based representation to a command to be executed by the system.
▪ The results of the understanding process is
Pragmatic Analysis
Summary
▪ We have seen the results of the main processes that combinr to form
a natural language system.
▪ In a complete system all of these processes are necessary.They will
form a complete natural language processing system.
▪ But all programs are not written with exactly these components,
sometimes two or more of such units are collapsed.
▪ Collapsing the components will result in a system that is easier to
build for restricted subsets of English but one that is harder to extend
to wider coverage.

More Related Content

What's hot

What's hot (20)

Natural Language Processing seminar review
Natural Language Processing seminar review Natural Language Processing seminar review
Natural Language Processing seminar review
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Introduction to Natural Language Processing
Introduction to Natural Language ProcessingIntroduction to Natural Language Processing
Introduction to Natural Language Processing
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Natural Language Processing (NLP)
Natural Language Processing (NLP)Natural Language Processing (NLP)
Natural Language Processing (NLP)
 
NLP
NLPNLP
NLP
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Natural Language Processing
Natural Language Processing Natural Language Processing
Natural Language Processing
 
Natural Language Processing (NLP) - Introduction
Natural Language Processing (NLP) - IntroductionNatural Language Processing (NLP) - Introduction
Natural Language Processing (NLP) - Introduction
 
Introduction to Natural Language Processing (NLP)
Introduction to Natural Language Processing (NLP)Introduction to Natural Language Processing (NLP)
Introduction to Natural Language Processing (NLP)
 
Introduction to natural language processing
Introduction to natural language processingIntroduction to natural language processing
Introduction to natural language processing
 
Natural language processing PPT presentation
Natural language processing PPT presentationNatural language processing PPT presentation
Natural language processing PPT presentation
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 

Viewers also liked

Practical Natural Language Processing
Practical Natural Language ProcessingPractical Natural Language Processing
Practical Natural Language Processing
Jaganadh Gopinadhan
 

Viewers also liked (20)

From Natural Language Processing to Artificial Intelligence
From Natural Language Processing to Artificial IntelligenceFrom Natural Language Processing to Artificial Intelligence
From Natural Language Processing to Artificial Intelligence
 
Practical Natural Language Processing
Practical Natural Language ProcessingPractical Natural Language Processing
Practical Natural Language Processing
 
Natural Language Processing: L01 introduction
Natural Language Processing: L01 introductionNatural Language Processing: L01 introduction
Natural Language Processing: L01 introduction
 
Learning
LearningLearning
Learning
 
AI: Learning in AI 2
AI: Learning in AI 2AI: Learning in AI 2
AI: Learning in AI 2
 
AI: Learning in AI
AI: Learning in AI AI: Learning in AI
AI: Learning in AI
 
Operations Management Study in Textured Jersy Lanka Limited
Operations Management Study in Textured Jersy Lanka LimitedOperations Management Study in Textured Jersy Lanka Limited
Operations Management Study in Textured Jersy Lanka Limited
 
Azure machine learning tech mela
Azure machine learning tech melaAzure machine learning tech mela
Azure machine learning tech mela
 
ADO.NET Introduction
ADO.NET IntroductionADO.NET Introduction
ADO.NET Introduction
 
Electronics projects
Electronics projectsElectronics projects
Electronics projects
 
Introduction and Starting ASP.NET MVC
Introduction and Starting ASP.NET MVCIntroduction and Starting ASP.NET MVC
Introduction and Starting ASP.NET MVC
 
Machine learning and azure ml studio
Machine learning and azure ml studioMachine learning and azure ml studio
Machine learning and azure ml studio
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
RC4&RC5
RC4&RC5RC4&RC5
RC4&RC5
 
Natural Language Processing: L03 maths fornlp
Natural Language Processing: L03 maths fornlpNatural Language Processing: L03 maths fornlp
Natural Language Processing: L03 maths fornlp
 
Language models
Language modelsLanguage models
Language models
 
Natural Language Processing: L02 words
Natural Language Processing: L02 wordsNatural Language Processing: L02 words
Natural Language Processing: L02 words
 
Deep Learning For Practitioners, lecture 2: Selecting the right applications...
Deep Learning For Practitioners,  lecture 2: Selecting the right applications...Deep Learning For Practitioners,  lecture 2: Selecting the right applications...
Deep Learning For Practitioners, lecture 2: Selecting the right applications...
 
Deep Learning Primer - a brief introduction
Deep Learning Primer - a brief introductionDeep Learning Primer - a brief introduction
Deep Learning Primer - a brief introduction
 
Deep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingDeep Learning for Natural Language Processing
Deep Learning for Natural Language Processing
 

Similar to Natural Language Processing

Natural language processing.pptx
Natural language processing.pptxNatural language processing.pptx
Natural language processing.pptx
RiteshKumar66208
 
Natural Language Processing (NLP)
Natural Language Processing (NLP)Natural Language Processing (NLP)
Natural Language Processing (NLP)
Abdullah al Mamun
 
Natural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxNatural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptx
SHIBDASDUTTA
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
Mariana Soffer
 
Shallow parser for hindi language with an input from a transliterator
Shallow parser for hindi language with an input from a transliteratorShallow parser for hindi language with an input from a transliterator
Shallow parser for hindi language with an input from a transliterator
Shashank Shisodia
 

Similar to Natural Language Processing (20)

Natural Language Processing Course in AI
Natural Language Processing Course in AINatural Language Processing Course in AI
Natural Language Processing Course in AI
 
Natural language processing.pptx
Natural language processing.pptxNatural language processing.pptx
Natural language processing.pptx
 
Natural Language Processing (NLP)
Natural Language Processing (NLP)Natural Language Processing (NLP)
Natural Language Processing (NLP)
 
https://www.slideshare.net/amaresimachew/hot-topics-132093738
https://www.slideshare.net/amaresimachew/hot-topics-132093738https://www.slideshare.net/amaresimachew/hot-topics-132093738
https://www.slideshare.net/amaresimachew/hot-topics-132093738
 
NLP
NLPNLP
NLP
 
Natural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxNatural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptx
 
NLP
NLPNLP
NLP
 
6 shallow parsing introduction
6 shallow parsing introduction6 shallow parsing introduction
6 shallow parsing introduction
 
Nlp ambiguity presentation
Nlp ambiguity presentationNlp ambiguity presentation
Nlp ambiguity presentation
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
REPORT.doc
REPORT.docREPORT.doc
REPORT.doc
 
Shallow parser for hindi language with an input from a transliterator
Shallow parser for hindi language with an input from a transliteratorShallow parser for hindi language with an input from a transliterator
Shallow parser for hindi language with an input from a transliterator
 
Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4Artificial Intelligence Notes Unit 4
Artificial Intelligence Notes Unit 4
 
NLP todo
NLP todoNLP todo
NLP todo
 
Natural Language Processing basics presentation
Natural Language Processing basics presentationNatural Language Processing basics presentation
Natural Language Processing basics presentation
 
Untitled presentation.pdf
Untitled presentation.pdfUntitled presentation.pdf
Untitled presentation.pdf
 
Nlp (1)
Nlp (1)Nlp (1)
Nlp (1)
 
5. phases of nlp
5. phases of nlp5. phases of nlp
5. phases of nlp
 
Natural Language Processing_in semantic web.pptx
Natural Language Processing_in semantic web.pptxNatural Language Processing_in semantic web.pptx
Natural Language Processing_in semantic web.pptx
 
Ijetcas14 458
Ijetcas14 458Ijetcas14 458
Ijetcas14 458
 

More from Rishikese MR

More from Rishikese MR (19)

1 2 3 4 5 g
1 2 3 4 5 g1 2 3 4 5 g
1 2 3 4 5 g
 
Fuzzy Logic
Fuzzy LogicFuzzy Logic
Fuzzy Logic
 
Crowd Sourcing With Smart Phone
Crowd Sourcing With Smart PhoneCrowd Sourcing With Smart Phone
Crowd Sourcing With Smart Phone
 
BLUE BRAIN
BLUE BRAINBLUE BRAIN
BLUE BRAIN
 
The No SQL Principles and Basic Application Of Casandra Model
The No SQL Principles and Basic Application Of Casandra ModelThe No SQL Principles and Basic Application Of Casandra Model
The No SQL Principles and Basic Application Of Casandra Model
 
CYBORG
CYBORG CYBORG
CYBORG
 
DATA WAREHOUSING
DATA WAREHOUSINGDATA WAREHOUSING
DATA WAREHOUSING
 
Automatic 2D to 3D Video Conversion For 3DTV's
 Automatic 2D to 3D Video Conversion For 3DTV's Automatic 2D to 3D Video Conversion For 3DTV's
Automatic 2D to 3D Video Conversion For 3DTV's
 
Middleware and Middleware in distributed application
Middleware and Middleware in distributed applicationMiddleware and Middleware in distributed application
Middleware and Middleware in distributed application
 
TOR NETWORK
TOR NETWORKTOR NETWORK
TOR NETWORK
 
EMOTION BASED COMPUTING
EMOTION BASED COMPUTINGEMOTION BASED COMPUTING
EMOTION BASED COMPUTING
 
BITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESBITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USES
 
3D OPTICAL DATA STORAGE
3D OPTICAL DATA STORAGE3D OPTICAL DATA STORAGE
3D OPTICAL DATA STORAGE
 
OUTERNET
OUTERNETOUTERNET
OUTERNET
 
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.OVERVIEW  OF FACEBOOK SCALABLE ARCHITECTURE.
OVERVIEW OF FACEBOOK SCALABLE ARCHITECTURE.
 
Google Glass and its Features
Google Glass and its FeaturesGoogle Glass and its Features
Google Glass and its Features
 
Virtualization and cloud Computing
Virtualization and cloud ComputingVirtualization and cloud Computing
Virtualization and cloud Computing
 
Artificial intelligence in gaming.
Artificial intelligence in gaming.Artificial intelligence in gaming.
Artificial intelligence in gaming.
 
A seminar on neo4 j
A seminar on neo4 jA seminar on neo4 j
A seminar on neo4 j
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Natural Language Processing

  • 2. Introduction ▪ Natural Language Processing is a subfield of Artificial Intelligence and linguistics, devoted to make computers understand the statements or words written by humans. ▪ A language is a system, a set of rules or set of symbols. 1. Symbols are combined and used for conveying information or broadcasting the information. 2. Rules of grammar are used for handling symbols.
  • 3. Introduction ▪ The history of NLP generally starts in the year 1950s. In 1950, Alan Turing published an article titled "Machine and Intelligence" which advertised what is now called theTuring test as a subfield of intelligence. ▪ Natural languages are languages that living creatures use for communication ▪ Artificial Languages are mathematically defined classes of signals that can be used for communication with machines ▪ A language is a set of sentences that may be used as signals to convey semantic information ▪ The meaning of a sentence is the semantic information it conveys
  • 4. Problems faced in NLP 1. Incomplete description 2. Same word different Meanings 3. NewWords, Expressions and Meanings are generated quite freely. 4. There are a lot of ways of telling the same thing.
  • 5. STEPS OF NATURAL LANGUAGE PROCESSING ▪ Morphological Analysis: Individual words are analyzed into their components and non word tokens such as punctuations are separated from the words. ▪ Syntactic Analysis: Linear sequences of words are transformed into structures that show how the words relate to each other. ▪ Semantic Analysis:The structures created by the syntactic analyzer are assigned meanings. ▪ Discourse integration:The meaning of an individual sentence may depend on the sentences that precede it and may influence the meanings of the sentences that follow it. ▪ Pragmatic Analysis:The structure representing what was said is reinterpreted to determine what was actually meant.
  • 6. Syntax analysis ▪ The lexicon of a language is its vocabulary that includes its words and expressions. Morphology depicts analysing, identifying and description of structure of words. ▪ It involves dividing a text into paragraphs, words and the sentences ▪ The words are generally accepted as being the smallest units of syntax.The syntax refers to the rules and principles that govern the sentence structure of any individual languages
  • 7. Syntactic Analysis – S → NPVP – NP → the NP1 – NP → PRO – NP → PN – NP → NP1 – NP1 →ADJS N – ADJS → ε |ADJ ADJS – VP →V – VP →V NP – N → file | printer – PN → Bill – PRO → I – ADJ → short | long | fast – V → printed | created | want
  • 8. A Parse tree for a sentence : S NP PN Bill VP V printed NP the NP1 ADJS E N file ▪ Text : Bill Printed the file
  • 10. Syntactic Analysis Example ▪ A parse tree : John ate the apple. 1. S -> NPVP 2. VP ->V NP 3. NP -> NAME 4. NP -> ART N 5. NAME -> John 6. V -> ate 7. ART-> the 8. N -> apple S NP VP NAME John V ate NP ART N the apple
  • 11. Semantic Analysis ▪ It must map individual words into appropriate objects in the knowledgebase or database. ▪ It must create the correct structure to correspond to the way the meaning of the individual words combine with each other. ▪ Thus a mapping is made between the syntactic structures and objects in the task domain.The structures for which no such mapping is possible is rejected. ▪ Eg: the sentence “Colorless green ideas…” would be rejected as semantically anomalous because colorless and green makes no sense.
  • 13. Partial Meaning for a Sentence
  • 14. Discourse Integration ▪ The Meaning of an individual sentence may depend on the sentences that precede it and may influence the meaning of the sentences that follow it. ▪ Example: the word “it” in the sentence,”you wanted it” depends on the prior discourse content. ▪ Specifically we do not know whom the pronoun “I” or the proper noun “Bill” refers to. ▪ To pin down these references requires an appeal to a model of the current discourse context, from which we can learn that the current user is USER068 and that the only person named “Bill” about whom we could be talking is USER073. ▪ Once the correct referent for Bill is known, we can also determine exactly which file is being referred to.
  • 15. Pragmatic Analysis ▪ The final step toward effective understanding is to decide what to do as a results. ▪ One possible thing to do is to record what was said as a fact and be done with it. ▪ For some sentences, whose intended effect is clearly declarative, that is precisely correct thing to do. ▪ But for other sentences, including this one, the intended effect is different. ▪ We can discover this intended effect by applying a set of rules that characterize cooperative dialogues. ▪ The final step in pragmatic processing is to translate, from the knowledge based representation to a command to be executed by the system. ▪ The results of the understanding process is
  • 17. Summary ▪ We have seen the results of the main processes that combinr to form a natural language system. ▪ In a complete system all of these processes are necessary.They will form a complete natural language processing system. ▪ But all programs are not written with exactly these components, sometimes two or more of such units are collapsed. ▪ Collapsing the components will result in a system that is easier to build for restricted subsets of English but one that is harder to extend to wider coverage.