kernel.bootstrap(learnFiles="std-startup.xml", commands="你好")
- 主要语言
- Python
- 星标
- 346
- 派生
- 170
- PR 合并指标
- 30 天内没有已合并 PR
描述
kernel.bootstrap方法不支持中文
Loading std-startup.xml... done (0.03 seconds)
WARNING: No match found for input: 你好
Kernel bootstrap completed in 0.03 seconds
Saving brain to bot_brain.brn... done (0.00 seconds)
简单处理:
```
if isinstance(commands, (list,)):
for command in commands:
command = command.decode(self._textEncoding)
cmds = Utils.sentences(command)
for cmd in cmds:
print self._respond(cmd, self._globalSessionID)
else:
commands = commands.decode(self._textEncoding)
cmds = Utils.sentences(commands)
for cmd in cmds:
print self._respond(cmd, self._globalSessionID)
```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。