{"id":1026,"date":"2018-02-11T13:57:24","date_gmt":"2018-02-11T18:57:24","guid":{"rendered":"http:\/\/haleyai.com\/wordpress\/?p=1026"},"modified":"2018-09-09T10:53:39","modified_gmt":"2018-09-09T15:53:39","slug":"parsing-winograd-challenges","status":"publish","type":"post","link":"http:\/\/haleyai.com\/wordpress\/2018\/02\/11\/parsing-winograd-challenges\/","title":{"rendered":"Parsing Winograd Challenges"},"content":{"rendered":"<p>The <a title=\"Winograd Challenge and common sense reasoning\" href=\"http:\/\/commonsensereasoning.org\/winograd.html\" target=\"_blank\">Winograd Challenge<\/a> is an alternative to the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Turing_test\" target=\"_blank\">Turing Test<\/a> for assessing artificial intelligence.\u00a0 The essence of the test involves resolving pronouns.\u00a0 To date, systems have not fared well on the test for several reasons.\u00a0 There are 3 that come to mind:<\/p>\n<ol>\n<li>The natural language processing involved in the word problems is beyond the state of the art.<\/li>\n<li>Resolving many of the pronouns requires more common sense knowledge than state of the art systems possess.<\/li>\n<li>Resolving many of the problems requires pragmatic reasoning beyond the state of the art.<\/li>\n<\/ol>\n<p>As an example, one of the simpler exemplary problems is:<\/p>\n<ul>\n<li>There is a pillar between me and the stage, and I can&#8217;t see around it.<\/li>\n<\/ul>\n<p>A heuristic system (or a deep learning one) could infer that &#8220;it&#8221; does not refer to &#8220;me&#8221; or &#8220;I&#8221; and toss a coin between &#8220;pillar&#8221; and &#8220;stage&#8221;.\u00a0 A system worthy of the passing the Winograd Challenge should &#8220;know&#8221; it&#8217;s the pillar.<\/p>\n<p>Even this simple sentence presents some NLP challenges that are easy to overlook.\u00a0 For example, does &#8220;between&#8221; modify the pillar or the verb &#8220;is&#8221;?<\/p>\n<p><a href=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/pillar-between.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1030\" title=\"pillar between\" src=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/pillar-between.png\" alt=\"\" width=\"400\" height=\"606\" srcset=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/pillar-between.png 400w, http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/pillar-between-198x300.png 198w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>This is not much of a challenge, however, so let&#8217;s touch on some deeper issues and a more challenging problem&#8230;<\/p>\n<p><!--more--><\/p>\n<p>The common sense knowledge or pragmatic inference involved here might include:<\/p>\n<ul>\n<li>pillars are typically opaque and tall but not too thin<\/li>\n<li>a platform on which a spectacle is performed is a stage<\/li>\n<li>wanting to see around something suggests that one is not interested in looking at it<\/li>\n<li>one sees around something when one can see what is behind it without moving much<\/li>\n<li>spectators want to be able to see the performances they attend<\/li>\n<li>spectators do not typically want to see around the stage on which the spectacle they attend is performed\u00a0 (or, more positively, spectators want to be able to see &#8216;the&#8217; stage or field on which the performance or sport they attend is performed or played)<\/li>\n<li>the pillar is blocking my line of sight (i.e., my ability to see what I desire to see)<\/li>\n<li>it is the stage that I cannot see<\/li>\n<li>I am more interested in seeing the performance than the pillar<\/li>\n<\/ul>\n<p>Well, that&#8217;s enough of that, but we could go on, of course.\u00a0 What motivated this note was a challenge in the natural language processing more than with regard to the knowledge or reasning required.<\/p>\n<p>Here is one of the exemplary problems:<\/p>\n<ul>\n<li>Tatyana knew that Grandma always enjoyed serving an abundance of food to her guests. Now Tatyana watched as Grandma gathered Tatyana&#8217;s small mother into a wide, scrawny embrace and then propelled her to the table, lifting her shawl from her shoulders, seating her in the place of honor, and saying simply: &#8220;There&#8217;s plenty.&#8221;<\/li>\n<\/ul>\n<p>This turned out to be a challenge for one of the NLP systems we employ.\u00a0 Indeed, this is probably beyond any parser you are like to come across or have experience with.\u00a0 By that, I mean (and challenge you) to post the parse that you obtain from your favorite parser!<\/p>\n<p>Recently, we&#8217;ve added hundred thousands of names to the parsing system (mostly from Wikipedia), so we had no problem with Tatyana, but we forgot about Grandma!\u00a0 Actually, we had removed many common proper nouns from the NLP system when we were parsing scientific, medical, recipe, legal and other such content.\u00a0 So that took a few minutes and is critical for the Winograd Challenge since the problems are quite colloquially phrased.<\/p>\n<p>The use of &#8220;Now&#8221; in the beginning of the second sentence also required a tweak to the lexicon.\u00a0 If you look closely, you will see that it introduce a declarative sentence where it would typically introduce an imperative or a verb phrase.\u00a0 This is just another step towards making our deep parsing system more robust (a lot of which we accomplished when parsing recipes from social media websites for a recent client).<\/p>\n<p>Examining the second sentence more closely, the relationships among the clauses have interesting temporal relationships (especially with regard to aspect).<\/p>\n<p>Note that an appropriate parse of the second sentence should have the grandmother as the subject of a conjunction involving &#8220;gathered&#8221;, &#8220;propelled&#8221;, &#8220;lifting&#8221;, &#8220;seating&#8221;, and &#8220;saying&#8221;, as in:<\/p>\n<p><a href=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/Now-Tatyana.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1027\" title=\"Now Tatyana\" src=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/Now-Tatyana.png\" alt=\"\" width=\"1307\" height=\"362\" srcset=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/Now-Tatyana.png 1307w, http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/Now-Tatyana-300x83.png 300w, http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/Now-Tatyana-1024x283.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>This turned out to require some improvements to our handling of quoted text and the use of iterative re-parsing as described in a prior post on<a href=\"http:\/\/haleyai.com\/wordpress\/2017\/12\/08\/combinatorial-ambiguity-no-problem\/\"> handling combinatorial ambiguity<\/a>.<\/p>\n<p>Try it yourself and you&#8217;ll see not only how challenging the NLP is, but how much common sense knowledge and pragmatic reasoning is necessary just to parse the problem!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Winograd Challenge is an alternative to the Turing Test for assessing artificial intelligence.\u00a0 The essence of the test involves resolving pronouns.\u00a0 To date, systems have not fared well on the test for several reasons.\u00a0 There are 3 that come to mind: The natural language processing involved in the word problems is beyond the state &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/haleyai.com\/wordpress\/2018\/02\/11\/parsing-winograd-challenges\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Parsing Winograd Challenges&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[762,761,531,527,214,760],"class_list":["post-1026","post","type-post","status-publish","format-standard","hentry","category-natural-language","tag-combinatorial-ambiguity","tag-dsiambiguation","tag-knowbuddy","tag-linguist","tag-nlp","tag-wingrad-challenge"],"_links":{"self":[{"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/posts\/1026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1026"}],"version-history":[{"count":9,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/posts\/1026\/revisions"}],"predecessor-version":[{"id":1029,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/posts\/1026\/revisions\/1029"}],"wp:attachment":[{"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1026"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}