diff --git a/docs/guide/code/awesome-bot-3/awesome/plugins/weather/__init__.py b/docs/guide/code/awesome-bot-3/awesome/plugins/weather/__init__.py index 66802c13..9de9a0f4 100644 --- a/docs/guide/code/awesome-bot-3/awesome/plugins/weather/__init__.py +++ b/docs/guide/code/awesome-bot-3/awesome/plugins/weather/__init__.py @@ -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 '') diff --git a/docs/guide/code/awesome-bot-4/awesome/plugins/weather/__init__.py b/docs/guide/code/awesome-bot-4/awesome/plugins/weather/__init__.py index 66802c13..9de9a0f4 100644 --- a/docs/guide/code/awesome-bot-4/awesome/plugins/weather/__init__.py +++ b/docs/guide/code/awesome-bot-4/awesome/plugins/weather/__init__.py @@ -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 '') diff --git a/docs/guide/code/awesome-bot-5/awesome/plugins/weather/__init__.py b/docs/guide/code/awesome-bot-5/awesome/plugins/weather/__init__.py index 66802c13..9de9a0f4 100644 --- a/docs/guide/code/awesome-bot-5/awesome/plugins/weather/__init__.py +++ b/docs/guide/code/awesome-bot-5/awesome/plugins/weather/__init__.py @@ -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 '') diff --git a/docs/guide/code/awesome-bot-6/awesome/plugins/weather/__init__.py b/docs/guide/code/awesome-bot-6/awesome/plugins/weather/__init__.py index 66802c13..9de9a0f4 100644 --- a/docs/guide/code/awesome-bot-6/awesome/plugins/weather/__init__.py +++ b/docs/guide/code/awesome-bot-6/awesome/plugins/weather/__init__.py @@ -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 '') diff --git a/docs/guide/code/awesome-bot-7/awesome/plugins/weather/__init__.py b/docs/guide/code/awesome-bot-7/awesome/plugins/weather/__init__.py index 45563ec6..62623419 100644 --- a/docs/guide/code/awesome-bot-7/awesome/plugins/weather/__init__.py +++ b/docs/guide/code/awesome-bot-7/awesome/plugins/weather/__init__.py @@ -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 '')