【发布时间】:2021-11-12 10:30:33
【问题描述】:
我正在尝试使用 v3 preview 构建表单识别器自定义模型,使用示例代码:
Uri trainingFileUri = new Uri(sasToken);
var client = new DocumentModelAdministrationClient(
new Uri(endpoint), new
AzureKeyCredential(apiKey));
BuildModelOperation operation = await client.StartBuildModelAsync(trainingFileUri);
Response<DocumentModel> operationResponse = await operation.WaitForCompletionAsync();
sas 令牌用于包含 20 个 pdf 文件的 Blob 容器。当我运行时出现错误
状态:200(正常) 错误代码:无效请求
附加信息: AdditionInformation: InvalidRequest: 无效请求。
详情: ModelBuildError:无法构建模型:找不到任何用于训练的 OCR 文件。
原始:
{ "code": "无效请求", "message": "无效请求。", “细节”: [ { "code": "ModelBuildError", “消息”:“无法构建模型:找不到任何 OCR 文件进行训练。” } ] }
SAS 令牌有读、写、列出等权限,所以我不知道为什么客户端找不到任何要训练的文档。有什么想法吗?
【问题讨论】:
标签: .net sdk ocr form-recognizer azure-form-recognizer