从发票解析器Google文档AI处理器中获取检测到的字段列表

发布于 2025-02-06 09:28:17 字数 1118 浏览 3 评论 0 原文

发票解析器文档列出了该处理器试图在文档中找到的字段。

我只对发票处理器中的某些字段感兴趣,是否有一种方法可以获取字段列表并请求处理器到找到一组选定的字段的数据点?

例如,我只对Invoice_Date和Invoice_ID感兴趣。因此,处理器只为我找到这两个领域,并且不会浪费时间找到其他领域。

我找到了一个检索处理器的详细信息但没有获得现场列表的端点。 https://cloud.google。 com/document-ai/docs/reference/reth/v1beta3/projects.locations.locates.locessers/get

此过程端点没有任何指定我感兴趣的字段。 https://cloud.google。 com/document-ai/docs/reference/rest/v1beta3/projects.locations.locates.processors/process

我的研究表明此功能不存在,希望有人告诉我我错了。

Invoice Parser documentation lists the fields that this processor attempts to find in a document.
https://cloud.google.com/document-ai/docs/processors-list?hl=en_US#processor_invoice-processor

I am only interested in some of the fields in the Invoice processor, is there a way to get the list of fields and request the processor to find the data points for a selected set of fields?

E.g. I am only interested in invoice_date and invoice_id. So, the processor only finds these two fields for me and does not waste its time finding others.

I found an endpoint that retrieves the processor's details but it does not get the field list.
https://cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/get

This process endpoint does not have anything to specify the fields that I am interested in.
https://cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/process

My research indicates that this feature does not exist, hoping someone tells me that I am wrong.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何止钟意 2025-02-13 09:28:17

目前,不可能限制专用处理器提取的特定实体。处理器将始终处理整个文档,并提取可以找到的所有内容。

但是,最近将一个新参数添加到 process REST API中的方法可以提供 field> fieldmask 限制将在文档 对象。对于%20more%20个信息。-,field_mask, - %3A%20spifies%20%20 fields“ rel =“ nofollow noreferrer”>用于制作处理请求的方法指南当前,这仅适用于REST API (不是客户库)和在线处理。

这并不是您要寻找的,但是它可以大大限制 文档 响应如果您不需要 content> content

Currently, it's not possible to limit the specific entities that are extracted by a specialized processor. The processor will always processes the entire document and extract everything it can find.

However, a new parameter has recently been added to the process method in the REST API that lets you provide a fieldMask to limit the fields that will be returned in the Document object. This has also been added to the How-to Guide for making a processing request. Currently, this only works for the REST API (not client libraries) and online processing.

This isn't exactly what you're looking for, but it can significantly limit the size of the Document response if you don't need fields like content

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文