Document AI generates evaluation metrics, such as precision and recall, to help you determine the predictive performance of your processors.
These evaluation metrics are generated by comparing the entities returned by the processor (the predictions) against the annotations in the test documents. If your processor does not have a test set, then you must first create a dataset and label the test documents.
Run an evaluation
An evaluation is automatically run whenever you train or uptrain a processor version.
You can also manually run an evaluation. This is required to generate updated metrics after you've modified the test set, or if you are evaluating a pretrained processor version.
Web UI
In the Google Cloud console, go to the Processors page and choose your processor.
In the Evaluate & Test tab, select the Version of the processor to evaluate and then click Run new evaluation.
Once complete, the page contains evaluation metrics for all labels and for each individual label.
Python
For more information, see the Document AI Python API reference documentation.
To authenticate to Document AI, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.