Why Python for Chatbots
Total Page:16
File Type:pdf, Size:1020Kb
Schedule: 1. History of chatbots and Artificial Intelligence 2. The growing role of Chatbots in 2020 3. A hands on look at the A.I Chatbot learning sequence 4. Q & A Session Schedule: 1. History of chatbots and Artificial Intelligence 2. The growing role of Chatbots in 2020 3. A hands on look at the A.I Chatbot learning sequence 4. Q & A Session Image credit: Archivio GBB/Contrasto/Redux History •1940 – The Bombe •1948 – Turing Machine •1950 – Touring Test •1980 Zork •1990 – Loebner Prize Conversational Bots •Today – Siri, Alexa Google Assistant Image credit: Photo 172987631 © Pop Nukoonrat - Dreamstime.com 1940 Modern computer history begins with Language Analysis: “The Bombe” Breaking the code of the German Enigma Machine ENIGMA MACHINE THE BOMBE Enigma Machine image: Photographer: Timothy A. Clary/AFP The Bombe image: from movie set for The Imitation Game, The Weinstein Company 1948 – Alan Turing comes up with the concept of Turing Machine Image CC-BY-SA: Wikipedia, wvbailey 1948 – Alan Turing comes up with the concept of Turing Machine youtube.com/watch?v=dNRDvLACg5Q 1950 Imitation Game Image credit: Archivio GBB/Contrasto/Redux Zork 1980 Zork 1980 Text parsing Loebner Prize: Turing Test Competition bit.ly/loebnerP Conversational Chatbots you can try with your students bit.ly/MITsuku bit.ly/CLVbot What modern chatbots do •Convert speech to text •Categorise user input into categories they know •Analyse the emotion emotion in user input •Select from a range of available responses •Synthesize human language responses Image sources: Biglytics screenshot https://www.biglytics.net/ Head Start Academy Screenshot: https://www.headstartacademy.com.au/ Images about Pizza and Real Estate: https://sproutsocial.com/insights/chatbot-marketing-examples/ What modern chatbots do The interpret simple commands about music, running an online search and ordering items online they do this by: •Convert speech to text •Categorise user input into categories they know •Select from a range of available responses •Synthesize human language responses Image source: https://www.macobserver.com/wp-content/uploads/2018/01/homepod-echo-home-768x403.jpg What modern chatbots do The interpret simple commands about music, running an online search and ordering items online they do this by: •Convert speech to text •Categorise user input into categories they know •Select from a range of available responses •Synthesize human language responses youtube.com/watch?v=D5VN56jQMWM Why Python For Chatbots • Easiest language for beginners to learn • Intuitive syntax • Easy manipulation of text data • Text analysis / Natural Language Libraries: NLTK and TextBlob Image source: https://impythonist.files.wordpress.com/2014/02/guido2.jpg Python Creator: Guido Von Rossum DAY 1 What we are Nickname program going to be bit.ly/CBOTS1 Learning Yes / no decision bit.ly/CBOTS2 •This is a step by step Check if word is in answer collection of programs that bit.ly/CBOTS3 form the building blocks you need to program a chatbot Select a random question from a list bit.ly/CBOTS4 •Each program has a link at Sentiment analysis chatbot the top which the students bit.ly/CBOTS5 can copy to access the teachers code Advanced Bot Integrating all previous programs bit.ly/CBOTS6 Advanced Bot + Mood and Memory bit.ly/CBOTS7 Get In Touch ● If you need help with implementing this unit of [email protected] work in class ● If you need help with Python Extension for your advanced students.