在AIML中设置BOT属性 [英] Setting BOT properties in AIML

查看:155
本文介绍了在AIML中设置BOT属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在AIML中,我看到了使用Bot属性的各种文件。例如:

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.

在搜索时,我发现它存储在.properties中(链接)文件,但是我找不到该文件。

On searching I found that its stored in the .properties (link) file, but I cannot find the file anywhere.

github repsitory,其中包含许多文件并使用了 bot属性,但这里也没有.properties文件:回购链接

There is also a github repsitory which has many files and used the bot properties, but here also no .properties file : Repo Link

因此,我应该在哪里存储.properties文件,如果没有,应该如何添加

So, where should I store the .properties file and if not then how should I add the bot properties in AIML.

推荐答案

作为 AIML 2.0工作草案说:


AIML s tandard没有指定在何处或如何定义属性,集合,映射,
替换和谓词。这是实现细节
留给解释器设计师。

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.

例如,我正在使用 program-ab ,它是AIML解释器的Java实现。

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

机器人的属性信息放置在名为
config / properties.txt 的文件中。

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

格式如下:

name: Alice
age: 22
gender: female

您可以在 Configuration.wiki

如果您正在使用其他类型的实现,例如Python或其他任何实现,则可以在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.

这篇关于在AIML中设置BOT属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆