无法将JSONL数据提供给AutoML NLP-实体提取

问题描述

因此,我正在尝试为AutoML实现实体提取,我是一个完整的初学者。我的CSV文件上传成功,但是未正确解析JSONL。我要去哪里错了?文件的起始行包含所有训练数据。我尚未在UI上添加注释。我在做什么错了?

PS:我用熊猫将其转换为JSONL

enter image description here

解决方法

您应该使用 textContent 键而不是 text_snippet。查看 AI Platform docsCloud Natural Language docs

我最近遇到了这个问题,因为我尝试使用为 Cloud Natural Language AutoML 定义的格式的 AI Platform 的 Natural Language。我最初没有意识到这些是单独的产品,并且具有不同的数据导入模式。

试试这个 JSONL 模式看看它是否有效。

{
    "textSegmentAnnotations": [
      {
        "startOffset":number,"endOffset":number,"displayName": "label"
      },...
    ],"textContent": "inline_text"|"textGcsUri": "gcs_uri_to_file","dataItemResourceLabels": {
      "aiplatform.googleapis.com/ml_use": "training|test|validation"
    }
}

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...