An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
@CzarR Thanks for the question, Can you try using the begin_analyze_document() in this case with a valid path to the file.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I have been trying to read a pdf file using formrecognizer using python/pyspark inside databricks notebook. I need help with reading the file syntax is only letting read file inside a url. When I try to pass the adls path I get "no such file or directory" error in this line " poller = document_analysis_client.begin_analyze_document_from_url("prebuilt-layout", formUrl)". Please help. Thanks in advance.
import os
from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer import DocumentAnalysisClient
endpoint = "endpoint"
key = "key"
formUrl = "file:\\dev-app\data\zPathology.pdf"
document_analysis_client = DocumentAnalysisClient(
endpoint=endpoint, credential=AzureKeyCredential(key)
)
poller = document_analysis_client.begin_analyze_document_from_url("prebuilt-layout", formUrl)
result = poller.result()
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.