Full name: projects.locations.processors.processorVersions.train
Trains a new processor version. Operation metadata is returned as TrainProcessorVersionMetadata
.
HTTP request
POST https://{endpoint}/v1/{parent}/processorVersions:train
Where {endpoint}
is one of the supported service endpoints.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent (project, location and processor) to create the new version for. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "processorVersion": { object ( |
Fields | |
---|---|
processorVersion |
Required. The processor version to be created. Authorization requires the following IAM permission on the specified resource
|
documentSchema |
Optional. The schema the processor version will be trained with. |
inputData |
Optional. The input data used to train the |
baseProcessorVersion |
Optional. The processor version to use as a base for training. This processor version must be a child of |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
documentai.processorVersions.create
For more information, see the IAM documentation.
InputData
The input data used to train a new ProcessorVersion
.
JSON representation |
---|
{ "trainingDocuments": { object ( |
Fields | |
---|---|
trainingDocuments |
The documents used for training the new version. |
testDocuments |
The documents used for testing the trained version. |