【问题标题】:Using Google Cloud Natural Language API with Healthcare Content将 Google Cloud Natural Language API 与医疗保健内容结合使用
【发布时间】:2021-10-08 04:37:24
【问题描述】:

我正在尝试将 Node.js SDK 用于自然语言 API (@google-cloud/language)。我可以按照the docs 成功分析字符串的实体。

我想做的是使用 Healthcare 自然语言 API 分析相同的字符串。这似乎应该只是语言客户端的标志或额外参数,但我根本找不到任何关于如何指定要使用的主题语言 API 的文档。

这可以在 SDK 中完成还是需要向healthcare.googleapis.com 发出原始请求?

【问题讨论】:

    标签: google-cloud-platform google-natural-language google-healthcare-api


    【解决方案1】:

    Cloud Healthcare API documentation reference 至少目前没有提及任何语言 API。

    所以你必须使用 REST/RPC 或者你可以提高 FR。目前尚不清楚如何为该产品执行此操作,但我确信应该通过上述文档页面上的“发送反馈”按钮来完成。

    无论如何,对于所有 Google 产品,语言 API(如提到的 Node.JS SDK)只是在底层使用 REST API 的便捷库。

    【讨论】:

      【解决方案2】:

      由于医疗文档的独特要求,Healthcare NLP API 与通用 NLP API 分开存在。

      您可以使用analyzeEntities API 方法分析实体

      curl -X POST https://healthcare.googleapis.com/v1beta1/{nlpService=projects/*/locations/*/services/nlp}:analyzeEntities \
      -d '{
        "documentContent": "<your doc here>"
      }'
      

      您可以找到documentation herehow to guide here

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2019-12-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-11-28
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多