{"id":1223,"date":"2018-04-07T07:49:51","date_gmt":"2018-04-07T12:49:51","guid":{"rendered":"http:\/\/haleyai.com\/wordpress\/?p=1223"},"modified":"2018-07-13T18:27:45","modified_gmt":"2018-07-13T23:27:45","slug":"simply-smarter-intelligent-agents","status":"publish","type":"post","link":"http:\/\/haleyai.com\/wordpress\/2018\/04\/07\/simply-smarter-intelligent-agents\/","title":{"rendered":"Simply Smarter Intelligent Agents"},"content":{"rendered":"<p>Deep learning can produce some impressive chatbots, but they are hardly intelligent.\u00a0 In fact, they are precisely ignorant in that they do not think or know anything.<\/p>\n<p>More intelligent dialog with an artificially intelligent agent involves both knowledge and thinking.\u00a0 In this article, we educate an intelligent agent that reasons to answer questions.<\/p>\n<p><!--more-->The agent\u2019s knowledge is expressed in simple, English sentences.\u00a0 The agent reasons using informal logic from those sentences and pragmatic knowledge about how to interpret and answer questions.<\/p>\n<ol>\n<li>The domain for this intelligent agent is decision support for compliance with sales tax laws and regulations.<\/li>\n<li>A pragmatic framework demonstrates simple reasoning beyond chatbots using an open-source reasoning system.<\/li>\n<\/ol>\n<p>In combination, we demonstrate how the following types of reasoning can be easily incorporated into intelligent agents:<\/p>\n<ul>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Textual_entailment\">textual entailment<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Metonymy\">resolving metonymy<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Abductive_reasoning\">abductive inference<\/a><\/li>\n<\/ul>\n<p>Other posts and pages address these topics and the use of natural language knowledge acquisition, representation, and reasoning more formally.\u00a0 This is a casual, introductory post aimed at making the lower end of the intelligent agent spectrum (i.e., chatbots) smarter.<\/p>\n<ul>\n<li>if you are more interested in policy automation, decision management, or compliance, you might be more comfortable starting with this <a href=\"http:\/\/haleyai.com\/wordpress\/2018\/04\/02\/simply-logical-english\/\">introduction to logical English<\/a> or the 2-part <a href=\"http:\/\/haleyai.com\/wordpress\/2018\/04\/02\/confessions-of-a-production-rule-vendor-part-2\/\">confessions of a production rule vendor<\/a>.<\/li>\n<\/ul>\n<h3>Simple Knowledge Acquisition<\/h3>\n<p>For simple sentences, natural language processing (NLP) systems can frequently produce knowledge representation that is sufficient for effective question answering beyond chatbots.\u00a0 For example, the following results immediately from parsing a simple sentence.<\/p>\n<p><a href=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/food-products-do-not-include-medinces.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1224\" title=\"food products do not include medinces\" src=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/food-products-do-not-include-medinces.jpg\" alt=\"\" width=\"699\" height=\"371\" srcset=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/food-products-do-not-include-medinces.jpg 699w, http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/food-products-do-not-include-medinces-300x159.jpg 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/a><\/p>\n<p>This knowledge representation is much simpler but not much less practical than fully-specified predicate calculus.\u00a0 The important thing is that it gives us a structure representation that we can work with using the machinery of logic programming and notions such as textual entailment.\u00a0 If you\u2019re interested in the details and how to go further towards \u201caxiomatic knowledge\u201d, please see the notes.<sup> <a href=\"#_ftn1\"><sup>[1]<\/sup><\/a><a href=\"#_ftn2\"><sup>[2]<\/sup><\/a><a href=\"#_ftn3\"><sup>[3]<\/sup><\/a><\/sup> The <a href=\"http:\/\/haleyai.com\/wordpress\/linguist%e2%84%a2\/\">Linguist<\/a><span style=\"text-decoration: underline;\"> <\/span>can make many reliable deductions not shown above, but let\u2019s stick with this most simple use case for purposes of this post.<a href=\"#_ftn4\"><sup><\/sup><sup>[4]<\/sup><\/a><\/p>\n<p>The most basic question is what the sentence means.\u00a0 Then we can consider how its meaning is to be used in reasoning (e.g., to answer a question, support a decision, etc.).<\/p>\n<p>Our common sense tells us that the intended meaning here is that food products and medicines do not intersect (i.e., they are disjoint; having no common members).<\/p>\n<ul>\n<li>So how would we want to reason with this understanding?<\/li>\n<\/ul>\n<p>We could ask abstract questions about food products or medicines as types of things.\u00a0 Or, we could ask questions about a specific food product or medicine.<\/p>\n<p>For example, we could ask \u201cIs medicine subject to sales tax?\u201d where we know that food products are not subject to sales tax.<a href=\"#_ftn5\"><sup><\/sup><sup>[5]<\/sup><\/a><\/p>\n<p><a href=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/is-medicine-subject-to-sales-tax.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1225\" title=\"is medicine subject to sales tax\" src=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/is-medicine-subject-to-sales-tax.jpg\" alt=\"\" width=\"720\" height=\"271\" srcset=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/is-medicine-subject-to-sales-tax.jpg 720w, http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/is-medicine-subject-to-sales-tax-300x112.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>Note that the system understands that the above is an interrogative sentence (i.e., a question).<\/p>\n<p>The following, on the other hand, is a declarative sentence:<\/p>\n<p><a href=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/food-products-are-not-subject-to-sales-tax.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1226\" title=\"food products are not subject to sales tax\" src=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/food-products-are-not-subject-to-sales-tax.jpg\" alt=\"\" width=\"714\" height=\"313\" srcset=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/food-products-are-not-subject-to-sales-tax.jpg 714w, http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/food-products-are-not-subject-to-sales-tax-300x131.jpg 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/a><\/p>\n<p>But, of course, the answer to the question would be \u201cI know nothing that is subject to sales tax.\u201d\u00a0 At least until we say something like:<\/p>\n<p><a href=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/every-sale-of-tangible-property-is-subject-to-sales-tax.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1227\" title=\"every sale of tangible property is subject to sales tax\" src=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/every-sale-of-tangible-property-is-subject-to-sales-tax.jpg\" alt=\"\" width=\"718\" height=\"323\" srcset=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/every-sale-of-tangible-property-is-subject-to-sales-tax.jpg 718w, http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/every-sale-of-tangible-property-is-subject-to-sales-tax-300x134.jpg 300w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/a><\/p>\n<h3>Intelligent Agents\u2019 Inference Engine<\/h3>\n<p>In order for the logic of the interrogative and declarative sentences above to be used by an intelligent agent, its representation must be made available to some type of inference engine.<\/p>\n<p>Assuming we have loaded results from the Linguist into <a href=\"https:\/\/linguist.haleyai.com\/LogicProgrammingUsingProlog.html\">Flora-2<\/a>, the following query:<\/p>\n<ul>\n<li>flora2 ?-reading(of(sentence))(?reading,?_)@parse.<\/li>\n<\/ul>\n<p>Has the following answers (the question is underlined):<\/p>\n<ul>\n<li><span style=\"text-decoration: underline;\">?reading = subject(to)(&#8216;<\/span><span style=\"text-decoration: underline;\">\u2286'(medicine),&#8217;<\/span><span style=\"text-decoration: underline;\">\u2286'(sale(tax)))<\/span><\/li>\n<li>?reading = &#8216;\u00ac'(include(&#8216;\u2286'(food(product)),&#8217;\u2286'(medicine)))<\/li>\n<li>?reading = &#8216;\u00ac'(subject(to)(&#8216;\u2286'(food(product)),&#8217;\u2286'(sale(tax))))<\/li>\n<li>?reading = &#8216;\u2200\u208a'(\\##7)(&#8216;\u2192'(sale(of)(\\##7,&#8217;\u2286'(tangible(property))),subject(to)(\\##7,&#8217;\u2286'(sale(tax)))))<a href=\"#_ftn6\"><sup><\/sup><sup>[6]<\/sup><\/a><\/li>\n<\/ul>\n<p>Here, \\## introduces what Flora calls a skolem constant.\u00a0 For our purposes here, you can think of these as variables.\u00a0 The fact that they are constants in Flora merely prevents their undergoing unification.<a href=\"#_ftn7\"><sup><\/sup><sup>[7]<\/sup><\/a><\/p>\n<h3>Identifying Pertinent Knowledge<\/h3>\n<p>Now we can look at the atomic formulas<a href=\"#_ftn8\"><sup><\/sup><sup>[8]<\/sup><\/a> of these readings using the following query:<\/p>\n<ul>\n<li>?- reading(of(sentence))(?_reading),atom(of(reading))(?atom,?_reading).<\/li>\n<\/ul>\n<p>To which the following answers are received:<\/p>\n<ul>\n<li>?atom = include(&#8216;\u2286'(food(product)),&#8217;\u2286'(medicine))<\/li>\n<li>?atom = sale(of)(\\##7,&#8217;\u2286'(tangible(property)))<\/li>\n<li>?atom = subject(to)(\\##7,&#8217;\u2286'(sale(tax)))<\/li>\n<li><span style=\"text-decoration: underline;\">?atom = subject(to)(&#8216;<\/span><span style=\"text-decoration: underline;\">\u2286'(medicine),&#8217;<\/span><span style=\"text-decoration: underline;\">\u2286'(sale(tax)))<\/span><\/li>\n<li>?atom = subject(to)(&#8216;\u2286'(food(product)),&#8217;\u2286'(sale(tax)))<\/li>\n<\/ul>\n<p>These suggest that the readings that contain atoms about \\##7 or &#8216;\u2286'(food(product)) being subject to sales tax may be pertinent.<\/p>\n<p>Matching atoms from the question with atoms from the readings suggests 2 further deliberations:<\/p>\n<ol>\n<li>Could &#8216;\u2286'(food(product)) include <span style=\"text-decoration: underline;\">&#8216;<\/span><span style=\"text-decoration: underline;\">\u2286'(medicine)<\/span>?<\/li>\n<li>Could <span style=\"text-decoration: underline;\">&#8216;<\/span><span style=\"text-decoration: underline;\">\u2286'(medicine)<\/span> and \\##7 intersect?<\/li>\n<\/ol>\n<p>The answer to the first is given by the reading that negates the pertinent atom (i.e., food products do not include medicines).<\/p>\n<ul>\n<li>The answer to the second deliberation involves <a href=\"https:\/\/en.wikipedia.org\/wiki\/Metonymy\">metonymy<\/a>.<\/li>\n<\/ul>\n<p>Note that the sentence about sales of tangible property is about the sale rather than the property but the question seems to be about medicine as the property involved in a sale.\u00a0 This is an example of <em>metonymy<\/em>.\u00a0 The question is not whether some medicine in a bathroom cabinet is subject to tax but whether a sale of medicine is subject to tax.<\/p>\n<h3>Metonymy<\/h3>\n<p>Answering questions requires handling metonymy. \u00a0It\u2019s practically impossible for human beings to avoid using metonymy.\u00a0 It is pervasive.<\/p>\n<ol>\n<li>All we know about sales tax from the above sentences is that sales may be subject to it.<\/li>\n<li>Presumably, we would not say that something that is not a sale is subject to (or not) sales tax.<\/li>\n<\/ol>\n<p>This suggests that we <a href=\"https:\/\/en.wikipedia.org\/wiki\/Abductive_reasoning\">abductively<\/a> infer that the question is about a sale of medicine and that the statement excluding food products from sales tax is about sales of food products.\u00a0 Alternatively, if we do not assume (as in abduction), we can ask.<\/p>\n<p>One again, we have narrowed the question answering process to the following point:<\/p>\n<ul>\n<li>subject(to)(\\##7,&#8217;\u2286'(sale(tax)))<\/li>\n<li>\u2192'(sale(of)(\\##7,&#8217;\u2286'(tangible(property))),subject(to)(\\##7,&#8217;\u2286'(sale(tax)))) where<\/li>\n<li>\\##7 matches <span style=\"text-decoration: underline;\">&#8216;<\/span>\u2286'(medicine) from our question<\/li>\n<\/ul>\n<p>The implication would hold if \\##7 was a sale of medicine.<\/p>\n<ul>\n<li>To resolve the metonymy, we take one step away from medicine.<\/li>\n<li>In this case, we move to something about medicine.<\/li>\n<\/ul>\n<p>Let\u2019s make this a little easier&#8230; the following answers result from simplifying the prior answers:<\/p>\n<ul>\n<li><em>?simplify = sale(of(&#8216;<\/em><em>\u2286'(tangible(property))))(?X7)<\/em><\/li>\n<li>?simplify = subject(to(&#8216;\u2286'(sale(tax))))(?X7)<\/li>\n<li><span style=\"text-decoration: underline;\">?simplify = subject(to(&#8216;<\/span><span style=\"text-decoration: underline;\">\u2286'(sale(tax))))(&#8216;<\/span><span style=\"text-decoration: underline;\">\u2286'(medicine))<\/span><\/li>\n<li>?simplify = subject(to(&#8216;\u2286'(sale(tax))))(&#8216;\u2286'(food(product)))<\/li>\n<\/ul>\n<p>Note that the antecedent of the implication is italicized above (the question remains underlined).<\/p>\n<h3>Abductive Inference<\/h3>\n<p>When we consider metonymy, we simply allow for some function of the phrase used, as in:<\/p>\n<ul>\n<li>subject(to(&#8216;\u2286'(sale(tax))))(?F(&#8216;\u2286'(medicine)))<\/li>\n<\/ul>\n<p>Unifying this with the 2<sup>nd<\/sup> answer above yields:<\/p>\n<ul>\n<li>?X7=?F(&#8216;\u2286'(medicine)))<\/li>\n<\/ul>\n<p>Given the implication above, the answer would be yes if ?F resolves the metonymy, as in:<\/p>\n<ul>\n<li>holds(sale(of(&#8216;\u2286'(tangible(property))))(?F(&#8216;\u2286'(medicine)))))<\/li>\n<\/ul>\n<p>In general, a predicate that holds for something general holds for something more specific, as in:<\/p>\n<ul>\n<li>holds(?predicate(?p(?X))(?predicate(?p(?Y))) :- preposition(?p), subsumes(?x,?Y).<\/li>\n<\/ul>\n<h3>Ontology and Common Sense<\/h3>\n<p>Our objective in this article is to simply convey how a little knowledge representation and inference is the difference between a chatbot and an intelligent agent.\u00a0 There is more to cover about how an intelligent agent gets domain knowledge, such an understanding of products and services offered by an enterprise.\u00a0 That commonly involves reading pertinent documentation to extract and align domain-specific vocabulary and ontology.\u00a0 Here, we admit, that we gloss over all that.\u00a0 In a future post we will show how we do that, such as we <a href=\"http:\/\/haleyai.com\/wordpress\/2017\/11\/30\/simple-fast-effective-active-learning\/\" target=\"_blank\">have done for cooking<\/a>.<\/p>\n<p>If we have loaded an ontology or written a sentence to the effect that tangible property includes medicine, we will deduce the prior statement.<\/p>\n<ul>\n<li>We can deduce that medicine is tangible by reading using common sense, such as:\n<ul>\n<li>anything that contains<a href=\"#_ftn9\"><sup><\/sup><sup>[9]<\/sup><\/a> something tangible must be tangible<\/li>\n<li>knowing (e.g., from WordNet) that medicine is a substance<a href=\"#_ftn10\"><sup><\/sup><sup>[10]<\/sup><\/a><\/li>\n<\/ul>\n<\/li>\n<li> This leads us to a better ontology where we educate the machine about transfers of ownership of property (i.e., sales).\n<ul>\n<li>anything owned is property<a href=\"#_ftn11\"><sup><\/sup><sup>[11]<\/sup><\/a><\/li>\n<li>a sale is a transfer of ownership of property<a href=\"#_ftn12\"><sup><\/sup><sup>[12]<\/sup><\/a><a href=\"#_ftn13\"><sup><\/sup><sup>[13]<\/sup><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Obviously, there is much to go into here about the agent&#8217;s knowledge, inference capabilities, and reasoning heuristics.\u00a0 We will make the simple claim that a small body of general pragmatics combined with sufficiently precise knowledge from domain documentation can produce a smarter agent than deep learning can obtain with Big Data.\u00a0 The differences are:<\/p>\n<ul>\n<li>A chatbot may respond as if it understands but cannot answer questions if any reasoning is required.\n<ul>\n<li>The chatbot has no explicit, reliable knowledge and does not reason.<\/li>\n<li><a href=\"https:\/\/www.pcmag.com\/article\/357463\/yann-lecun-discusses-the-power-limits-of-deep-learning\" target=\"_blank\">[Yann] LeCun, head of AI at Facebook: &#8220;what&#8217;s still missing is reasoning&#8221;<\/a><\/li>\n<\/ul>\n<\/li>\n<li>An intelligent agent has some knowledge with which it does reason.<\/li>\n<\/ul>\n<h2>Learning or Clarifying by Asking<\/h2>\n<p>Unlike a chatbot, an intelligent agent engaged in dialogue may wish to clarify the intent of a question or even ask for help in figuring out the answer to a question.<\/p>\n<p>If we have neither loaded an ontology nor read enough to deduce that medicine is tangible, the agent could ask&#8230;\u00a0 depending on the user, their goal, and the context of the interaction.<\/p>\n<p>In XSB and Flora, we have the well-founded semantics<a href=\"#_ftn14\"><sup><\/sup><sup>[14]<\/sup><\/a>, which allows us to express the following:<\/p>\n<ul>\n<li>subsumes(?x,?y) :- \\neg subsumes(?x,?y), ask(subsumes(?x,?y)).<\/li>\n<\/ul>\n<p>Which invokes the action to ask only if it is not already known or provable (positively or negatively) that one subsumes the other.\u00a0 (This is different from Prolog\u2019s strictly procedural behavior).<\/p>\n<h2>Putting It Together<\/h2>\n<p>In either case, once we have that the metonymy around medicine can be resolved by:<\/p>\n<ul>\n<li>?F=sale(of(?_))<\/li>\n<\/ul>\n<p>We answer the question by deducing the following:<\/p>\n<ul>\n<li>subject(to(&#8216;\u2286'(sale(tax))))(sale(of(&#8216;\u2286'(medicine))))<\/li>\n<\/ul>\n<p>Typically, we resort to metonymy when no answer is found without it.\u00a0 So we ask the question without metonymy and, if no answers are obtained, we pursue the question again, this time allowing metonymy.<\/p>\n<p>Of course, in an actual dialog, we might ask for confirmation of the metonymy and, in either case, render the confirmations and answers above as English sentences.<\/p>\n<p>For example, the agent might say any of the following:<\/p>\n<ul>\n<li>Yes.<\/li>\n<li>Yes, a sale of medicine is subject to sales tax.<\/li>\n<li>Yes, if you were asking about sales of medicine.<\/li>\n<\/ul>\n<p>As simple as this example may be, it demonstrates general techniques, just a few of which allow an agent to be more intelligent than a chatbot.\u00a0 All it takes is a little thinking (i.e., knowledge and reasoning).<\/p>\n<hr size=\"1\" \/><a href=\"#_ftnref1\"><sup><\/sup><sup>[1]<\/sup><\/a> Bunt, Harry. <a href=\"http:\/\/www.idi.ntnu.no\/~gamback\/teaching\/TDT4138\/bunt07.pdf\">&#8220;Semantic under-specification: Which technique for what purpose?.&#8221;<\/a> <em>Computing meaning<\/em>. Springer, Dordrecht, 2008. 55-85.<\/p>\n<p><a href=\"#_ftnref2\"><sup><\/sup><sup>[2]<\/sup><\/a> We ignore the quantifier for \u201cfood\u201d here but could establish its variable as equal to the variable for products, as is almost universally the case for compound nouns.<\/p>\n<p><a href=\"#_ftnref3\"><sup><\/sup><sup>[3]<\/sup><\/a> We ignore the quantifier for \u201cnot\u201d here, which refers to the situation in which the negation holds.\u00a0 In effect, we interpret the negation \u201cuniversally\u201d.<\/p>\n<p><a href=\"#_ftnref4\"><sup><\/sup><sup>[4]<\/sup><\/a> For example, the Linguist realizes that:<\/p>\n<ul>\n<li>the focal referent here is the noun phrase headed by \u201cproducts\u201d (i.e., ?x6)\n<ul>\n<li>e.g., it\u2019s scope is outermost and includes the quantification of ?e16<\/li>\n<li>e.g., that its quantifier is universal given its referent occurs as plural<\/li>\n<li>the quantification for a subject of an event typically has wider scope\n<ul>\n<li>i.e., the quantification of ?x6 here has scope over the quantification of ?e16<\/li>\n<li>that \u201cfood products\u201d is a compound noun having a single referent\n<ul>\n<li>e.g., the quantification for ?x9 has the same scope as ?x6<\/li>\n<li>e.g., the variables ?x9 may co-reference or be unified with ?x9<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"#_ftnref5\"><sup><\/sup><sup>[5]<\/sup><\/a> We can be as precise as necessary here, but for simplicity we will omit the distinction of various taxes and their individuality per jurisdiction.<\/p>\n<p><a href=\"#_ftnref6\"><sup><\/sup><sup>[6]<\/sup><\/a> The Linguist also generates the following Flora axioms for the last reading:<\/p>\n<ul>\n<li>subject(to)(?x7, &#8216;\u2286'(sale(tax))) :- sale(of)(\\##7,&#8217;\u2286'(tangible(property))).<\/li>\n<li>\\neg sale(of)(\\##7,&#8217;\u2286'(tangible(property))) :- \\neg subject(to)(?x7, &#8216;\u2286'(sale(tax))).<\/li>\n<\/ul>\n<p>The second rule reflects that (by default) something that is not subject to sales tax cannot be a sale of tangible property.<\/p>\n<ol>\n<li>Most business rule systems would not handle this logic.Flora provides defeasible logic to handle the exceptions.<\/li>\n<\/ol>\n<p><a href=\"#_ftnref7\"><sup><\/sup><sup>[7]<\/sup><\/a> See <a href=\"https:\/\/linguist.haleyai.com\/LogicProgrammingUsingProlog.html\">this background information<\/a> or <a href=\"https:\/\/en.wikipedia.org\/wiki\/Unification\">this page at Wikipedia<\/a> for further information.<\/p>\n<p><a href=\"#_ftnref8\"><sup><\/sup><sup>[8]<\/sup><\/a> definitions for terms of logic can be found <a href=\"https:\/\/linguist.haleyai.com\/LogicProgrammingUsingProlog.html\">here<\/a><\/p>\n<p><a href=\"#_ftnref9\"><sup><\/sup><sup>[9]<\/sup><\/a> in <a href=\"http:\/\/wordnetweb.princeton.edu\/perl\/webwn?o2=1&amp;o0=1&amp;o8=1&amp;o1=1&amp;o7=1&amp;o5=&amp;o9=&amp;o6=1&amp;o3=&amp;o4=&amp;s=contain&amp;i=1&amp;h=100000000#c\">this WordNet sense<\/a><\/p>\n<p><a href=\"#_ftnref10\"><sup><\/sup><sup>[10]<\/sup><\/a> see <a href=\"http:\/\/wordnetweb.princeton.edu\/perl\/webwn?o2=1&amp;o0=1&amp;o8=1&amp;o1=1&amp;o7=1&amp;o5=&amp;o9=&amp;o6=1&amp;o3=&amp;o4=&amp;s=medicine&amp;i=6&amp;h=01000000000#c\">this WordNet sense<\/a> and its definition and hypernyms<\/p>\n<p><a href=\"#_ftnref11\"><sup><\/sup><sup>[11]<\/sup><\/a> see <a href=\"http:\/\/wordnetweb.princeton.edu\/perl\/webwn?o2=1&amp;o0=1&amp;o8=1&amp;o1=1&amp;o7=1&amp;o5=&amp;o9=&amp;o6=1&amp;o3=&amp;o4=&amp;s=property&amp;i=2&amp;h=10000000#c\">this WordNet sense<\/a><\/p>\n<p><a href=\"#_ftnref12\"><sup><\/sup><sup>[12]<\/sup><\/a> see <a href=\"http:\/\/wordnetweb.princeton.edu\/perl\/webwn?o2=1&amp;o0=1&amp;o8=1&amp;o1=1&amp;o7=1&amp;o5=&amp;o9=&amp;o6=1&amp;o3=&amp;o4=&amp;s=sale&amp;i=6&amp;h=0000100#c\">this WordNet sense<\/a> of sale or <a href=\"https:\/\/framenet2.icsi.berkeley.edu\/fnReports\/data\/frameIndex.xml?frame=Commerce_sell\">this in FrameNet<\/a><\/p>\n<p><a href=\"#_ftnref13\"><sup><\/sup><sup>[13]<\/sup><\/a><a href=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/CycSale.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1222\" title=\"CycSale\" src=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/CycSale.jpg\" alt=\"\" width=\"624\" height=\"683\" srcset=\"http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/CycSale.jpg 624w, http:\/\/haleyai.com\/wordpress\/wp-content\/uploads\/CycSale-274x300.jpg 274w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/a><\/p>\n<p><a href=\"#_ftnref14\"><sup><\/sup><sup>[14]<\/sup><\/a> see <a href=\"https:\/\/linguist.haleyai.com\/LogicProgrammingUsingProlog.html\">this background<\/a> for more information<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deep learning can produce some impressive chatbots, but they are hardly intelligent.\u00a0 In fact, they are precisely ignorant in that they do not think or know anything. More intelligent dialog with an artificially intelligent agent involves both knowledge and thinking.\u00a0 In this article, we educate an intelligent agent that reasons to answer questions.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,16,17,243],"tags":[687,41,821,865,97,707,866,185,419,867,211,214,888,347,238,868,896,269,548,495,573],"class_list":["post-1223","post","type-post","status-publish","format-standard","hentry","category-cognitive-agents","category-natural-language","category-ontology","category-question-answering","tag-ai","tag-artificial-intelligence","tag-automated-reasoning","tag-chatbot","tag-cyc","tag-framenet","tag-intelligent-agent","tag-knowledge-acquisition","tag-logic-programming","tag-metonymy","tag-natural-language-processing","tag-nlp","tag-ontology","tag-opencyc","tag-prolog","tag-qa","tag-question-answering","tag-semantics","tag-textual-entailment","tag-under-specified-representation","tag-wordnet"],"_links":{"self":[{"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/posts\/1223","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=1223"}],"version-history":[{"count":5,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/posts\/1223\/revisions"}],"predecessor-version":[{"id":1231,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/posts\/1223\/revisions\/1231"}],"wp:attachment":[{"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1223"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/haleyai.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}