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 store the .properties file and if not then how should I add the bot properties in AIML.


回答1:


As the AIML 2.0 working draft said:

The AIML standard does not specify where or how the properties, sets, maps, substitutions and predicates are defined. This is an implementation detail left up to the interpreter designer.

As an example, I am working with program-ab which is a Java implementation of the AIML interpreter.

The properties info of a bot is placed in a file named config/properties.txt.

The format is like:

name: Alice
age: 22
gender: female

You can find more info about the program-ab configurations at Configuration.wiki.

If you are working with other kinds of implementation such as Python or whatever, the properties file path and its format may be found inside the wiki or docs.



来源:https://stackoverflow.com/questions/52182049/setting-bot-properties-in-aiml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!