skip to Main Content

How do I save and later load Azure AnalyzeResult object in python?

I have generated document analysis result using, with open(pdf_path, "rb") as f: poller = document_intelligence_client_sections.begin_analyze_document( "prebuilt-layout", f.read(), content_type="application/pdf", output_content_format=ContentFormat.MARKDOWN, ) result = poller.result() type(section_layout) >> azure.ai.documentintelligence.models._models.AnalyzeResult # Want in this format! I have saved the result using ...as_dict() as follows,…

VIEW QUESTION

azure document intelligence API PRebuilt-layout with KeyValuePairs feature (C# SDK)

The following code is throwing an Invalid argument error on KeyValuePairs while keyValuePairs feature exists and is valid. Can you help explain? AnalyzeDocumentOperation operation = await client.AnalyzeDocumentFromUriAsync(WaitUntil.Completed, "prebuilt-layout", fileUri, new AnalyzeDocumentOptions() { Features = { DocumentAnalysisFeature.KeyValuePairs } }); Error message:…

VIEW QUESTION

Azure Form Recognizer – "TrainingContentMissing", Training data is missing: Could not find any training data at the given path

I am working with Form Recognizer in Python (version 3.2.1). I'm attempting to train a custom model with pdf's in Azure storage container, code and error below: document_model_admin_client = DocumentModelAdministrationClient(endpoint, credential) poller = await document_model_admin_client.begin_build_document_model( ModelBuildMode.TEMPLATE, blob_container_url="[PATH TO AZURE STORAGE…

VIEW QUESTION
Back To Top
Search