本文介绍了在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解释器的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

您可以在。

如果您正在使用其他类型的实现,例如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属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 02:55