Google Document AI训练失败:不存在字段及数据集标注异常报错
Google Document AI训练报错:无效文档(num_field不存在)与数据集标注计数不符
我正在使用Google Document AI训练一款新的文档处理器,现有16份训练文档和10份测试文档,完全符合谷歌规定的最低要求。但尝试训练时持续出现两类错误:
- 提示不存在的输入类型:无效文档错误提及
num_field,但我的schema中并无该字段; - 数据集错误:显示仅8份带标注文档,与实际所有文档均已正确标注的情况不符。
已尝试4次训练,均出现相同模糊报错,寻求解决方法。
无效文档错误示例
报错样本如下,错误引用了不存在的num_field字段:
"documentErrors": [ { "code": 3, "message": "Invalid document.", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "INVALID_DOCUMENT", "domain": "documentai.googleapis.com", "metadata": { "annotation_name": "product_inventory_result/reorder_point", "field_name": "entities.text_anchor.text_segments", "num_fields": "0", "num_fields_needed": "1", "document": "3ef767351034410f.json" } } ] } ]
无效数据集错误示例
错误显示仅8份带标注文档,与实际16份训练文档、10份测试文档均已标注的情况不符:
"datasetErrors": [ { "code": 3, "message": "Invalid dataset.", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "INVALID_DATASET", "domain": "documentai.googleapis.com", "metadata": { "num_documents_with_annotation": "8", "num_documents_required": "10", "annotation_name": "DOCUMENTS_WITH_ENTITIES" } } ] } ]
内容的提问来源于stack exchange,提问作者Doug Niccum
相关产品推荐
相关产品推荐

