SlideShare une entreprise Scribd logo
1  sur  34
George F Luger
ARTIFICIAL INTELLIGENCE 6th edition
Structures and Strategies for Complex Problem Solving
Understanding Natural Language
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
15.0 Role of Knowledge in Language
Understanding
15.1 Deconstructing Language: A
Symbolic Analysis
15.2 Syntax
15.3 Syntax and Knowledge with ATN
Parsers
15.4 Stochastic Tools for Language Analysis
15.5 Natural Language Applications
15.6 Epilogue and References
15.7 Exercises
1
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.1 A blocks world, adapted from Winograd (1972).
2
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
To manage this complexity, linguists have defined different levels of analysis for
natural language:
3
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.2 Stages in producing an internal representation of a sentence.
4
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.3 Parse tree for the sentence “The man bites the dog.”
5
Sentence −−> . Noun Verb predict: Noun followed by a Verb
Noun −−> . mary predict: mary
Noun --> mary . scanned: mary
Sentence --> Noun . Verb completed: Noun; predict: Verb
Verb --> . runs predict: runs
Verb --> runs . scanned: runs
Sentence --> Noun Verb . completed: Verb,
completed: sentence
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 6
Figure 15.4 The relationship of dotted r ules to the generation of a parse tree.
Noun .Verb Noun Verb .
Noun
mary .
mar y
runs .
runs
Sentence
.Noun Verb
.
..
.
.
Verb
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 7
The chart for mary runs, with three state lists, is:
S0: [($ --> . S), start
(S --> . Noun Verb)] predictor
S1: [(Noun --> mary .), scanner
(S --> Noun . Verb)] completer
S2: [(Verb --> runs .)] scanner
(S --> Noun Verb .), completer
($ --> S .)] completer
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 8
function EARLEY-PARSE(words, grammar) returns chart
begin
chart := empty
ADDTOCHART(($ Æ . S, [0, 0]), chart[0]) % dummy start state
for i from 0 to LENGTH(words) do
for each state in chart[i] do
if rule_rhs(state) = … . A … and A is not a part of speech
then PREDICTOR(state)
else if rule_rhs(state) = … . L … % L is part of speech
then SCANNER(state)
else COMLETER(state) % rule_rhs = RHS
end
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 9
procedure PREDICTOR((A Æ … . B …, [i, j]))
begin
for each (B Æ RHS) in grammar do
ADDTOCHART((B Æ . RHS, [j, j]), chart[j])
end
procedure SCANNER((A Æ … . L …, [i, j]))
begin
if (L Æ word[j]) is_in grammar
then ADDTOCHART((L Æ word[j] ., [j, j + 1]), chart[j + 1])
end
procedure COMPLETER((B Æ … ., [j, k]))
begin
for each (A Æ … . B …, [i, j]) in chart[j] do
ADDTOCHART((A Æ … B . …, [i, k]), chart[k])
end
procedure ADDTOCHART(state, state-list)
begin
if state is not in state-list
then ADDTOEND(state, state-list)
end
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 10
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.5 Transition network definition of a simple English grammar.
11
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Pseudo-code for a transition network parser appears on the following two slides. It
is defined using two mutually recursive functions, parse and transition.
continued…
12
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
continued from previous slide
13
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.6 Trace of a transition network parse of the sentence “Dog bites.”
14
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.7 Structures representing the sentence, noun phrase, and verb phrase
nonterminals of the grammar.
15
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.8 Dictionary entries for a simple ATN
16
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.9 An ATN grammar that checks number agreement and builds a parse tree.
continued…
17
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.9 continued from previous slide.
continued…
18
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
continued…
Fig 15.9 continued from previous slide.
19
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.8 continued from previous slide.
20
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 10 Parse tree for the sentence “The dog likes a man” returned by an ATN
parser.
21
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.11 Type hierarchy used in “dogs world” example.
22
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.12 Case frames for the verbs “like” and “bite.”
23
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Rules for our example are described as pseudo-code procedures. In each
procedure, if a specified join or other test fails, that interpretation is rejected as
semantically incorrect.
continued…
24
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
continued from previous slide.
25
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.13 Construction of a semantic representation from the parse tree of Figure
15.10.
26
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.14 Two different parses of “Print the file on the printer.”
27
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.15 Conceptual graph for the question “Who loves Jane?”
28
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.16 Two relations in an employee database.
29
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.17 Entity-relationship diagrams of the manager_of_hire and
employee_salary relations.
30
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.18 Knowledge base entry for “hire” queries.
31
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.19 Development of a database query from the graph of a natural language
input..
32
Fig 15.20 Sample text, template summary, and information extraction for computer
science advertisement.
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 33
Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009
Fig 15.21 An architecture for information extraction, from Cardie (1997).
34

Contenu connexe

Tendances

Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSESTHE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSESgraphhoc
 

Tendances (6)

Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSESTHE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
THE RESULT FOR THE GRUNDY NUMBER ON P4- CLASSES
 

En vedette

Deep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial IntelligenceDeep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial IntelligenceLukas Masuch
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Key Expert Systems Concepts
Key Expert Systems ConceptsKey Expert Systems Concepts
Key Expert Systems ConceptsHarmony Kwawu
 
Prepping the Analytics organization for Artificial Intelligence evolution
Prepping the Analytics organization for Artificial Intelligence evolutionPrepping the Analytics organization for Artificial Intelligence evolution
Prepping the Analytics organization for Artificial Intelligence evolutionRamkumar Ravichandran
 
artificial Intelligence
artificial Intelligence artificial Intelligence
artificial Intelligence Ramya SK
 
Rules in Artificial Intelligence
Rules in Artificial IntelligenceRules in Artificial Intelligence
Rules in Artificial IntelligencePierre Feillet
 
RULE-BASED INFERENCING SYSTEM FOR INFERTILITY DIAGNOSIS IN WOMEN
RULE-BASED INFERENCING SYSTEM FOR INFERTILITY DIAGNOSIS IN WOMENRULE-BASED INFERENCING SYSTEM FOR INFERTILITY DIAGNOSIS IN WOMEN
RULE-BASED INFERENCING SYSTEM FOR INFERTILITY DIAGNOSIS IN WOMENijaia
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence Muhammad Ahad
 
Artificial intelligence bsc - iso 27001 information security
Artificial intelligence   bsc - iso 27001 information securityArtificial intelligence   bsc - iso 27001 information security
Artificial intelligence bsc - iso 27001 information securityUfuk Cebeci
 
Encyclopedic Intelligence as Artificial Super Intelligence: Are You Ready To ...
Encyclopedic Intelligence as Artificial Super Intelligence: Are You Ready To ...Encyclopedic Intelligence as Artificial Super Intelligence: Are You Ready To ...
Encyclopedic Intelligence as Artificial Super Intelligence: Are You Ready To ...Azamat Abdoullaev
 
Artificialintelligenceandexpertsystems 121119234025-phpapp02
Artificialintelligenceandexpertsystems 121119234025-phpapp02Artificialintelligenceandexpertsystems 121119234025-phpapp02
Artificialintelligenceandexpertsystems 121119234025-phpapp02Zuhaib Zaroon
 
"Smart Data Web: Connecting data and extracting knowledge", Prof. Dr. Hans Us...
"Smart Data Web: Connecting data and extracting knowledge", Prof. Dr. Hans Us..."Smart Data Web: Connecting data and extracting knowledge", Prof. Dr. Hans Us...
"Smart Data Web: Connecting data and extracting knowledge", Prof. Dr. Hans Us...Dataconomy Media
 
1ii. Mandarine.Tech AI MINT - JOIN US AS A THOUGHT LEADER - edited
1ii. Mandarine.Tech AI  MINT - JOIN US AS A THOUGHT LEADER - edited1ii. Mandarine.Tech AI  MINT - JOIN US AS A THOUGHT LEADER - edited
1ii. Mandarine.Tech AI MINT - JOIN US AS A THOUGHT LEADER - editedDavid von Ackerman
 
Extending and integrating a hybrid knowledge representation system into the c...
Extending and integrating a hybrid knowledge representation system into the c...Extending and integrating a hybrid knowledge representation system into the c...
Extending and integrating a hybrid knowledge representation system into the c...Valentina Rho
 

En vedette (17)

Deep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial IntelligenceDeep Learning - The Past, Present and Future of Artificial Intelligence
Deep Learning - The Past, Present and Future of Artificial Intelligence
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Key Expert Systems Concepts
Key Expert Systems ConceptsKey Expert Systems Concepts
Key Expert Systems Concepts
 
Prepping the Analytics organization for Artificial Intelligence evolution
Prepping the Analytics organization for Artificial Intelligence evolutionPrepping the Analytics organization for Artificial Intelligence evolution
Prepping the Analytics organization for Artificial Intelligence evolution
 
artificial Intelligence
artificial Intelligence artificial Intelligence
artificial Intelligence
 
Rules in Artificial Intelligence
Rules in Artificial IntelligenceRules in Artificial Intelligence
Rules in Artificial Intelligence
 
Introduction to artificial intelligence
Introduction to artificial intelligenceIntroduction to artificial intelligence
Introduction to artificial intelligence
 
RULE-BASED INFERENCING SYSTEM FOR INFERTILITY DIAGNOSIS IN WOMEN
RULE-BASED INFERENCING SYSTEM FOR INFERTILITY DIAGNOSIS IN WOMENRULE-BASED INFERENCING SYSTEM FOR INFERTILITY DIAGNOSIS IN WOMEN
RULE-BASED INFERENCING SYSTEM FOR INFERTILITY DIAGNOSIS IN WOMEN
 
Artificial Intelligence
Artificial Intelligence Artificial Intelligence
Artificial Intelligence
 
Artificial intelligence bsc - iso 27001 information security
Artificial intelligence   bsc - iso 27001 information securityArtificial intelligence   bsc - iso 27001 information security
Artificial intelligence bsc - iso 27001 information security
 
Encyclopedic Intelligence as Artificial Super Intelligence: Are You Ready To ...
Encyclopedic Intelligence as Artificial Super Intelligence: Are You Ready To ...Encyclopedic Intelligence as Artificial Super Intelligence: Are You Ready To ...
Encyclopedic Intelligence as Artificial Super Intelligence: Are You Ready To ...
 
Artificialintelligenceandexpertsystems 121119234025-phpapp02
Artificialintelligenceandexpertsystems 121119234025-phpapp02Artificialintelligenceandexpertsystems 121119234025-phpapp02
Artificialintelligenceandexpertsystems 121119234025-phpapp02
 
"Smart Data Web: Connecting data and extracting knowledge", Prof. Dr. Hans Us...
"Smart Data Web: Connecting data and extracting knowledge", Prof. Dr. Hans Us..."Smart Data Web: Connecting data and extracting knowledge", Prof. Dr. Hans Us...
"Smart Data Web: Connecting data and extracting knowledge", Prof. Dr. Hans Us...
 
1ii. Mandarine.Tech AI MINT - JOIN US AS A THOUGHT LEADER - edited
1ii. Mandarine.Tech AI  MINT - JOIN US AS A THOUGHT LEADER - edited1ii. Mandarine.Tech AI  MINT - JOIN US AS A THOUGHT LEADER - edited
1ii. Mandarine.Tech AI MINT - JOIN US AS A THOUGHT LEADER - edited
 
Extending and integrating a hybrid knowledge representation system into the c...
Extending and integrating a hybrid knowledge representation system into the c...Extending and integrating a hybrid knowledge representation system into the c...
Extending and integrating a hybrid knowledge representation system into the c...
 
Artificial intelligence
Artificial intelligence Artificial intelligence
Artificial intelligence
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 

Plus de Muhammad Ahad

11. operating-systems-part-2
11. operating-systems-part-211. operating-systems-part-2
11. operating-systems-part-2Muhammad Ahad
 
11. operating-systems-part-1
11. operating-systems-part-111. operating-systems-part-1
11. operating-systems-part-1Muhammad Ahad
 
08. networking-part-2
08. networking-part-208. networking-part-2
08. networking-part-2Muhammad Ahad
 
06. security concept
06. security concept06. security concept
06. security conceptMuhammad Ahad
 
05. performance-concepts-26-slides
05. performance-concepts-26-slides05. performance-concepts-26-slides
05. performance-concepts-26-slidesMuhammad Ahad
 
05. performance-concepts
05. performance-concepts05. performance-concepts
05. performance-conceptsMuhammad Ahad
 
04. availability-concepts
04. availability-concepts04. availability-concepts
04. availability-conceptsMuhammad Ahad
 
03. non-functional-attributes-introduction-4-slides
03. non-functional-attributes-introduction-4-slides03. non-functional-attributes-introduction-4-slides
03. non-functional-attributes-introduction-4-slidesMuhammad Ahad
 
01. 03.-introduction-to-infrastructure
01. 03.-introduction-to-infrastructure01. 03.-introduction-to-infrastructure
01. 03.-introduction-to-infrastructureMuhammad Ahad
 
01. 02. introduction (13 slides)
01.   02. introduction (13 slides)01.   02. introduction (13 slides)
01. 02. introduction (13 slides)Muhammad Ahad
 

Plus de Muhammad Ahad (20)

11. operating-systems-part-2
11. operating-systems-part-211. operating-systems-part-2
11. operating-systems-part-2
 
11. operating-systems-part-1
11. operating-systems-part-111. operating-systems-part-1
11. operating-systems-part-1
 
10. compute-part-2
10. compute-part-210. compute-part-2
10. compute-part-2
 
10. compute-part-1
10. compute-part-110. compute-part-1
10. compute-part-1
 
09. storage-part-1
09. storage-part-109. storage-part-1
09. storage-part-1
 
08. networking-part-2
08. networking-part-208. networking-part-2
08. networking-part-2
 
08. networking
08. networking08. networking
08. networking
 
07. datacenters
07. datacenters07. datacenters
07. datacenters
 
06. security concept
06. security concept06. security concept
06. security concept
 
05. performance-concepts-26-slides
05. performance-concepts-26-slides05. performance-concepts-26-slides
05. performance-concepts-26-slides
 
05. performance-concepts
05. performance-concepts05. performance-concepts
05. performance-concepts
 
04. availability-concepts
04. availability-concepts04. availability-concepts
04. availability-concepts
 
03. non-functional-attributes-introduction-4-slides
03. non-functional-attributes-introduction-4-slides03. non-functional-attributes-introduction-4-slides
03. non-functional-attributes-introduction-4-slides
 
01. 03.-introduction-to-infrastructure
01. 03.-introduction-to-infrastructure01. 03.-introduction-to-infrastructure
01. 03.-introduction-to-infrastructure
 
01. 02. introduction (13 slides)
01.   02. introduction (13 slides)01.   02. introduction (13 slides)
01. 02. introduction (13 slides)
 
Chapter14
Chapter14Chapter14
Chapter14
 
Chapter13
Chapter13Chapter13
Chapter13
 
Chapter12
Chapter12Chapter12
Chapter12
 
Chapter11
Chapter11Chapter11
Chapter11
 
Chapter10
Chapter10Chapter10
Chapter10
 

Dernier

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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 Processorsdebabhi2
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Dernier (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Artificial Intelligence

  • 1. George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Understanding Natural Language Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 15.0 Role of Knowledge in Language Understanding 15.1 Deconstructing Language: A Symbolic Analysis 15.2 Syntax 15.3 Syntax and Knowledge with ATN Parsers 15.4 Stochastic Tools for Language Analysis 15.5 Natural Language Applications 15.6 Epilogue and References 15.7 Exercises 1
  • 2. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.1 A blocks world, adapted from Winograd (1972). 2
  • 3. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 To manage this complexity, linguists have defined different levels of analysis for natural language: 3
  • 4. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.2 Stages in producing an internal representation of a sentence. 4
  • 5. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.3 Parse tree for the sentence “The man bites the dog.” 5
  • 6. Sentence −−> . Noun Verb predict: Noun followed by a Verb Noun −−> . mary predict: mary Noun --> mary . scanned: mary Sentence --> Noun . Verb completed: Noun; predict: Verb Verb --> . runs predict: runs Verb --> runs . scanned: runs Sentence --> Noun Verb . completed: Verb, completed: sentence Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 6
  • 7. Figure 15.4 The relationship of dotted r ules to the generation of a parse tree. Noun .Verb Noun Verb . Noun mary . mar y runs . runs Sentence .Noun Verb . .. . . Verb Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 7
  • 8. The chart for mary runs, with three state lists, is: S0: [($ --> . S), start (S --> . Noun Verb)] predictor S1: [(Noun --> mary .), scanner (S --> Noun . Verb)] completer S2: [(Verb --> runs .)] scanner (S --> Noun Verb .), completer ($ --> S .)] completer Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 8
  • 9. function EARLEY-PARSE(words, grammar) returns chart begin chart := empty ADDTOCHART(($ Æ . S, [0, 0]), chart[0]) % dummy start state for i from 0 to LENGTH(words) do for each state in chart[i] do if rule_rhs(state) = … . A … and A is not a part of speech then PREDICTOR(state) else if rule_rhs(state) = … . L … % L is part of speech then SCANNER(state) else COMLETER(state) % rule_rhs = RHS end Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 9
  • 10. procedure PREDICTOR((A Æ … . B …, [i, j])) begin for each (B Æ RHS) in grammar do ADDTOCHART((B Æ . RHS, [j, j]), chart[j]) end procedure SCANNER((A Æ … . L …, [i, j])) begin if (L Æ word[j]) is_in grammar then ADDTOCHART((L Æ word[j] ., [j, j + 1]), chart[j + 1]) end procedure COMPLETER((B Æ … ., [j, k])) begin for each (A Æ … . B …, [i, j]) in chart[j] do ADDTOCHART((A Æ … B . …, [i, k]), chart[k]) end procedure ADDTOCHART(state, state-list) begin if state is not in state-list then ADDTOEND(state, state-list) end Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 10
  • 11. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.5 Transition network definition of a simple English grammar. 11
  • 12. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Pseudo-code for a transition network parser appears on the following two slides. It is defined using two mutually recursive functions, parse and transition. continued… 12
  • 13. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 continued from previous slide 13
  • 14. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.6 Trace of a transition network parse of the sentence “Dog bites.” 14
  • 15. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.7 Structures representing the sentence, noun phrase, and verb phrase nonterminals of the grammar. 15
  • 16. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.8 Dictionary entries for a simple ATN 16
  • 17. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.9 An ATN grammar that checks number agreement and builds a parse tree. continued… 17
  • 18. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.9 continued from previous slide. continued… 18
  • 19. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 continued… Fig 15.9 continued from previous slide. 19
  • 20. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.8 continued from previous slide. 20
  • 21. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 10 Parse tree for the sentence “The dog likes a man” returned by an ATN parser. 21
  • 22. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.11 Type hierarchy used in “dogs world” example. 22
  • 23. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.12 Case frames for the verbs “like” and “bite.” 23
  • 24. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Rules for our example are described as pseudo-code procedures. In each procedure, if a specified join or other test fails, that interpretation is rejected as semantically incorrect. continued… 24
  • 25. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 continued from previous slide. 25
  • 26. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.13 Construction of a semantic representation from the parse tree of Figure 15.10. 26
  • 27. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.14 Two different parses of “Print the file on the printer.” 27
  • 28. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.15 Conceptual graph for the question “Who loves Jane?” 28
  • 29. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.16 Two relations in an employee database. 29
  • 30. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.17 Entity-relationship diagrams of the manager_of_hire and employee_salary relations. 30
  • 31. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.18 Knowledge base entry for “hire” queries. 31
  • 32. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.19 Development of a database query from the graph of a natural language input.. 32
  • 33. Fig 15.20 Sample text, template summary, and information extraction for computer science advertisement. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 33
  • 34. Luger: Artificial Intelligence, 6th edition. © Pearson Education Limited, 2009 Fig 15.21 An architecture for information extraction, from Cardie (1997). 34