{"id":1194,"date":"2018-01-28T20:15:22","date_gmt":"2018-01-28T20:15:22","guid":{"rendered":"https:\/\/danielschlegel.org\/wp\/?page_id=1194"},"modified":"2019-02-14T13:21:16","modified_gmt":"2019-02-14T13:21:16","slug":"assignment-1","status":"publish","type":"page","link":"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/","title":{"rendered":"Assignment 1"},"content":{"rendered":"<h2>Build a Chatbot!<\/h2>\n<p>In this assignment you will modify the Python chatbot we saw in class (posted on Blackboard). First you must choose a personality for your chatbot &#8212; pick a character from a movie or TV show. Then do the following:<\/p>\n<ul>\n<li>Implement at least 15 pattern-based responses using a variety of the regular expression features learned in class. Remember to account for the different ways a user might express something that should trigger a rule. At least 5 of these should use some form of grouping and replacement.<\/li>\n<li>Implement a randomized default response if none of the above match.<\/li>\n<\/ul>\n<p>You will be presenting your chatbot in class, so prepare a brief set of inputs to show the class the features of your chatbot.<\/p>\n<p>You are encouraged to have fun with this &#8211; the above is only a minimum set of requirements. Feel free to do more!<\/p>\n<p>When you have completed your chatbot, submit it on Blackboard. If you work with a partner be sure that both names in a comment at the top of the file &#8211; only one of you need to submit it.<\/p>\n<p>In order to work on your chatbot and test it, I recommend you download and use <a href=\"https:\/\/thonny.org\/\">Thonny<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"lead\">Build a Chatbot! In this assignment you will modify the Python chatbot we saw in class (posted on Blackboard). First you must choose a personality for your chatbot &#8212; pick a character from a movie or TV show. Then do the following: Implement at least 15 pattern-based responses using a variety of the regular expression features learned in class. Remember&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"btn btn-warning\" href=\"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1138,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","footnotes":""},"class_list":["post-1194","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Assignment 1 - Daniel R. Schlegel<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Assignment 1 - Daniel R. Schlegel\" \/>\n<meta property=\"og:description\" content=\"Build a Chatbot! In this assignment you will modify the Python chatbot we saw in class (posted on Blackboard). First you must choose a personality for your chatbot &#8212; pick a character from a movie or TV show. Then do the following: Implement at least 15 pattern-based responses using a variety of the regular expression features learned in class. Remember&hellip;Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Daniel R. Schlegel\" \/>\n<meta property=\"article:modified_time\" content=\"2019-02-14T13:21:16+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/teaching\\\/cog376-spring-2018\\\/assignment-1\\\/\",\"url\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/teaching\\\/cog376-spring-2018\\\/assignment-1\\\/\",\"name\":\"Assignment 1 - Daniel R. Schlegel\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/#website\"},\"datePublished\":\"2018-01-28T20:15:22+00:00\",\"dateModified\":\"2019-02-14T13:21:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/teaching\\\/cog376-spring-2018\\\/assignment-1\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/teaching\\\/cog376-spring-2018\\\/assignment-1\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/teaching\\\/cog376-spring-2018\\\/assignment-1\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Teaching\",\"item\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/teaching\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"COG376 Spring 2018\",\"item\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/teaching\\\/cog376-spring-2018\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Assignment 1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/#website\",\"url\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/\",\"name\":\"Daniel R. Schlegel\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/danielschlegel.org\\\/wp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Assignment 1 - Daniel R. Schlegel","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/","og_locale":"en_US","og_type":"article","og_title":"Assignment 1 - Daniel R. Schlegel","og_description":"Build a Chatbot! In this assignment you will modify the Python chatbot we saw in class (posted on Blackboard). First you must choose a personality for your chatbot &#8212; pick a character from a movie or TV show. Then do the following: Implement at least 15 pattern-based responses using a variety of the regular expression features learned in class. Remember&hellip;Read more","og_url":"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/","og_site_name":"Daniel R. Schlegel","article_modified_time":"2019-02-14T13:21:16+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/","url":"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/","name":"Assignment 1 - Daniel R. Schlegel","isPartOf":{"@id":"https:\/\/danielschlegel.org\/wp\/#website"},"datePublished":"2018-01-28T20:15:22+00:00","dateModified":"2019-02-14T13:21:16+00:00","breadcrumb":{"@id":"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/assignment-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/danielschlegel.org\/wp\/"},{"@type":"ListItem","position":2,"name":"Teaching","item":"https:\/\/danielschlegel.org\/wp\/teaching\/"},{"@type":"ListItem","position":3,"name":"COG376 Spring 2018","item":"https:\/\/danielschlegel.org\/wp\/teaching\/cog376-spring-2018\/"},{"@type":"ListItem","position":4,"name":"Assignment 1"}]},{"@type":"WebSite","@id":"https:\/\/danielschlegel.org\/wp\/#website","url":"https:\/\/danielschlegel.org\/wp\/","name":"Daniel R. Schlegel","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/danielschlegel.org\/wp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P83Tb6-jg","_links":{"self":[{"href":"https:\/\/danielschlegel.org\/wp\/wp-json\/wp\/v2\/pages\/1194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/danielschlegel.org\/wp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/danielschlegel.org\/wp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/danielschlegel.org\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/danielschlegel.org\/wp\/wp-json\/wp\/v2\/comments?post=1194"}],"version-history":[{"count":5,"href":"https:\/\/danielschlegel.org\/wp\/wp-json\/wp\/v2\/pages\/1194\/revisions"}],"predecessor-version":[{"id":2352,"href":"https:\/\/danielschlegel.org\/wp\/wp-json\/wp\/v2\/pages\/1194\/revisions\/2352"}],"up":[{"embeddable":true,"href":"https:\/\/danielschlegel.org\/wp\/wp-json\/wp\/v2\/pages\/1138"}],"wp:attachment":[{"href":"https:\/\/danielschlegel.org\/wp\/wp-json\/wp\/v2\/media?parent=1194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}