andelf / andelf/PyAIML

kernel.bootstrap(learnFiles="std-startup.xml", commands="你好")

Đang mở
#5 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
346
Fork
170
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.