I need to train a custom document classifier though Document AI API, but I couldn't finding anything related in the documentation or code samples. In particular, I was able to define a new custom processor but I don't know how to define my training and test sets.
The code sample closer to what I need is this: Train a processor version. It uses the class documentai.BatchDocumentsInputConfig to define training and test set, but I don't understand how I can use it to associate a label with my documents on Cloud Storage.
I suspect that this functionality is not available via API. Can you help me? Thanks