aiml

Is there any implementation guide about AIML-OWL Integration?

只谈情不闲聊 提交于 2021-02-08 09:44:08
问题 So, i've done build an ontology using protégé and generate owl file, as far as i know owl is the rdf xml-based with more expressivity, and there are couples of paper that tells RDF can be integrated with AIML to build pattern matching chatbot with some kind of extensible knowledge such as https://www.researchgate.net/publication/228877414_Extending_knowledge_of_AIML_by_using_RDF http://conferences.idealliance.org/extreme/html/2007/Freese01/EML2007Freese01.html But i can't get any clear

AIML Chatbot response differs at different times?

删除回忆录丶 提交于 2020-01-25 08:01:11
问题 A separate question for the AIML bot in my previous post... How do you create a bot that responds at different times of the day? I feel like it will make him seem more "real." I can't make heads or tails about how the date and time display actually works. I assume you'd have to fiddle with that alongside the set/get functions... but that's all I know for sure. I would like my bot to do something like this. TIME: Noon USER: Hi, bot. BOT: Good afternoon, USER! It's about lunchtime for me. Where

AIML - topic - unexpected answer does not match with STAR (*)

落花浮王杯 提交于 2020-01-06 05:34:06
问题 When using the AB.jar Google reference (alice) bot: When having this simple short script: <category><pattern>TOPIC 1</pattern> <template>Topic 2 with current topic '<get name="topic"/>'.<think><set name="topic">topic2</set></think></template> </category> <topic name="TOPIC2"> <category><pattern>YES</pattern> <template>Going to topic3-yes <think><set name="topic">topic3-yes</set></think></template> </category></topic> <topic name="TOPIC2"> <category><pattern>*</pattern> <template>Going to

PyAIML not loading startup

雨燕双飞 提交于 2019-12-22 09:04:33
问题 I am beginning a project on Python that implements PyAIML and I wrote the following code to create a brain for my project: import aiml k=aiml.Kernel() k.learn("std-startup.xml") k.respond("LOAD AIML B") k.saveBrain("jarvis.brn") When I run the program I get this error: WARNING: No match found for input: LOAD AIML B I understand that I needed to download an AIML set to begin development. So I did, but I'm stuck there. Please help. I'm a noob programmer so don't be rough on me for this dumb

How can I have more than one Wildcard in a pattern

空扰寡人 提交于 2019-12-13 03:55:00
问题 I am working on a AI chat bot in Pandoabots using XML in AIML and I am getting stuck on how you would have more than one wildcard in a pattern without it breaking. Here I am trying to store a value like "where" before Cardiff and after Cardiff I want the program to pick up on any keywords like "please","?" and "bot". However when I do this is displays the default value which is "I have no answer for that. However not all the questions will have "please" or "?" at the end. <category> <pattern>

Setting BOT properties in AIML

我是研究僧i 提交于 2019-12-12 09:25:17
问题 In AIML I have seen various files where the Bot properties is being used. For example : <bot name="name" /> Here, the bot name is being used, but I am not able to find the place where to set this property, i.e. where should I define the name. On searching I found that its stored in the .properties (link) file, but I cannot find the file anywhere. There is also a github repsitory which has many files and used the bot properties , but here also no .properties file : Repo Link So, where should I

ImportError: No module named 'Kernel'

删除回忆录丶 提交于 2019-12-11 12:52:04
问题 I'm using windows 10 and working on a chatbot project and use aiml integrated with python I got this error import aiml File"C:\Python34\lib\site-packages\aiml\__init__.py", line 4, in <module> from Kernel import Kernel ImportError: No module named 'Kernel' when running the integration code here import aiml # Create the kernel and learn AIML files kernel = aiml.Kernel() kernel.learn("std-startup.xml") kernel.respond("load aiml b") # Press CTRL-C to break this loop while True: print (kernel

is it possible to call Java functions from aiml?

喜你入骨 提交于 2019-12-11 06:27:42
问题 I am creating a chatbot using Java and program ab. In few places I can’t answer the questions directly, I have to process something or call a web service and process the result and then reply back. In such cases how to include the result of my java function to the responses in the aiml. Say, User: What is the price of the product A? Bot: The price of product A is $50 In the above example, $50 is not going to be same always. I have to take that in run time. So how to solve this problem? **AIML