{"action":"created","issue":{"url":"https://api.github.com/repos/opencog/opencog/issues/1302","labels_url":"https://api.github.com/repos/opencog/opencog/issues/1302/labels{/name}","comments_url":"https://api.github.com/repos/opencog/opencog/issues/1302/comments","events_url":"https://api.github.com/repos/opencog/opencog/issues/1302/events","html_url":"https://github.com/opencog/opencog/issues/1302","id":58489846,"number":1302,"title":"Modify Cogita chatbot to be a simple QA system utilizing RelEx2Logic, the microplanner/SuREal, and Man Hin's fuzzy sub-hypergraph matcher","user":{"login":"bgoertzel","id":5907804,"avatar_url":"https://avatars.githubusercontent.com/u/5907804?v=3","gravatar_id":"","url":"https://api.github.com/users/bgoertzel","html_url":"https://github.com/bgoertzel","followers_url":"https://api.github.com/users/bgoertzel/followers","following_url":"https://api.github.com/users/bgoertzel/following{/other_user}","gists_url":"https://api.github.com/users/bgoertzel/gists{/gist_id}","starred_url":"https://api.github.com/users/bgoertzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgoertzel/subscriptions","organizations_url":"https://api.github.com/users/bgoertzel/orgs","repos_url":"https://api.github.com/users/bgoertzel/repos","events_url":"https://api.github.com/users/bgoertzel/events{/privacy}","received_events_url":"https://api.github.com/users/bgoertzel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-22T04:29:07Z","updated_at":"2015-02-22T04:40:28Z","closed_at":null,"body":"(This is intended mainly for Rodas.)\r\n\r\nLook at the code for Linas's previous OpenCog-based chatbot,\r\n\r\nhttps://github.com/opencog/opencog/tree/master/opencog/nlp/chatbot\r\n\r\nThere is nothing too deep AI-wise here.  However, it is of interest operationally, because it contains code that connects OpenCog to an IRC chatbot.  This is a simple way to experiment with NLP dialogue in OpenCog, bypassing more general problems of interfacing with OpenCog via the Embodiment module. \r\n\r\nSo a meaningful task is: Write code that replaces the chat-generating code Linas's chatbot with a\r\nsimple question-answering functionality that works as follows.\r\n\r\n-- The user asks a question to the chatbot\r\n\r\n-- The NL comprehension pipeline is applied to the question, including R2L and all postprocessing\r\n\r\n-- A search is done to find a sub-hypergraph providing \"close match\" to {the subhypergraph obtained by applying the NL comprehension pipeline to the question} in the Atomspace.   (Fuzzy search/matching between Atomspace sub-hypergraphs is being implemented by Man Hin in\r\nthe OpenCog HK office right now.  It currently sorta works but gives too many bad results.  But he is currently improving it.\r\n\r\n-- The closest match found in the above step, is fed to the microplanner/SuReal to be turned into a sentence to be articulated\r\n\r\n-- the Sentence is said to the user, via the IRC chatbot interface"},"comment":{"url":"https://api.github.com/repos/opencog/opencog/issues/comments/75419424","html_url":"https://github.com/opencog/opencog/issues/1302#issuecomment-75419424","issue_url":"https://api.github.com/repos/opencog/opencog/issues/1302","id":75419424,"user":{"login":"linas","id":94368,"avatar_url":"https://avatars.githubusercontent.com/u/94368?v=3","gravatar_id":"","url":"https://api.github.com/users/linas","html_url":"https://github.com/linas","followers_url":"https://api.github.com/users/linas/followers","following_url":"https://api.github.com/users/linas/following{/other_user}","gists_url":"https://api.github.com/users/linas/gists{/gist_id}","starred_url":"https://api.github.com/users/linas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linas/subscriptions","organizations_url":"https://api.github.com/users/linas/orgs","repos_url":"https://api.github.com/users/linas/repos","events_url":"https://api.github.com/users/linas/events{/privacy}","received_events_url":"https://api.github.com/users/linas/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T04:40:28Z","updated_at":"2015-02-22T04:40:28Z","body":"The irc interfaces are here:  https://github.com/opencog/opencog/tree/master/opencog/nlp/chatbot \r\n\r\nIt does two things:\r\n1) log into IRC and do IRC things\r\n2) whenever someone talked to the robot, it sent whatever the user said to the cogserver on port 17001. That is done right here:  https://github.com/opencog/opencog/blob/master/opencog/nlp/chatbot/go-irc.cc#L158\r\n\r\njust replace that line of code with the top-level entry point for the current speech system  that is, replace \"say-id-english\" by the name of the top-most scheme function that implements opencog NLP processing.  It should return a string: that string is then published onto IRC.   So all you need to do is to change 1 maybe 2 lines of code and you're goot to go."}}