我正在尝试将 BING SpellChecker 包含在我的 LUIS 应用程序中。它工作正常,但我想在运行时更改我当前 LuisService 的 bool SpellChecker。想法:仅当 LUIS 使用原始查询获得“无”意图并使用更改后的查询再次尝试时,才使用拼写检查器。
因此,我需要在运行时更改变量并发布新请求。这可能吗?
这是我的 LuisDialog 构造函数:
public BasicLuisDialog() : base(new LuisService(new LuisModelAttribute(
LUIS_appId,
LUIS_apiKey,
domain: LUIS_hostRegion
)
{
Verbose = true,
BingSpellCheckSubscriptionKey = BING_key,
SpellCheck = true
}))
{
}
谢谢你和最好的问候 Bahneby