My goal is to send the document along with the tag values so that the documentai model can be trained by analyzing the data, I am able to send the json but when importing in model to train it generates an error:
"status": {
"code": 3,
"message": "Request contains an invalid argument."
}
The structure of my json file is similar to this:
{
"mimeType": "application\/pdf",
"content": "XXXXX",
"entities": [
{
"type": "supplier_name",
"mentionText": "",
"confidence": 1
},
{
"type": "supplier_tax_id",
"mentionText": "",
"confidence": 1
},
{
"type": "total_amount",
"mentionText": "24.09",
"confidence": 1
},
{
"type": "receiver_name",
"mentionText": "Dani SA",
"confidence": 1
},
{
"type": "receiver_tax_id",
"mentionText": "A22172389",
"confidence": 1
},
{
"type": "invoice_id",
"mentionText": "",
"confidence": 1
},
{
"type": "invoice_date",
"mentionText": "2024-04-24",
"confidence": 1
},
{
"type": "vat\/amount",
"mentionText": "8.0300",
"confidence": 1
},
{
"type": "vat\/tax_rate",
"mentionText": "21.0000",
"confidence": 1
},
{
"type": "vat\/tax_amount",
"mentionText": "1.6900",
"confidence": 1
},
{
"type": "vat\/amount",
"mentionText": "13.0600",
"confidence": 1
},
{
"type": "vat\/tax_rate",
"mentionText": "10.0000",
"confidence": 1
},
{
"type": "vat\/tax_amount",
"mentionText": "1.3100",
"confidence": 1
},
{
"type": "vat\/amount",
"mentionText": null,
"confidence": 1
},
{
"type": "vat\/tax_rate",
"mentionText": null,
"confidence": 1
},
{
"type": "vat\/tax_amount",
"mentionText": null,
"confidence": 1
}
]
}
Hi,
I have a similary need, do you manage to build the json ?
thanks.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |