我创建了一个自定义模型,并且在“文档”下的JSON输出中可以很好地奏效,它为我标记的字段提供了所有数据点,以及我标记的动态类型表的所有数据点。
问题是C#SDK的“结果”,不像上面的JSON输出一样,使用相同的模型和示例包含表数据。
AnalyzeDocumentOperation operation = await client.StartAnalyzeDocumentAsync(modelID, streamContent);
await operation.WaitForCompletionAsync();
AnalyzeResult result = operation.Value;
可以在下面看到它可以抓住没有问题的字段
但是,如果您查看下面的次数为空的,则与JSON数据不同,该数据在数组中具有所有数据点。
我如何访问数据?
谢谢。
I created a custom model and it works well in the Form Recognizer Studio, in the JSON output under the "Document" it gives all the data points for the Fields I tagged and also all the data points for the Dynamic type Table I tagged.

The issue is the "result" from the C# SDK does not contain the Table data like the JSON output above, using the same model and sample.
AnalyzeDocumentOperation operation = await client.StartAnalyzeDocumentAsync(modelID, streamContent);
await operation.WaitForCompletionAsync();
AnalyzeResult result = operation.Value;
Can see below it grabs the Fields without issue

but if you look at the TimeSheetDynamic below it is empty, unlike the JSON data which has all the data points in an array.

How do I access the data?
Thanks.
发布评论
评论(2)
您正在使用什么版本?需要使用的API版本为2.1及以上,以获取要识别的动态内容。
What version are you using? The API version needed to use is 2.1 and above to get the dynamic content to be recognized.
https://learn.microsoft.com/en-us/azure/applied-ai-services/form-recognizer/whats-new?tabs=csharp
我遵循下面的GitHub样本访问非公共成员。感谢Vinod的样本。
I followed the GitHub sample below to access the non-public members. Thanks Vinod for the sample.
Sample Code GitHub Link