SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Downloaden Sie, um offline zu lesen
Subject Name:- ARTIFICIAL INTELLIGENCE
Subject Code:- RCS702
Unit No.:- 4
Lecture No.:- 3
Topic Name :- Natural Language Processing & Expert
1
System
Dr Anuranjan Misra
Professor & Dean
GNIOT, Greater noida
RCS-702/L-6
Content
1. Natural Language Processing
 Components of NLP
 NLP Terminology
 Steps in NLP
 Steps in NLP
2. Expert Systems
2
RCS-702/L-6
Natural Language Processing
• Natural Language Processing (NLP) refers to AI method
of communicating with an intelligent systems using a
natural language such as English.
• Processing of Natural Language is required when you
want an intelligent system like robot to perform as per
want an intelligent system like robot to perform as per
your instructions, when you want to hear decision from
a dialogue based clinical expert system, etc.
• The field of NLP involves making computers to perform
useful tasks with the natural languages humans use.
The input and output of an NLP system can be −
 Speech
 Written Text
3
RCS-702/L-6
Components of NLP
• There are two components of NLP as given −
• Natural language understanding(NLU)
• Natural language generation(NLG)
• Natural Language Understanding (NLU)
• Natural Language Understanding (NLU)
• Understanding involves the following tasks −
Mapping the given input in natural language
into useful representations.
Analyzing different aspects of the language.
4
RCS-702/L-6
Components of NLP
• Natural Language Generation (NLG)
• It is the process of producing meaningful phrases and
sentences in the form of natural language from some
internal representation.
• It involves −
• It involves −
 Text planning − It includes retrieving the relevant
content from knowledge base.
 Sentence planning − It includes choosing required
words, forming meaningful phrases, setting tone of the
sentence.
 Text Realization − It is mapping sentence plan into
sentence structure.
• The NLU is harder than NLG.
5
RCS-702/L-6
Difficulties in NLU
• NL has an extremely rich form and structure.
• It is very ambiguous. There can be different levels of
ambiguity −
 Lexical ambiguity − It is at very primi ve level such as
word-level.
 For example, treating the word “board” as noun or verb?
 Syntax Level ambiguity − A sentence can be parsed in
different ways.
 Syntax Level ambiguity − A sentence can be parsed in
different ways.
 For example, “He li ed the beetle with red cap.” − Did he
use cap to lift the beetle or he lifted a beetle that had red
cap?
 Referential ambiguity − Referring to something using
pronouns. For example, Rima went to Gauri. She said, “I am
red.” − Exactly who is red?
 One input can mean different meanings.
 Many inputs can mean the same thing. 6
RCS-702/L-6
NLP Terminology
• Phonology − It is study of organizing sound
systematically.
• Morphology − It is a study of construction of
words from primitive meaningful units.
words from primitive meaningful units.
• Morpheme − It is primitive unit of meaning in
a language.
• Syntax − It refers to arranging words to make a
sentence. It also involves determining the
structural role of words in the sentence and in
phrases.
7
RCS-702/L-6
NLP Terminology
• Semantics − It is concerned with the meaning of
words and how to combine words into
meaningful phrases and sentences.
• Pragmatics − It deals with using and
understanding sentences in different situations
understanding sentences in different situations
and how the interpretation of the sentence is
affected.
• Discourse − It deals with how the immediately
preceding sentence can affect the interpretation
of the next sentence.
• World Knowledge − It includes the general
knowledge about the world.
8
RCS-702/L-6
Steps in NLP
9
RCS-702/L-6
Steps in NLP
• Lexical Analysis − It involves identifying and
analyzing the structure of words. Lexicon of a
language means the collection of words and
phrases in a language. Lexical analysis is dividing
the whole chunk of txt into paragraphs,
sentences, and words.
the whole chunk of txt into paragraphs,
sentences, and words.
• Syntactic Analysis (Parsing) − It involves analysis
of words in the sentence for grammar and
arranging words in a manner that shows the
relationship among the words. The sentence such
as “The school goes to boy” is rejected by English
syntactic analyzer.
10
RCS-702/L-6
Steps in NLP
• Semantic Analysis − It draws the exact meaning or the
dictionary meaning from the text. The text is checked
for meaningfulness. It is done by mapping syntactic
structures and objects in the task domain. The
semantic analyzer disregards sentence such as “hot ice-
cream”.
cream”.
• Discourse Integration − The meaning of any sentence
depends upon the meaning of the sentence just before
it. In addition, it also brings about the meaning of
immediately succeeding sentence.
• Pragmatic Analysis − During this, what was said is re-
interpreted on what it actually meant. It involves
deriving those aspects of language which require real
world knowledge. 11
RCS-702/L-6
Expert Systems
• Expert systems (ES) are one of the prominent research
domains of AI. It is introduced by the researchers at
Stanford University, Computer Science Department.
• The expert systems are the computer applications
developed to solve complex problems in a particular
domain, at the level of extra-ordinary human
domain, at the level of extra-ordinary human
intelligence and expertise.
• Characteristics of Expert Systems
 High performance
 Understandable
 Reliable
 Highly responsive
12
RCS-702/L-6
Capabilities & Incapability of Expert
Systems
They are capable of
• Advising
• Instructing and assisting
human in decision making
• Demonstrating
They are incapable of
• Substituting human decision
makers
• Possessing human
capabilities
Demonstrating
• Deriving a solution
• Diagnosing
• Explaining
• Interpreting input
• Predicting results
• Justifying the conclusion
• Suggesting alternative options
to a problem
capabilities
• Producing accurate output
for inadequate knowledge
base
• Refining their own
knowledge
RCS-702/L-6 13
Components of Expert Systems
• The components of ES include −
• Knowledge Base
• Inference Engine
• User Interface
• User Interface
14
RCS-702/L-6
Knowledge Base
• It contains domain-specific and high-quality
knowledge.
• Knowledge is required to exhibit intelligence. The
success of any ES majorly depends upon the
collection of highly accurate and precise
collection of highly accurate and precise
knowledge.
• What is Knowledge?
The data is collection of facts. The information is
organized as data and facts about the task
domain. Data, information, and past
experience combined together are termed as
knowledge.
15
RCS-702/L-6
Components of Knowledge Base
• The knowledge base of an ES is a store of both,
factual and heuristic knowledge.
Factual Knowledge − It is the information widely
accepted by the Knowledge Engineers and
scholars in the task domain.
scholars in the task domain.
Heuristic Knowledge − It is about practice,
accurate judgement, one’s ability of evaluation,
and guessing.
• Knowledge representation
• It is the method used to organize and formalize
the knowledge in the knowledge base. It is in the
form of IF-THEN-ELSE rules.
16
RCS-702/L-6
Knowledge Acquisition
• The success of any expert system majorly depends on
the quality, completeness, and accuracy of the
information stored in the knowledge base.
• The knowledge base is formed by readings from
various experts, scholars, and the Knowledge
Engineers. The knowledge engineer is a person with
Engineers. The knowledge engineer is a person with
the qualities of empathy, quick learning, and case
analyzing skills.
• He acquires information from subject expert by
recording, interviewing, and observing him at work,
etc. He then categorizes and organizes the information
in a meaningful way, in the form of IF-THEN-ELSE rules,
to be used by interference machine. The knowledge
engineer also monitors the development of the ES.
17
RCS-702/L-6
Inference Engine
• In case of knowledge-based ES, the Inference Engine
acquires and manipulates the knowledge from the
knowledge base to arrive at a particular solution.
• In case of rule based ES, it −
 Applies rules repeatedly to the facts, which are
obtained from earlier rule application.
obtained from earlier rule application.
 Adds new knowledge into the knowledge base if
required.
 Resolves rules conflict when multiple rules are
applicable to a particular case.
• To recommend a solution, the Inference Engine uses
the following strategies −
 Forward Chaining
 Backward Chaining 18
RCS-702/L-6
Forward Chaining
• It is a strategy of an expert system to answer the
question, “What can happen next?”
• Here, the Inference Engine follows the chain of
conditions and derivations and finally deduces
conditions and derivations and finally deduces
the outcome. It considers all the facts and rules,
and sorts them before concluding to a solution.
• This strategy is followed for working on
conclusion, result, or effect. For example,
prediction of share market status as an effect of
changes in interest rates.
19
RCS-702/L-6
Backward Chaining
• With this strategy, an expert system finds out
the answer to the question, “Why this
happened?”
• On the basis of what has already happened,
• On the basis of what has already happened,
the Inference Engine tries to find out which
conditions could have happened in the past
for this result. This strategy is followed for
finding out cause or reason. For example,
diagnosis of blood cancer in humans.
20
RCS-702/L-6
User Interface
• User interface provides interaction between user of the
ES and the ES itself. It is generally Natural Language
Processing so as to be used by the user who is well-
versed in the task domain. The user of the ES need not
be necessarily an expert in Artificial Intelligence.
• It explains how the ES has arrived at a particular
• It explains how the ES has arrived at a particular
recommendation. The explanation may appear in the
following forms −
 Natural language displayed on screen.
 Verbal narrations in natural language.
 Listing of rule numbers displayed on the screen.
• The user interface makes it easy to trace the credibility
of the deductions.
21
RCS-702/L-6
Expert Systems Limitations
• No technology can offer easy and complete
solution. Large systems are costly, require
significant development time, and computer
resources. ESs have their limitations which
resources. ESs have their limitations which
include −
Limitations of the technology
Difficult knowledge acquisition
ES are difficult to maintain
High development costs
22
RCS-702/L-6
Expert System Technology
• Expert System Development Environment −
The ES development environment includes
hardware and tools. They are −
Workstations, minicomputers, mainframes.
Workstations, minicomputers, mainframes.
High level Symbolic Programming Languages
such as LISt Programming (LISP)
and PROgrammation en LOGique (PROLOG).
Large databases.
23
RCS-702/L-6
Expert System Technology
• Tools − They reduce the effort and cost
involved in developing an expert system to
large extent.
Powerful editors and debugging tools with
Powerful editors and debugging tools with
multi-windows.
They provide rapid prototyping
Have Inbuilt definitions of model, knowledge
representation, and inference design.
24
RCS-702/L-6
Expert System Technology
• Shells − A shell is nothing but an expert system
without knowledge base. A shell provides the
developers with knowledge acquisition, inference
engine, user interface, and explanation facility.
For example, few shells are given below −
For example, few shells are given below −
Java Expert System Shell (JESS) that provides fully
developed Java API for creating an expert system.
Vidwan, a shell developed at the National Centre
for Software Technology, Mumbai in 1993. It
enables knowledge encoding in the form of IF-
THEN rules.
25
RCS-702/L-6
Development of Expert Systems:
General Steps
• Identify Problem Domain
• Design the System
• Develop the Prototype
• Develop the Prototype
• Test and Refine the Prototype
• Develop and Complete the ES
• Maintain the System
RCS-702/L-6 26
Benefits of Expert Systems
• Availability − They are easily available due to mass
production of software.
• Less Production Cost − Production cost is reasonable.
This makes them affordable.
• Speed − They offer great speed. They reduce the
amount of work an individual puts in.
• Speed − They offer great speed. They reduce the
amount of work an individual puts in.
• Less Error Rate − Error rate is low as compared to
human errors.
• Reducing Risk − They can work in the environment
dangerous to humans.
• Steady response − They work steadily without getting
motional, tensed or fatigued.
RCS-702/L-6 27
Important Questions
Q1.What is Natural Language Processing?
Q2.What are Expert Systems?
Q3. How can you develop expert system?
Q4. What are the components of NLP?
Q4. What are the components of NLP?
Q5. Explain the steps in NLP.
28
RCS-702/L-6
References
• Text books:
1. Stuart Russell, Peter Norvig, “Artificial
Intelligence – A Modern Approach”, Pearson
Education
2. Elaine Rich and Kevin Knight, “Artificial
2. Elaine Rich and Kevin Knight, “Artificial
Intelligence”, McGraw-Hill
3. E Charniak and D McDermott, “Introduction to
Artificial Intelligence”, Pearson Education
4. Dan W. Patterson, “Artificial Intelligence and
Expert Systems”, Prentice Hall of India,
29
RCS-702/L-6
30
Thank You
RCS-702/L-6

Weitere ähnliche Inhalte

Ähnlich wie 4.3.pdf

Natural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxNatural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxSHIBDASDUTTA
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingRishikese MR
 
Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...RajkiranVeluri
 
Tutorial: Text Analytics for Security
Tutorial: Text Analytics for SecurityTutorial: Text Analytics for Security
Tutorial: Text Analytics for SecurityTao Xie
 
Natural language processing (nlp)
Natural language processing (nlp)Natural language processing (nlp)
Natural language processing (nlp)Kuppusamy P
 
Natural Language Processing for development
Natural Language Processing for developmentNatural Language Processing for development
Natural Language Processing for developmentAravind Reddy
 
Natural Language Processing for development
Natural Language Processing for developmentNatural Language Processing for development
Natural Language Processing for developmentAravind Reddy
 
Jarrar: Stepwise Methodologies for Developing Ontologies
Jarrar: Stepwise Methodologies for Developing OntologiesJarrar: Stepwise Methodologies for Developing Ontologies
Jarrar: Stepwise Methodologies for Developing OntologiesMustafa Jarrar
 
Nlp, robotics and expert system
Nlp, robotics and expert systemNlp, robotics and expert system
Nlp, robotics and expert systemsuman Mann Mann
 
RuleML2015 - Tutorial - Powerful Practical Semantic Rules in Rulelog - Funda...
RuleML2015 - Tutorial -  Powerful Practical Semantic Rules in Rulelog - Funda...RuleML2015 - Tutorial -  Powerful Practical Semantic Rules in Rulelog - Funda...
RuleML2015 - Tutorial - Powerful Practical Semantic Rules in Rulelog - Funda...RuleML
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingVeenaSKumar2
 
Natural Language Generation / Stanford cs224n 2019w lecture 15 Review
Natural Language Generation / Stanford cs224n 2019w lecture 15 ReviewNatural Language Generation / Stanford cs224n 2019w lecture 15 Review
Natural Language Generation / Stanford cs224n 2019w lecture 15 Reviewchangedaeoh
 
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...QuantInsti
 
IRJET- Querying Database using Natural Language Interface
IRJET-  	  Querying Database using Natural Language InterfaceIRJET-  	  Querying Database using Natural Language Interface
IRJET- Querying Database using Natural Language InterfaceIRJET Journal
 
LESSON 8 EXPERT SYSTEMS BASICS.ppt
LESSON 8 EXPERT SYSTEMS BASICS.pptLESSON 8 EXPERT SYSTEMS BASICS.ppt
LESSON 8 EXPERT SYSTEMS BASICS.pptJoyleenChemutai1
 
AI Chapter VIIProblem Solving Using Searching .pptx
AI Chapter VIIProblem Solving Using Searching .pptxAI Chapter VIIProblem Solving Using Searching .pptx
AI Chapter VIIProblem Solving Using Searching .pptxwekineheshete
 
Using construction grammar in conversational systems
Using construction grammar in conversational systemsUsing construction grammar in conversational systems
Using construction grammar in conversational systemsCJ Jenkins
 

Ähnlich wie 4.3.pdf (20)

Natural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxNatural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptx
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...Natural Language Processing, Techniques, Current Trends and Applications in I...
Natural Language Processing, Techniques, Current Trends and Applications in I...
 
Tutorial: Text Analytics for Security
Tutorial: Text Analytics for SecurityTutorial: Text Analytics for Security
Tutorial: Text Analytics for Security
 
Natural language processing (nlp)
Natural language processing (nlp)Natural language processing (nlp)
Natural language processing (nlp)
 
Lesson 40
Lesson 40Lesson 40
Lesson 40
 
AI Lesson 40
AI Lesson 40AI Lesson 40
AI Lesson 40
 
Natural Language Processing for development
Natural Language Processing for developmentNatural Language Processing for development
Natural Language Processing for development
 
Natural Language Processing for development
Natural Language Processing for developmentNatural Language Processing for development
Natural Language Processing for development
 
Jarrar: Stepwise Methodologies for Developing Ontologies
Jarrar: Stepwise Methodologies for Developing OntologiesJarrar: Stepwise Methodologies for Developing Ontologies
Jarrar: Stepwise Methodologies for Developing Ontologies
 
Nlp, robotics and expert system
Nlp, robotics and expert systemNlp, robotics and expert system
Nlp, robotics and expert system
 
uploadscribd2.pptx
uploadscribd2.pptxuploadscribd2.pptx
uploadscribd2.pptx
 
RuleML2015 - Tutorial - Powerful Practical Semantic Rules in Rulelog - Funda...
RuleML2015 - Tutorial -  Powerful Practical Semantic Rules in Rulelog - Funda...RuleML2015 - Tutorial -  Powerful Practical Semantic Rules in Rulelog - Funda...
RuleML2015 - Tutorial - Powerful Practical Semantic Rules in Rulelog - Funda...
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Natural Language Generation / Stanford cs224n 2019w lecture 15 Review
Natural Language Generation / Stanford cs224n 2019w lecture 15 ReviewNatural Language Generation / Stanford cs224n 2019w lecture 15 Review
Natural Language Generation / Stanford cs224n 2019w lecture 15 Review
 
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
 
IRJET- Querying Database using Natural Language Interface
IRJET-  	  Querying Database using Natural Language InterfaceIRJET-  	  Querying Database using Natural Language Interface
IRJET- Querying Database using Natural Language Interface
 
LESSON 8 EXPERT SYSTEMS BASICS.ppt
LESSON 8 EXPERT SYSTEMS BASICS.pptLESSON 8 EXPERT SYSTEMS BASICS.ppt
LESSON 8 EXPERT SYSTEMS BASICS.ppt
 
AI Chapter VIIProblem Solving Using Searching .pptx
AI Chapter VIIProblem Solving Using Searching .pptxAI Chapter VIIProblem Solving Using Searching .pptx
AI Chapter VIIProblem Solving Using Searching .pptx
 
Using construction grammar in conversational systems
Using construction grammar in conversational systemsUsing construction grammar in conversational systems
Using construction grammar in conversational systems
 

Kürzlich hochgeladen

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 

Kürzlich hochgeladen (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 

4.3.pdf

  • 1. Subject Name:- ARTIFICIAL INTELLIGENCE Subject Code:- RCS702 Unit No.:- 4 Lecture No.:- 3 Topic Name :- Natural Language Processing & Expert 1 System Dr Anuranjan Misra Professor & Dean GNIOT, Greater noida RCS-702/L-6
  • 2. Content 1. Natural Language Processing  Components of NLP  NLP Terminology  Steps in NLP  Steps in NLP 2. Expert Systems 2 RCS-702/L-6
  • 3. Natural Language Processing • Natural Language Processing (NLP) refers to AI method of communicating with an intelligent systems using a natural language such as English. • Processing of Natural Language is required when you want an intelligent system like robot to perform as per want an intelligent system like robot to perform as per your instructions, when you want to hear decision from a dialogue based clinical expert system, etc. • The field of NLP involves making computers to perform useful tasks with the natural languages humans use. The input and output of an NLP system can be −  Speech  Written Text 3 RCS-702/L-6
  • 4. Components of NLP • There are two components of NLP as given − • Natural language understanding(NLU) • Natural language generation(NLG) • Natural Language Understanding (NLU) • Natural Language Understanding (NLU) • Understanding involves the following tasks − Mapping the given input in natural language into useful representations. Analyzing different aspects of the language. 4 RCS-702/L-6
  • 5. Components of NLP • Natural Language Generation (NLG) • It is the process of producing meaningful phrases and sentences in the form of natural language from some internal representation. • It involves − • It involves −  Text planning − It includes retrieving the relevant content from knowledge base.  Sentence planning − It includes choosing required words, forming meaningful phrases, setting tone of the sentence.  Text Realization − It is mapping sentence plan into sentence structure. • The NLU is harder than NLG. 5 RCS-702/L-6
  • 6. Difficulties in NLU • NL has an extremely rich form and structure. • It is very ambiguous. There can be different levels of ambiguity −  Lexical ambiguity − It is at very primi ve level such as word-level.  For example, treating the word “board” as noun or verb?  Syntax Level ambiguity − A sentence can be parsed in different ways.  Syntax Level ambiguity − A sentence can be parsed in different ways.  For example, “He li ed the beetle with red cap.” − Did he use cap to lift the beetle or he lifted a beetle that had red cap?  Referential ambiguity − Referring to something using pronouns. For example, Rima went to Gauri. She said, “I am red.” − Exactly who is red?  One input can mean different meanings.  Many inputs can mean the same thing. 6 RCS-702/L-6
  • 7. NLP Terminology • Phonology − It is study of organizing sound systematically. • Morphology − It is a study of construction of words from primitive meaningful units. words from primitive meaningful units. • Morpheme − It is primitive unit of meaning in a language. • Syntax − It refers to arranging words to make a sentence. It also involves determining the structural role of words in the sentence and in phrases. 7 RCS-702/L-6
  • 8. NLP Terminology • Semantics − It is concerned with the meaning of words and how to combine words into meaningful phrases and sentences. • Pragmatics − It deals with using and understanding sentences in different situations understanding sentences in different situations and how the interpretation of the sentence is affected. • Discourse − It deals with how the immediately preceding sentence can affect the interpretation of the next sentence. • World Knowledge − It includes the general knowledge about the world. 8 RCS-702/L-6
  • 10. Steps in NLP • Lexical Analysis − It involves identifying and analyzing the structure of words. Lexicon of a language means the collection of words and phrases in a language. Lexical analysis is dividing the whole chunk of txt into paragraphs, sentences, and words. the whole chunk of txt into paragraphs, sentences, and words. • Syntactic Analysis (Parsing) − It involves analysis of words in the sentence for grammar and arranging words in a manner that shows the relationship among the words. The sentence such as “The school goes to boy” is rejected by English syntactic analyzer. 10 RCS-702/L-6
  • 11. Steps in NLP • Semantic Analysis − It draws the exact meaning or the dictionary meaning from the text. The text is checked for meaningfulness. It is done by mapping syntactic structures and objects in the task domain. The semantic analyzer disregards sentence such as “hot ice- cream”. cream”. • Discourse Integration − The meaning of any sentence depends upon the meaning of the sentence just before it. In addition, it also brings about the meaning of immediately succeeding sentence. • Pragmatic Analysis − During this, what was said is re- interpreted on what it actually meant. It involves deriving those aspects of language which require real world knowledge. 11 RCS-702/L-6
  • 12. Expert Systems • Expert systems (ES) are one of the prominent research domains of AI. It is introduced by the researchers at Stanford University, Computer Science Department. • The expert systems are the computer applications developed to solve complex problems in a particular domain, at the level of extra-ordinary human domain, at the level of extra-ordinary human intelligence and expertise. • Characteristics of Expert Systems  High performance  Understandable  Reliable  Highly responsive 12 RCS-702/L-6
  • 13. Capabilities & Incapability of Expert Systems They are capable of • Advising • Instructing and assisting human in decision making • Demonstrating They are incapable of • Substituting human decision makers • Possessing human capabilities Demonstrating • Deriving a solution • Diagnosing • Explaining • Interpreting input • Predicting results • Justifying the conclusion • Suggesting alternative options to a problem capabilities • Producing accurate output for inadequate knowledge base • Refining their own knowledge RCS-702/L-6 13
  • 14. Components of Expert Systems • The components of ES include − • Knowledge Base • Inference Engine • User Interface • User Interface 14 RCS-702/L-6
  • 15. Knowledge Base • It contains domain-specific and high-quality knowledge. • Knowledge is required to exhibit intelligence. The success of any ES majorly depends upon the collection of highly accurate and precise collection of highly accurate and precise knowledge. • What is Knowledge? The data is collection of facts. The information is organized as data and facts about the task domain. Data, information, and past experience combined together are termed as knowledge. 15 RCS-702/L-6
  • 16. Components of Knowledge Base • The knowledge base of an ES is a store of both, factual and heuristic knowledge. Factual Knowledge − It is the information widely accepted by the Knowledge Engineers and scholars in the task domain. scholars in the task domain. Heuristic Knowledge − It is about practice, accurate judgement, one’s ability of evaluation, and guessing. • Knowledge representation • It is the method used to organize and formalize the knowledge in the knowledge base. It is in the form of IF-THEN-ELSE rules. 16 RCS-702/L-6
  • 17. Knowledge Acquisition • The success of any expert system majorly depends on the quality, completeness, and accuracy of the information stored in the knowledge base. • The knowledge base is formed by readings from various experts, scholars, and the Knowledge Engineers. The knowledge engineer is a person with Engineers. The knowledge engineer is a person with the qualities of empathy, quick learning, and case analyzing skills. • He acquires information from subject expert by recording, interviewing, and observing him at work, etc. He then categorizes and organizes the information in a meaningful way, in the form of IF-THEN-ELSE rules, to be used by interference machine. The knowledge engineer also monitors the development of the ES. 17 RCS-702/L-6
  • 18. Inference Engine • In case of knowledge-based ES, the Inference Engine acquires and manipulates the knowledge from the knowledge base to arrive at a particular solution. • In case of rule based ES, it −  Applies rules repeatedly to the facts, which are obtained from earlier rule application. obtained from earlier rule application.  Adds new knowledge into the knowledge base if required.  Resolves rules conflict when multiple rules are applicable to a particular case. • To recommend a solution, the Inference Engine uses the following strategies −  Forward Chaining  Backward Chaining 18 RCS-702/L-6
  • 19. Forward Chaining • It is a strategy of an expert system to answer the question, “What can happen next?” • Here, the Inference Engine follows the chain of conditions and derivations and finally deduces conditions and derivations and finally deduces the outcome. It considers all the facts and rules, and sorts them before concluding to a solution. • This strategy is followed for working on conclusion, result, or effect. For example, prediction of share market status as an effect of changes in interest rates. 19 RCS-702/L-6
  • 20. Backward Chaining • With this strategy, an expert system finds out the answer to the question, “Why this happened?” • On the basis of what has already happened, • On the basis of what has already happened, the Inference Engine tries to find out which conditions could have happened in the past for this result. This strategy is followed for finding out cause or reason. For example, diagnosis of blood cancer in humans. 20 RCS-702/L-6
  • 21. User Interface • User interface provides interaction between user of the ES and the ES itself. It is generally Natural Language Processing so as to be used by the user who is well- versed in the task domain. The user of the ES need not be necessarily an expert in Artificial Intelligence. • It explains how the ES has arrived at a particular • It explains how the ES has arrived at a particular recommendation. The explanation may appear in the following forms −  Natural language displayed on screen.  Verbal narrations in natural language.  Listing of rule numbers displayed on the screen. • The user interface makes it easy to trace the credibility of the deductions. 21 RCS-702/L-6
  • 22. Expert Systems Limitations • No technology can offer easy and complete solution. Large systems are costly, require significant development time, and computer resources. ESs have their limitations which resources. ESs have their limitations which include − Limitations of the technology Difficult knowledge acquisition ES are difficult to maintain High development costs 22 RCS-702/L-6
  • 23. Expert System Technology • Expert System Development Environment − The ES development environment includes hardware and tools. They are − Workstations, minicomputers, mainframes. Workstations, minicomputers, mainframes. High level Symbolic Programming Languages such as LISt Programming (LISP) and PROgrammation en LOGique (PROLOG). Large databases. 23 RCS-702/L-6
  • 24. Expert System Technology • Tools − They reduce the effort and cost involved in developing an expert system to large extent. Powerful editors and debugging tools with Powerful editors and debugging tools with multi-windows. They provide rapid prototyping Have Inbuilt definitions of model, knowledge representation, and inference design. 24 RCS-702/L-6
  • 25. Expert System Technology • Shells − A shell is nothing but an expert system without knowledge base. A shell provides the developers with knowledge acquisition, inference engine, user interface, and explanation facility. For example, few shells are given below − For example, few shells are given below − Java Expert System Shell (JESS) that provides fully developed Java API for creating an expert system. Vidwan, a shell developed at the National Centre for Software Technology, Mumbai in 1993. It enables knowledge encoding in the form of IF- THEN rules. 25 RCS-702/L-6
  • 26. Development of Expert Systems: General Steps • Identify Problem Domain • Design the System • Develop the Prototype • Develop the Prototype • Test and Refine the Prototype • Develop and Complete the ES • Maintain the System RCS-702/L-6 26
  • 27. Benefits of Expert Systems • Availability − They are easily available due to mass production of software. • Less Production Cost − Production cost is reasonable. This makes them affordable. • Speed − They offer great speed. They reduce the amount of work an individual puts in. • Speed − They offer great speed. They reduce the amount of work an individual puts in. • Less Error Rate − Error rate is low as compared to human errors. • Reducing Risk − They can work in the environment dangerous to humans. • Steady response − They work steadily without getting motional, tensed or fatigued. RCS-702/L-6 27
  • 28. Important Questions Q1.What is Natural Language Processing? Q2.What are Expert Systems? Q3. How can you develop expert system? Q4. What are the components of NLP? Q4. What are the components of NLP? Q5. Explain the steps in NLP. 28 RCS-702/L-6
  • 29. References • Text books: 1. Stuart Russell, Peter Norvig, “Artificial Intelligence – A Modern Approach”, Pearson Education 2. Elaine Rich and Kevin Knight, “Artificial 2. Elaine Rich and Kevin Knight, “Artificial Intelligence”, McGraw-Hill 3. E Charniak and D McDermott, “Introduction to Artificial Intelligence”, Pearson Education 4. Dan W. Patterson, “Artificial Intelligence and Expert Systems”, Prentice Hall of India, 29 RCS-702/L-6