“"southeastasia" 不是有效的 LUIS 终结点。”
'"southeastasia" is not a valid LUIS endpoint.'
我正在尝试使用 SDK 4(在 .Net Framework 中,而不是 .Net Core 中)构建 LUIS Bot,但我无法添加我的 luis 服务。
我收到此错误:
System.ArgumentException: '"southeastasia" is not a valid LUIS
endpoint.'
这一行:
var app = new LuisApplication(luis.AppId, luis.SubscriptionKey, luis.Region);
我按照此处的 .bot 设置指南进行操作:https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/12.nlp-with-luis
我的端点是:https://southeastasia.api.cognitive.microsoft.com/luis/v2.0/apps/{LuisAppID}?subscription-key={LuisSubscriptionKey}&timezoneOffset=-360&q=
这是在我的 .bot 文件中:
{
"type": "luis",
"name": "LuisBot",
"id": "",
"appId": "{LuisAppID}",
"subscriptionKey": "{LuisSubscriptionKey}",
"version": "0.1",
"region": "southeastasia"
},
如果我对 LuisApplication() 使用空构造函数,然后设置 app.Endpoint = "southeastasia",之后就不会出现错误。接受 Endpoint 参数的 LuisApplication 构造函数会不会有问题?
V4 有一些变量改名了。在您的代码片段中,您有:
var app = new LuisApplication(luis.AppId, luis.SubscriptionKey, luis.Region);
LuisApplication 的新变量名和声明方式为:
var app = new LuisApplication(luis.AppId, luis.AuthoringKey, luis.GetEndpoint())
我正在尝试使用 SDK 4(在 .Net Framework 中,而不是 .Net Core 中)构建 LUIS Bot,但我无法添加我的 luis 服务。
我收到此错误:
System.ArgumentException: '"southeastasia" is not a valid LUIS endpoint.'
这一行:
var app = new LuisApplication(luis.AppId, luis.SubscriptionKey, luis.Region);
我按照此处的 .bot 设置指南进行操作:https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/12.nlp-with-luis
我的端点是:https://southeastasia.api.cognitive.microsoft.com/luis/v2.0/apps/{LuisAppID}?subscription-key={LuisSubscriptionKey}&timezoneOffset=-360&q=
这是在我的 .bot 文件中:
{
"type": "luis",
"name": "LuisBot",
"id": "",
"appId": "{LuisAppID}",
"subscriptionKey": "{LuisSubscriptionKey}",
"version": "0.1",
"region": "southeastasia"
},
如果我对 LuisApplication() 使用空构造函数,然后设置 app.Endpoint = "southeastasia",之后就不会出现错误。接受 Endpoint 参数的 LuisApplication 构造函数会不会有问题?
V4 有一些变量改名了。在您的代码片段中,您有:
var app = new LuisApplication(luis.AppId, luis.SubscriptionKey, luis.Region);
LuisApplication 的新变量名和声明方式为:
var app = new LuisApplication(luis.AppId, luis.AuthoringKey, luis.GetEndpoint())