问题描述
我正在使用botium-cli 0.0.40,并且具有以下convo文件(AGE.convo.txt):
I am using botium-cli 0.0.40 and I have the following convo file (AGE.convo.txt):
#me
what is your age?
#bot
AGEA_UTT
还有一个语音文件(AGEA_UTT.utterances.txt):
There is also a utterance file (AGEA_UTT.utterances.txt):
AGEA_UTT
['I am $months months old.']
['I am $years years old.']
['I am 5 years old.']
答案:['我今年5岁。']它过去了。但是对于['我6岁。'],它会失败:
For an answer: ['I am 5 years old.'] it passes. But for ['I am 6 years old.'] it fails:
是错误吗?我必须更改任何Botium设置吗?维基没有提到任何需要:
Is it a bug? Do I have to change any Botium settings? The wiki doesn't mention any need for that: https://github.com/codeforequity-at/botium-core/wiki/Botium-Scripting#scripting-memory
在此先感谢。
推荐答案
您必须将 SCRIPTING_ENABLE_MEMORY 功能设置为 true 才能启用内存。
You have to set the SCRIPTING_ENABLE_MEMORY capability to true to enable the memory.
注意:您提到的内部版本还不允许以语音方式编写内存表达式脚本!这是计划在即将到来的星期一进行的下一个构建的一部分!
这篇关于脚本存储器与botium-cli上的语音不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!