Training
Create training request
Changed onStarts training on a field and returns the request id.
The start and end locations refer to the positions of the first and last characters of an example text span that the model should learn to extract. The character positions must be given in terms of Zuva's OCR representation of the document, which can be obtained from the GET OCR layouts endpoint.
post/fields/{field_id}/train
Request
- Base URLhttps://us.app.zuva.ai/api/v2
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
field_idstring required
Field ID
Request body
Example request
[
{
"locations": [
{
"end": 456,
"start": 123
}
]
}
]Response
The status of the training request
Example response
{
"error": {
"error": {
"code": "http-error",
"message": "Something went wrong, please try again later."
}
},
"field_id": "12345678-1234-1234-1234-123456789012",
"request_id": "c5e463f1qk154j5e3sjg",
"status": "complete",
"span_issues": [
{
"file_id": "cdcpbqd9j3v1l06vsds0",
"span_problems": [
{
"issue_type": "Invalid Span"
}
]
}
]
}Changes
- info
added the optional property
to the response with the status
- info
- breaking
the
/request property type changed fromstringtoarray
- breaking