脚本内存与 botium-cli 上的语句不匹配
Scripting memory not matching utterances on botium-cli
我正在使用 botium-cli 0.0.40 并且我有以下 convo 文件 (AGE.convo.txt):
#me
what is your age?
#bot
AGEA_UTT
还有一个语音文件(AGEA_UTT.utterances.txt):
AGEA_UTT
['I am $months months old.']
['I am $years years old.']
['I am 5 years old.']
答案:['I am 5 years old.'] 通过。但是对于 ['I am 6 years old.'] 它失败了:
TranscriptError: Error: convos/AGE.convo.txt: Expected bot response
(on Line 4: #me - what is your age? ) "['I am 6 years old.']" to
match one of "['I am $months months old.'],['I am $years years
old.'],['I am 5 years old.']"
这是一个错误吗?我必须更改任何 Botium 设置吗?维基没有提到任何需要:https://github.com/codeforequity-at/botium-core/wiki/Botium-Scripting#scripting-memory
提前致谢。
您必须将 SCRIPTING_ENABLE_MEMORY 功能设置为 true 才能启用内存。
注意:您提到的构建还不允许在话语中编写脚本记忆表达式!这是计划于下周一发布的下一个版本的一部分!
我正在使用 botium-cli 0.0.40 并且我有以下 convo 文件 (AGE.convo.txt):
#me
what is your age?
#bot
AGEA_UTT
还有一个语音文件(AGEA_UTT.utterances.txt):
AGEA_UTT
['I am $months months old.']
['I am $years years old.']
['I am 5 years old.']
答案:['I am 5 years old.'] 通过。但是对于 ['I am 6 years old.'] 它失败了:
TranscriptError: Error: convos/AGE.convo.txt: Expected bot response (on Line 4: #me - what is your age? ) "['I am 6 years old.']" to match one of "['I am $months months old.'],['I am $years years old.'],['I am 5 years old.']"
这是一个错误吗?我必须更改任何 Botium 设置吗?维基没有提到任何需要:https://github.com/codeforequity-at/botium-core/wiki/Botium-Scripting#scripting-memory
提前致谢。
您必须将 SCRIPTING_ENABLE_MEMORY 功能设置为 true 才能启用内存。
注意:您提到的构建还不允许在话语中编写脚本记忆表达式!这是计划于下周一发布的下一个版本的一部分!