mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-28 16:51:26 +00:00
Add mojo_weixin adapter
This commit is contained in:
@ -19,7 +19,7 @@ def as_processor(keywords=None):
|
||||
|
||||
def parse_potential_commands(sentence):
|
||||
segmentation = list(jieba.posseg.cut(sentence=sentence))
|
||||
print('分词结果:', ['[' + s.flag + ']' + s.word for s in segmentation])
|
||||
print('分词结果:', ' '.join(['[' + s.flag + ']' + s.word for s in segmentation]))
|
||||
potential_commands = []
|
||||
for processor in _processors:
|
||||
processed = False
|
||||
|
Reference in New Issue
Block a user