Fix docs bug

This commit is contained in:
Richard Chien 2019-12-23 15:33:44 +08:00
parent a4a3368e03
commit eeb7667658
5 changed files with 5 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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