Why Python for Chatbots

Total Page:16

File Type:pdf, Size:1020Kb

Why Python for Chatbots 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.
Recommended publications
  • Turing Test Round One Loebner Prize Competition: November 8
    Summer 1 9 9 1 r Museum I VVS Turing Test Round One Loebner Prize Competition: November 8 The first round of the classic Turing Test of While the subject has been debated for machine intelligence will be held November 8, decades, artificial intelligence experts will get 1991 , at The Computer Museum. New York their first shot at a Turing Test real-time this philanthropist Dr. Hugh Loebner, President of fall at the Museum. Instead of being open­ Crown Industries, Inc., has offered a $100,000 ended- a challenge that no computer can prize for the first machine to pass the test. The approach at this time-each "conversation" historic contest is being will be limited to a particular subject to give ".. .ang computer that actuallg passes the unrestricted administered by the Cambridge the computer a better chance. Using a format (MA) Center for Behavioral akin to a public chess match, the judges will Turing Test will he. in euerg theoreticallg interesting Studies and the Museum. hold conversations on several computer In 1950, the brilliant British terminals in the Museum's auditorium. The sense. athinking thing. "[Daniel t Dennett] mathematician Alan Turing responses of each terminal will be controlled issued the ultimate challenge to either by "human confederates" or computers. computer science. He proposed an experiment The audience will be able to see the conversa­ to determine if a machine could think. His test tions on large screens near each terminal. requires a computer to emulate human behavior Afterwards, the tally of scores comparing (via a computer terminal) so well that it fools human and computer performances will be human judges into thinking its responses are announced.
    [Show full text]
  • Reflections from the Developments of School Science Curricula
    Imitation game: Reflections from the developments of school science curricula SONG, Jinwoong (宋眞雄) Department of Physics Education, Seoul National University What will fulfill this need can be stated in equally simple terms. It is, ironically enough, that science be taught as science. (Joseph J. Schwab, 1962: 188-9) 1.Introduction The Imitation Game is a 2014 British historical drama film directed by Morten Tyldu m and written by Graham Moore, based on the biography Alan Turing: The Enigma by A ndrew Hodges. It stars Benedict Cumberbatch as British cryptanalyst Alan Turing, who dec rypted German intelligence codes for the British government during the Second World War (https://en.wikipedia.org/wiki/The_Imitation_Game). The ’Imitation Game’ refers to so-calle d ‘Turing Test’ which is a test for artificial intelligence suggested by a famous British ma thematician, Alan Turing (1912-54), who is known as the father of the computer. Through his paper, “Computing machinery and intelligence” (1950), Tuning gave a conceptual fou ndation of AI (Artificial Intelligence), by suggesting the Turing Test, “a test of a machine’ s ability to exhibit intelligent behavior equivalent to, or indistinguishable from, that of a h uman.” (https://en.wikipedia.org/wiki/Turing_test) Science is now considered as one of the core (often three of them) subjects across th e world, together with the national language and mathematics. For example, in PISA studi es, science is included in the three main areas, with literacy and mathematics (e.g. OECD, 2018). And, in TIMSS studies, science and mathematics are the two main subjects for th e international comparison (https://timssandpirls.bc.edu/timss2015/).
    [Show full text]
  • CODEBREAKING Suggested Reading List (Can Also Be Viewed Online at Good Reads)
    MARSHALL LEGACY SERIES: CODEBREAKING Suggested Reading List (Can also be viewed online at Good Reads) NON-FICTION • Aldrich, Richard. Intelligence and the War against Japan. Cambridge: Cambridge University Press, 2000. • Allen, Robert. The Cryptogram Challenge: Over 150 Codes to Crack and Ciphers to Break. Philadelphia: Running Press, 2005 • Briggs, Asa. Secret Days Code-breaking in Bletchley Park. Barnsley: Frontline Books, 2011 • Budiansky, Stephen. Battle of Wits: The Complete Story of Codebreaking in World War Two. New York: Free Press, 2000. • Churchhouse, Robert. Codes and Ciphers: Julius Caesar, the Enigma, and the Internet. Cambridge: Cambridge University Press, 2001. • Clark, Ronald W. The Man Who Broke Purple. London: Weidenfeld and Nicholson, 1977. • Drea, Edward J. MacArthur's Ultra: Codebreaking and the War Against Japan, 1942-1945. Kansas: University of Kansas Press, 1992. • Fisher-Alaniz, Karen. Breaking the Code: A Father's Secret, a Daughter's Journey, and the Question That Changed Everything. Naperville, IL: Sourcebooks, 2011. • Friedman, William and Elizebeth Friedman. The Shakespearian Ciphers Examined. Cambridge: Cambridge University Press, 1957. • Gannon, James. Stealing Secrets, Telling Lies: How Spies and Codebreakers Helped Shape the Twentieth century. Washington, D.C.: Potomac Books, 2001. • Garrett, Paul. Making, Breaking Codes: Introduction to Cryptology. London: Pearson, 2000. • Hinsley, F. H. and Alan Stripp. Codebreakers: the inside story of Bletchley Park. Oxford: Oxford University Press, 1993. • Hodges, Andrew. Alan Turing: The Enigma. New York: Walker and Company, 2000. • Kahn, David. Seizing The Enigma: The Race to Break the German U-boat Codes, 1939-1943. New York: Barnes and Noble Books, 2001. • Kahn, David. The Codebreakers: The Comprehensive History of Secret Communication from Ancient Times to the Internet.
    [Show full text]
  • Benedict Cumberbatch Talks the Imitation Game
    JANUARY 2015 | VOLUME 16 | NUMBER 1 Smart Meets Sexy BENEDICT CUMBERBATCH TALKS THE IMITATION GAME Inside HUGH BONNEVILLE LIAM NEESON PUBLICATIONS MAIL AGREEMENT NO. 41619533 THE 10 INCREDIBLE MOVIES YOU HAVE TO SEE THIS YEAR, PAGE 26 CONTENTS JANUARY 2015 | VOL 16 | Nº1 COVER STORY 40 GENIUS ROLE Benedict Cumberbatch’s fervent fans won’t be disappointed with his latest role. The Imitation Game casts the 38-year-old Brit as Alan Turing, a gay, mathematical genius who helped hasten the end of WWII. Here he talks about bringing Turing to life and his various other talents BY INGRID RANDOJA REGULARS 4 EDITOR’S NOTE 8 SNAPS 10 IN BRIEF 14 SPOTLIGHT: CANADA 16 ALL DRESSED UP 20 IN THEATRES 44 CASTING CALL 47 RETURN ENGAGEMENT 48 AT HOME 50 FINALLY… FEATURES IMAGE HARGRAVE/AUGUST AUSTIN BY PHOTO COVER 26 2015’S BIG PICS! 32 FABLED CAST 34 MAN OF ACTION 38 PAPA BEAR It’s going to be an epic year We break down which famous Taken 3 star Liam Neeson Paddington’s Hugh Bonneville at the movies. We take you actors play which well-known talks about his longtime says playing father figure to a through the 10 films you must fairy tale characters in love of action movies, and mischievous talking bear gave see, starting with the return of the musical extravaganza recent decision to get clean him the chance to revisit his Star Wars! Into the Woods and healthy own childhood BY INGRID RANDOJA BY INGRID RANDOJA BY BOB STRAUSS BY INGRID RANDOJA JANUARY 2015 | CINEPLEX MAGAZINE | 3 EDITOR’S NOTE PUBLISHER SALAH BACHIR EDITOR MARNI WEISZ DEPUTY EDITOR INGRID RANDOJA ART DIRECTOR TREVOR THOMAS STEWART ASSISTANT ART DIRECTOR STEVIE SHIPMAN VICE PRESIDENT, PRODUCTION SHEILA GREGORY CONTRIBUTORS LEO ALEFOUNDER, BOB STRAUSS ADVERTISING SALES FOR CINEPLEX MAGAZINE AND LE MAGAZINE CINEPLEX IS HANDLED BY CINEPLEX MEDIA.
    [Show full text]
  • Lessons from a Restricted Turing Test
    Lessons from a Restricted Turing Test Stuart M. Shieber Aiken Computation Laboratory Division of Applied Sciences Harvard University March 28, 1994 (Revision 6) Abstract We report on the recent Loebner prize competition inspired by Turing’s test of intelligent behavior. The presentation covers the structure of the competition and the outcome of its first instantiation in an actual event, and an analysis of the purpose, design, and appropriateness of such a competition. We argue that the competition has no clear purpose, that its design prevents any useful outcome, and that such a competition is inappropriate given the current level of technology. We then speculate as to suitable alternatives to the Loebner prize. arXiv:cmp-lg/9404002v1 4 Apr 1994 This paper is to appear in Communications of the Association for Comput- ing Machinery, and is available from the Center for Research in Computing Technology, Harvard University, as Technical Report TR-19-92 and from the Computation and Language e-print server as cmp-lg/9404002. The Turing Test and the Loebner Prize The English logician and mathematician Alan Turing, in an attempt to develop a working definition of intelligence free of the difficulties and philosophical pitfalls of defining exactly what constitutes the mental process of intelligent reasoning, devised a test, instead, of intelligent behavior. The idea, codified in his cel- ebrated 1950 paper “Computing Machinery and Intelligence” (Turing, 1950), was specified as an “imitation game” in which a judge attempts to distinguish which of two agents is a human and which a computer imitating human re- sponses by engaging each in a wide-ranging conversation of any topic and tenor.
    [Show full text]
  • I V Anthropomorphic Attachments in U.S. Literature, Robotics, And
    Anthropomorphic Attachments in U.S. Literature, Robotics, and Artificial Intelligence by Jennifer S. Rhee Program in Literature Duke University Date:_______________________ Approved: ___________________________ Kenneth Surin, Supervisor ___________________________ Mark Hansen ___________________________ Michael Hardt ___________________________ Katherine Hayles ___________________________ Timothy Lenoir Dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Literature in the Graduate School of Duke University 2010 i v ABSTRACT Anthropomorphic Attachments in U.S. Literature, Robotics, and Artificial Intelligence by Jennifer S. Rhee Program in Literature Duke University Date:_______________________ Approved: ___________________________ Kenneth Surin, Supervisor ___________________________ Mark Hansen ___________________________ Michael Hardt ___________________________ Katherine Hayles ___________________________ Timothy Lenoir An abstract of a dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Literature in the Graduate School of Duke University 2010 Copyright by Jennifer S. Rhee 2010 Abstract “Anthropomorphic Attachments” undertakes an examination of the human as a highly nebulous, fluid, multiple, and often contradictory concept, one that cannot be approached directly or in isolation, but only in its constitutive relationality with the world. Rather than trying to find a way outside of the dualism between human and not- human,
    [Show full text]
  • 'Realness' in Chatbots: Establishing Quantifiable Criteria
    'Realness' in Chatbots: Establishing Quantifiable Criteria Kellie Morrissey and Jurek Kirakowski School of Applied Psychology, University College Cork, Ireland {k.morrissey,jzk}@ucc.ie Abstract. The aim of this research is to generate measurable evaluation criteria acceptable to chatbot users. Results of two studies are summarised. In the first, fourteen participants were asked to do a critical incident analysis of their tran- scriptions with an ELIZA-type chatbot. Results were content analysed, and yielded seven overall themes. In the second, these themes were made into statements of an attitude-like nature, and 20 participants chatted with five win- ning entrants in the 2011 Chatterbox Challenge and five which failed to place. Latent variable analysis reduced the themes to four, resulting in four subscales with strong reliability which discriminated well between the two categories of chatbots. Content analysis of freeform comments led to a proposal of four dimensions along which people judge the naturalness of a conversation with chatbots. Keywords: Chatbot, user-agent, intelligent assistant, naturalness, convincing, usability, evaluation, quantitative, questionnaire, Turing, Chatterbox. 1 Evaluating for Naturalness Conversational agents, or chatbots, are systems that are capable of performing actions on behalf of computer users; in essence, reducing the cognitive workload on users engaging with computer systems. There are two key strategies used. The first is the use of a set of well-learnt communicative conventions: natural language
    [Show full text]
  • Presentación De Powerpoint
    ARTIFICIAL INTELLIGENCE www.aceleralia.com | 2020 Aceleralia es una marca registrada de 2 Digits Growth® Todos los derechos reservados ARTIFICIAL INTELLIGENCE Problem solving Reasoning Problem solving, particularly in artificial intelligence, may be characterized as a systematic search through a To reason is to draw inferences appropriate to the range of possible actions in order to reach some situation. Inferences are classified as either deductive predefined goal or solution. Problem-solving methods or inductive. An example of the former is, “Fred must divide into special purpose and general purpose. A be in either the museum or the café. He is not in the special-purpose method is tailor-made for a particular café; therefore he is in the museum,” and of the latter, problem and often exploits very specific features of the “Previous accidents of this sort were caused by situation in which the problem is embedded. In instrument failure; therefore this accident was caused contrast, a general-purpose method is applicable to a by instrument failure.” wide variety of problems. The most significant difference between these forms One general-purpose technique used in AI is means- of reasoning is that in the deductive case the truth of end analysis—a step-by-step, or incremental, reduction the premises guarantees the truth of the conclusion, of the difference between the current state and the whereas in the inductive case the truth of the premise final goal. lends support to the conclusion without giving absolute assurance. Inductive reasoning is common in science, The program selects actions from a list of means—in where data are collected and tentative models are the case of a simple robot this might consist of PICKUP, developed to describe and predict future behavior— PUTDOWN, MOVEFORWARD, MOVEBACK, until the appearance of anomalous data forces the MOVELEFT, and MOVERIGHT—until the goal is model to be revised.
    [Show full text]
  • BBS Recommended Viewing List
    BBS Recommended Viewing List We have ranked the films in order of their BBFC certificate. This is to help you and your parents make a selection that is appropriate in terms of content. We trust every parent to make the right decision for their child regarding what they watch. If you would like further information we recommend going to the BBFC website and using their ‘Insight’ text to explore the reasons for the certificate given. For example, if you search for ‘Amadeus BBFC insight’ you will see details under ‘ratings info’ that will give you an idea for the reasons for its PG rating. This can include spoilers but the information may be useful if you are unsure as to whether a film may be suitable for your child or not. They are ranked in no particular order and it is not meant to be an exhaustive list. Films, like books, are personal and everyone has their preferences and reasons for loving the ones they do. This is just our take on all the possibilities out there so please accept our unreserved apologies if one you love is missing. If you are especially passionate about it and really feel it should be on our list please don’t hesitate to get in touch. U Certificate 1. Wall-E 2. 2001 – A Space Odyssey 3. The Wizard of Oz 4. Mary Poppins 5. Paddington 6. Ladri di biciclette (Bicycle Thieves) 7. A Matter of Life and Death 8. 12 Angry Men 9. Zootropolis 10. E.T. 11. Casablanca 12. Sense and Sensibility 13.
    [Show full text]
  • Inequality in 900 Popular Films: Gender, Race/Ethnicity, LGBT, & Disability from 2007‐2016
    July 2017 INEQUALITY IN POPULAR FILMS MEDIA, DIVERSITY, & SOCIAL CHANGE INITIATIVE USC ANNENBERG MDSCInitiative Facebook.com/MDSCInitiative THE NEEDLE IS NOT MOVING ON SCREEN FOR FEMALES IN FILM Prevalence of female speaking characters across 900 films, in percentages Percentage of 900 films with 32.8 32.8 Balanced Casts 12% 29.9 30.3 31.4 31.4 28.4 29.2 28.1 Ratio of males to females 2.3 : 1 Total number of ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘ speaking characters 39,788 LEADING LADIES RARELY DRIVE THE ACTION IN FILM Of the 100 top films in 2016... And of those Leads and Co Leads*... Female actors were from underrepresented racial / ethnic groups Depicted a 3 Female Lead or (identical to 2015) Co Lead 34 Female actors were at least 45 years of age or older 8 (compared to 5 in 2015) 32 films depicted a female lead or co lead in 2015. *Excludes films w/ensemble casts GENDER & FILM GENRE: FUN AND FAST ARE NOT FEMALE ACTION ANDOR ANIMATION COMEDY ADVENTURE 40.8 36 36 30.7 30.8 23.3 23.4 20 20.9 ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘ % OF FEMALE SPEAKING % OF FEMALE SPEAKING % OF FEMALE SPEAKING CHARACTERS CHARACTERS CHARACTERS © DR. STACY L. SMITH GRAPHICS: PATRICIA LAPADULA PAGE THE SEXY STEREOTYPE PLAGUES SOME FEMALES IN FILM Top Films of 2016 13-20 yr old 25.9% 25.6% females are just as likely as 21-39 yr old females to be shown in sexy attire 10.7% 9.2% with some nudity, and 5.7% 3.2% MALES referenced as attractive. FEMALES SEXY ATTIRE SOME NUDITY ATTRACTIVE HOLLYWOOD IS STILL SO WHITE WHITE .% percentage of under- represented characters: 29.2% BLACK .% films have NO Black or African American speaking characters HISPANIC .% 25 OTHER % films have NO Latino speaking characters ASIAN .% 54 films have NO Asian speaking *The percentages of Black, Hispanic, Asian, and Other characters characters have not changed since 2007.
    [Show full text]
  • Abstract Violence and Heteronormativity in Gay
    ABSTRACT VIOLENCE AND HETERONORMATIVITY IN GAY-THEMED FILMS Anna-Marie Malley, M.A. Department of Sociology Northern Illinois University, 2017 Kerry O. Ferris, Director Drawing from a sample of 15 “gay/lesbian”-themed films shown in theaters in the U.S. between 1980 to 2016, a qualitative analysis was conducted of the film narratives, looking at the co-constructions of queer (LGBTQ) identity and violence. Films were selected based on widest theatrical release within the genre list “Gay/Lesbian.” Both the categories of queer identity and violence were drawn broadly to incorporate both easily identifiable and “ambiguously” queer characters, as well as to account for both physical and nonphysical forms of violence. Analysis identifies plot developments of exclusion, threat, and physical forms of harm as expressions of violence and argues that to varying degrees these expressions of violence mark queer protagonists and other queer supporting characters as deviant and/or damned within their fictitious social realities. NORTHERN ILLINOIS UNIVERSITY DE KALB, ILLINOIS DECEMBER 2017 VIOLENCE AND HETERONORMATIVITY IN GAY-THEMED FILMS BY ANNA-MARIE MALLEY ©2017 Anna-Marie Malley A THESIS SUBMITTED TO THE GRADUATE SCHOOL IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE MASTER OF ARTS DEPARTMENT OF SOCIOLOGY Thesis Director: Kerry O. Ferris ii ACKNOWLEDGEMENTS I would like to express my gratitude to my thesis committee: Drs. Ferris, Weffer, and Walther, for their direction and insight through each step of the process. I also want to recognize other faculty, Dr. Rodgers and Dr. Sharp, who have offered advice when needed. I am also deeply grateful to my friends Ana Hernandez, Katarina McGuire, Laura Guilfoyle, Laura Kruczinski, Nabil Juklif, and Rodrigo Martinez for taking the time to read and suggest edits at various stages of the writing process.
    [Show full text]
  • Exploring the Imitation Game Using Machine Intelligence in Improvised Theatre
    Proceedings of the Fourteenth Artificial Intelligence and Interactive Digital Entertainment Conference (AIIDE 2018) Improbotics: Exploring the Imitation Game Using Machine Intelligence in Improvised Theatre Kory W. Mathewson,1,2 Piotr Mirowski2 1University of Alberta Edmonton, Alberta, Canada 2HumanMachine, London, UK [email protected], [email protected] Abstract Theatrical improvisation (impro or improv) is a demanding form of live, collaborative performance. Improv is a humor- ous and playful artform built on an open-ended narrative structure which simultaneously celebrates effort and failure. It is thus an ideal test bed for the development and deploy- ment of interactive artificial intelligence (AI)-based conversa- tional agents, or artificial improvisors. This case study intro- duces an improv show experiment featuring human actors and Figure 1: Illustration of two Improbotics rehearsals. artificial improvisors. We have previously developed a deep- learning-based artificial improvisor, trained on movie subti- tles, that can generate plausible, context-based, lines of dia- logue suitable for theatre (Mathewson and Mirowski 2017b). and the audience, short- and long-term memory of narrative In this work, we have employed it to control what a subset elements, and practiced storytelling skills (Johnstone 1979). of human actors say during an improv performance. We also From an audience point of view, improvisors must express give human-generated lines to a different subset of perform- convincing raw emotions and act physically. ers. All lines are provided to actors with headphones and all We agree that improvisational computational storytelling performers are wearing headphones. This paper describes a is a grand challenge in artificial intelligence (AI) as proposed Turing test, or imitation game, taking place in a theatre, with by (Martin and others 2016).
    [Show full text]