AIML A I Markup Language.

Slides:



Advertisements
Similar presentations
Sorting Activity Instructions Inside your white envelope is a set of cards. Sort the cards into three piles using the following categories: objectives.
Advertisements

College of Information Technology & Design
Python Basics: Statements Expressions Loops Strings Functions.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Pages COMPUTABILITY THEORY.
Intelligent systems Lecture 21 Example of ALICE-like dialog system. Language AIML for ALICE-like systems.
Introduction to Structured Query Language (SQL)
1 Lecture 10 Proving more specific problems are not recursive Reduction technique –Use subroutine theme to show that if one problem is unsolvable, so is.
JAVASCRIPT TIPS. REMEMBER JAVASCRIPT IS VERY, VERY CASE SENSITIVE.
Introduction to Structured Query Language (SQL)
SM1205 Interactivity Topic 06: Iteration and Multiple Objects Spring 2010SCM-CityU1.
The University of Texas – Pan American
REPETITION STRUCTURES. Topics Introduction to Repetition Structures The while Loop: a Condition- Controlled Loop The for Loop: a Count-Controlled Loop.
UNIT 3 TEMPLATE AND EXCEPTION HANDLING. Introduction  Program errors are also referred to as program bugs.  A C program may have one or more of four.
Review: –How do we define a grammar (what are the components in a grammar)? –What is a context free grammar? –What is the language defined by a grammar?
Chat Bots Ruta Mehta Mugdha Jain Jeetendra Mirchandani Welcome to the world of living people and artificial intelligence entities called bots!
Winter 2007SEG2101 Chapter 71 Chapter 7 Introduction to Languages and Compiler.
Teaching Vocabulary What is vocabulary ? Vocabulary can be defined as the words we teach in the foreign language. Vocabulary is the glue that holds stories,
CSE 143 Lecture 11 Maps Grammars slides created by Alyssa Harding
CS Describing Syntax CS 3360 Spring 2012 Sec Adapted from Addison Wesley’s lecture notes (Copyright © 2004 Pearson Addison Wesley)
Projects Project 1: PSU CHATBOT Language: AIML Group: Omar and Ahmed
Discrete Structure Li Tak Sing( 李德成 ) Lectures
More While Loop Examples CS303E: Elements of Computers and Programming.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
IESE Library. Your Link to Knowledge IESE Library Catalog How do I access My Profile?
CompSci 100E 2.1 Java Basics - Expressions  Literals  A literal is a constant value also called a self-defining term  Possibilities: o Object: null,
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
1 Section 2.1 Algorithms. 2 Algorithm A finite set of precise instructions for performing a computation or for solving a problem.
CSCI/CMPE 4341 Topic: Programming in Python Review: Exam I Xiang Lian The University of Texas – Pan American Edinburg, TX 78539
CPS 506 Comparative Programming Languages Syntax Specification.
Dialogue systems Volha Petukhova Saarland University 03/07/2015 Einführung in Diskurs and Pragmatik, Sommersemester
Introduction to Computer Programming
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
GROUP-8 RaviKant Narayan Gaurav Jain
The Functions and Purposes of Translators Syntax (& Semantic) Analysis.
Researching on the Internet using the 5 symbols 2010 Internet Unit.
How to Teach English Language Learners Tips and Strategies
Thinking Inside the Text Making a plain text.... Thinking Inside the Text Thinking Inside the Text...more interesting!
Compiler Construction By: Muhammad Nadeem Edited By: M. Bilal Qureshi.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 5 Repetition Structures.
CSC 1010 Programming for All Lecture 4 Loops Some material based on material from Marty Stepp, Instructor, University of Washington.
XP 1 XSLT II Robin Burke ECT 360. XP 2 Outline Conditionals Numbering Functions and operators Variables and parameters Named and recursive templates.
Agenda The Bourne Shell – Part II Special Characters Ambiguous File Reference Variable Names and Values User Created Variables Read-only Variables (Positional.
XP 1 XSLT II Robin Burke ECT 360. XP 2 Homework #4 Forgot we hadn't covered "choose" becomes extra credit My books.xml didn't include descriptions.
Dr. Naveed Riaz Design and Analysis of Algorithms 1 1 Formal Methods in Software Engineering Lecture # 26.
Distinctively Visual. Your task Define/describe what each symbol represents. Write down the first few things that pop into your mind.
1 Course Overview Why this course “formal languages and automata theory?” What do computers really do? What are the practical benefits/application of formal.
Strings in Python String Methods. String methods You do not have to include the string library to use these! Since strings are objects, you use the dot.
Finite Automata.
Topic: Iterative Statements – Part 1 -> for loop
Topic Pre-processor cout To output a message.
Software Development Expansion of topics page 28 in Zelle
Instructor: Laura Kallmeyer
Context-free grammars, derivation trees, and ambiguity
Topics Introduction to Repetition Structures
ECS10 10/10
Chapter 4 Syntax Analysis.
Topics Introduction to Repetition Structures
Do it now activity Green pen activity in books.
AIML A I Markup Language.
Welcome to miss frey’s 2nd grade classroom
Lexical and Syntax Analysis
Artificial Linguistic Internet Computer Entity
Topic 1: Problem Solving
Let's Play "What's the Question"
Ontario Secondary School Literacy Test (EQAO)
Python Basics with Jupyter Notebook
Topics Introduction to Repetition Structures
Predictive Parsing Program
6.2 Solving inequalities by multiplication
Web Programming and Design
Presentation transcript:

AIML A I Markup Language

CATEGORIES Basic knowledge unit Stimulus is called the pattern Response is called the template <category> <pattern> …. </pattern> <template>…… <template> </category>

Wildcards * and _ means match a word of input Matching order is different (_ word *) <star/> accesses the matched word <star index = index /> for multiple wildcards

Context “that” “topic” <that> </that> matches the last utterance of the bot Occurs inside the category “topic” <topic> </topic> Occurs outside a set of categories Groups related sets of categories

Context Usage Pattern Side That <category> <pattern> …. </pattern> <that> … </that> <template>…… <template> </category>

Context Template Side That “that” appears in a template No content! Just an attribute with integer or list of integers (don’t forget to make a string!) <that index=../> Outputs the past utterences

Recursion Symbolic Reduction Divide and Conquer Spelling or grammar corrections Keyword detection anywhere in the input Conditionals Synonyms

Recursion <srai> </srai> Warning – infinite loops are possible Symbolic reduction: <category> <pattern>DO YOU KNOW WHO * IS</pattern> <template><srai>WHO IS <star/></srai></template> </category>

Divide and Conquer <category> <pattern>YES *</pattern> <template><srai>YES</srai> <sr/></template> </category>

Synonyms <category> <pattern>HELLO</pattern> <template>Hi there!</template> </category> <category> <pattern>HI</pattern> <template><srai>HELLO</srai></template> </category>

Keyword <category> <pattern>MOTHER</pattern> <template> Tell me more about your family. </template> </category> <category> <pattern>_ MOTHER</pattern> <template> Tell me more about your family. </template> </category> <category> <pattern>MOTHER _</pattern> <template> Tell me more about your family. </template> </category>

Conditionals – using <srai> <category> <pattern>Who is he</pattern> <template> <srai>whoishe <get name=“he”/></srai> </template> </category>

Conditionals Single: <condition name=“X“ value=“Y”> <li> </li> </condition> Multiple: <condition name=“X“> <li value=“Y”> </li> <li value=“Z”> </li> <condition> <li name = “X” value = “Y”> …. </li>

Return Random Responce <template> <random> <li> .. </li> <li> … </li> </random> </template>

Predicates Get Set There are other predicates! <get name= …/> returns value assigned to the name Empty string if no value has been assigned Set <set name = … > contents </set> There are other predicates!

Targeting A design strategy Examine the user input If one person input a sentence – odds are good some else will!