Document AI Toolbox is an SDK for Python that provides utility functions for managing, manipulating, and extracting information from the document response. It creates a "wrapped" document object from JSON files in Cloud Storage, local JSON files, or output directly from the Document AI API.
The previous
if
condition was inefficient and should have been written with anand
This resulted in a performance gap.cProfile timing of
export_hocr_string()
on the same documentBefore
After
Fixes #312 🦕