你知道机器人自由还提供了 3D头像 和一个免费的网络 语音 API?
FAQ : What are labels, and how to reuse responses?

RE: What are labels, and how to reuse responses?

通过 admin 发布 Feb 12 2016, 14:14

I tested the same log on the website and it worked correctly as expected.

Your issue is your are importing the file as a "Chat Log" not as a "Response List". The chat log format is for a conversation log, the bot can learn from a chat log in context when learning is enabled. What you want to load is a response list, which is a list of question/response pairs with additional info like keywords, labels, etc.

The issue is the test GUI that you are using loads files as chat logs, not as response lists.
To fix the issue in the BotFrame class change the following line of code,

1
2
3
getBot().awareness().getSense(TextEntry.class).loadChatFile(file, "Chat Log", "", true, false);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

to,

1
2
3
getBot().awareness().getSense(TextEntry.class).loadChatFile(file, "Response List", "", false, true);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The test GUI is just used for testing, so kind of out of date in places. If you would like to updated the UI please feel free to join the project on GitHub.


Id: 12125947
发布: Feb 12 2016, 14:14
更新: Feb 12 2016, 14:15
答复: 0
的风景: 5253, 今天: 1, 周: 4, 一个月: 18
0 2 2.0/5