SlideShare a Scribd company logo
1 of 5
Types of ALICE/AIML Categories
• Atomic categories: do not have wildcard symbols.
• Default categories: have wildcard entries * or _.
Continued
• Recursive categories:
Symbolic Reduction:
Divide and Conquer:
Continued
Synonyms
ALICE Pattern Matching Algorithm
• Normalization is applied for each input, removing all
punctuations, split in two or more sentences and converted to
uppercase.
E.g.: Do you, or will you eat me?.
Converted to: DO YOU OR WILL YOU EAT ME
• AIML interpreter then tries to match word by word the
longest pattern match. We expect this to be the best one.
Algorithm
• Assume the user input starts with word X.
• Root of this tree structure is a folder of the file system that
contains all patterns and templates.
• The pattern matching uses depth first techniques.
The folder has a subfolder stars with _,then, ”_/”,scan through and match
all words suffixed X, if no match then:
Go back to the folder, find another subfolder start with word X, if so then
turn to “X/”,scan for matching the tail of X. Patterns are matched. If no
match then:
Go back to the folder, find a subfolder starting with *,turn to, “*/”, try all
suffixes of input following “X” to see one match. If no match was found,
change directory back to the parent of this folder and put “X” back to the
head of the input.

More Related Content

Similar to group7-Chatbots 16-20.ppt (6)

Ewrt 2 class 9 peer review
Ewrt 2 class 9 peer reviewEwrt 2 class 9 peer review
Ewrt 2 class 9 peer review
 
Don't Fear the Regex WordCamp DC 2017
Don't Fear the Regex WordCamp DC 2017Don't Fear the Regex WordCamp DC 2017
Don't Fear the Regex WordCamp DC 2017
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
sentiment analysis
sentiment analysis sentiment analysis
sentiment analysis
 
Ewrt 2 class 9 peer review
Ewrt 2 class 9 peer reviewEwrt 2 class 9 peer review
Ewrt 2 class 9 peer review
 
Technical Writing Guide
Technical Writing GuideTechnical Writing Guide
Technical Writing Guide
 

Recently uploaded

electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
benjamincojr
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
drjose256
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
rahulmanepalli02
 

Recently uploaded (20)

Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdf
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 
Independent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging StationIndependent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging Station
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) ppt
 
analog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxanalog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptx
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & Modernization
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 

group7-Chatbots 16-20.ppt

  • 1. Types of ALICE/AIML Categories • Atomic categories: do not have wildcard symbols. • Default categories: have wildcard entries * or _.
  • 2. Continued • Recursive categories: Symbolic Reduction: Divide and Conquer:
  • 4. ALICE Pattern Matching Algorithm • Normalization is applied for each input, removing all punctuations, split in two or more sentences and converted to uppercase. E.g.: Do you, or will you eat me?. Converted to: DO YOU OR WILL YOU EAT ME • AIML interpreter then tries to match word by word the longest pattern match. We expect this to be the best one.
  • 5. Algorithm • Assume the user input starts with word X. • Root of this tree structure is a folder of the file system that contains all patterns and templates. • The pattern matching uses depth first techniques. The folder has a subfolder stars with _,then, ”_/”,scan through and match all words suffixed X, if no match then: Go back to the folder, find another subfolder start with word X, if so then turn to “X/”,scan for matching the tail of X. Patterns are matched. If no match then: Go back to the folder, find a subfolder starting with *,turn to, “*/”, try all suffixes of input following “X” to see one match. If no match was found, change directory back to the parent of this folder and put “X” back to the head of the input.