Merge pull request #116 from xulouzhe/patch-1

一个文档描述的小错误
This commit is contained in:
Richard Chien 2019-12-23 15:29:12 +08:00 committed by GitHub
commit a4a3368e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,6 +203,7 @@ async def _(session: NLPSession):
if word.flag == 'ns': if word.flag == 'ns':
# ns 词性表示地名 # ns 词性表示地名
city = word.word city = word.word
break
# 返回意图命令,前两个参数必填,分别表示置信度和意图命令名 # 返回意图命令,前两个参数必填,分别表示置信度和意图命令名
return IntentCommand(90.0, 'weather', current_arg=city or '') return IntentCommand(90.0, 'weather', current_arg=city or '')