当我尝试导出具有预构建实体的LUIS模型时,预构建的实体不会在话语中注释。我得到以下JSON有效负载作为对Export Model API
的响应{
"luis_schema_version": "2.1.0",
"versionId": "0.1",
"name": "SampleApp",
"desc": "",
"culture": "en-us",
"intents": [
{
"name": "None"
},
{
"name": "testintent"
}
],
"entities": [],
"composites": [],
"closedLists": [],
"bing_entities": [
"age",
"datetimeV2",
"email",
"number",
"url"
],
"model_features": [],
"regex_features": [],
"utterances": [
{
"text": "i want to go to beach tomorrow",
"intent": "testintent",
"entities": []
},
{
"text": "my age is 22 years old",
"intent": "testintent",
"entities": []
},
{
"text": "a is 5 % to less compared to b",
"intent": "testintent",
"entities": []
}
]
}
这里以“ 我想明天去海滩 ”为例说明。我明天标记为DateTime.V2
实体。但是在导出的模型中,与带注释的实体相比,DateTime.V2
实体将作为空白JSON数组出现。
这是我的实体视图
以下是导出模型的GET请求:
https://westus.api.cognitive.microsoft.com/luis/api/v2.0/apps/ced3182d-12bb-4961-a163-63dff5cdf47a/versions/0.1/export
接头: Ocp-Apim-Subscription-Key - a182de82cd23473a96682e09ceb56536
有人可以告诉我原因吗? 有没有办法以下列方式获取带注释的预建实体:
{
"text": "i want to go to beach tomorrow",
"intent": "testintent",
"entities": [
{
"entity": "builtin.datetime.v2",
"startPos": 22,
"endPos": 29
}
]
}