【问题标题】:Adding parameters to the POST Analyze method将参数添加到 POST 分析方法
【发布时间】:2019-09-14 06:05:39
【问题描述】:

https://westus2.dev.cognitive.microsoft.com/docs/services/form-recognizer-api/operations/AnalyzeWithCustomModel

在上述文档中有以下 URL,这意味着您应该能够分析表单的特定键值

https://{endpoint}/formrecognizer/v1.0-preview/custom/models/{id}/analyze[?keys]

我已经训练了自己的模型,当我使用 Get Keys 方法时,这就是返回的内容...

{"clusters":{"0":["House Name","Mobile Number","Name","Phone Number","Postcode","Street","Sumame","Town Name","e-Mail Address (required)"]}}

在我看来,我应该能够针对其中任何一个关键值执行该帖子。所以....

https://{endpoint}/formrecognizer/v1.0-preview/custom/models/{id}/analyze?keys=Name

应该撤回与 Name 键关联的任何值(并且有一个值),但我得到了 200 成功并且没有可用的信息。

"status": "success",
"pages": [
    {
        "number": 1,
        "height": 756,
        "width": 471,
        "clusterId": null,
        "keyValuePairs": [],
        "tables": []
    }
],
"errors": []
}

我想我误解了如何正确地做到这一点

【问题讨论】:

  • 解决方案是我使用了错误的表格进行分析。

标签: microsoft-cognitive form-recognizer


【解决方案1】:

当您尝试不带查询参数“keys”的 /analyze 调用时,您是否能够看到键和关联的值?

【讨论】:

  • 我得到的所有键值对都以我认为合适的方式返回。
猜你喜欢
  • 2021-08-02
  • 1970-01-01
  • 2015-12-15
  • 2021-09-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多