kernel.bootstrap(learnFiles="std-startup.xml", commands="你好")
- Dominant language
- Python
- Stars
- 346
- Forks
- 170
- PR merge metrics
- No merged PRs in 30d
Description
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)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.