简体   繁体   English

是否有预定义的对话聊天库?

[英]Is there a pre-defined library of conversations for chatscript?

I'm building a bot with chatscript and there is a lot to give it as far as what it can say and what it will react to. 我正在用聊天脚本构建一个机器人,它可以说什么,以及它将如何响应,有很多东西可以给它。 I've googled a lot but there doesn't seem to be much documentation or sources for chatscript. 我在Google上搜索了很多,但是似乎没有太多的文档或聊天记录的来源。 Does anyone know of a library of predefined common conversations to use as a starting point? 有人知道预定义的普通对话库可以用作起点吗? I know the demo comes with one talking about childhood, but that doesn't seem like it'd be a common conversation with a bot. 我知道演示中附带了一个关于童年的话题,但这似乎与机器人无关。

While the narrative given is quite simple, the quibble code that comes with CS is quite extensive. 尽管给出的叙述非常简单,但CS随附的quiqui代码却相当广泛。 Also, most of the example program actually reside in yourchatscriptdir/RAWDATA/QUIBBLES 另外,大多数示例程序实际上都位于yourchatscriptdir/RAWDATA/QUIBBLES

This is exactly what you seem to be after: thousands of lines of fast answers for back and forth. 这正是您似乎要遵循的:成千上万行快速答案来回。

To include it into your build, - first add RAWDATA/QUIBBLE/ to your build file (typically file1.txt or botname.txt ) - include the following code somewhere near the end of your simple_control.top file 要将其包含在构建中,-首先将RAWDATA/QUIBBLE/添加到构建文件(通常是file1.txtbotname.txt )中-在simple_control.top文件末尾附近添加以下代码

if (%response == 0) {
 ^respond(~QUIBBLE_ALL)
}

Since the ~QUIBBLE_ALL topic will be included when you build your bot, any input that did not generate an output up to that point will respond from the quibble code. 由于在构建机器人时将包括~QUIBBLE_ALL主题,因此,直到此时仍未生成输出的任何输入都将通过~QUIBBLE_ALL代码进行响应。

Also, refer to the doc https://github.com/bwilcox-1234/ChatScript/tree/master/WIKI 另外,请参阅文档https://github.com/bwilcox-1234/ChatScript/tree/master/WIKI

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM