I am not able to use "prebuilt-tax.us.1040".

Muhammad 20 Reputation points
2024-09-11T20:32:47.5166667+00:00

I am using DocIntell4TaxForms form recognizer F0 tier from East US region. When i am trying to use that pre-train model using my python code:

poller = document_analysis_client.begin_analyze_document_from_url(
        "prebuilt-tax.us.1040", form_url)

it is throwing the following error

ResourceNotFoundError: (NotFound) Resource not found.
Code: NotFound
Message: Resource not found.
Inner error: {
    "code": "ModelNotFound",
    "message": "The requested model was not found."
}

How can i use these 1040 pretrain models and all its schedules as well

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,684 questions
{count} votes

Accepted answer
  1. navba-MSFT 24,795 Reputation points Microsoft Employee
    2024-09-12T05:37:12.7666667+00:00

    @Muhammad Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    .

    Please follow the below the below action plan:

    Plan 1:

    Public preview version 2024-07-31-preview is currently only available in the following Azure regions. Ensure that your resource is in below region:

    • East US
    • West US2
    • West Europe
    • North Central US

    .

    Plan 2:

    Ensure that you are using DocumentIntelligenceClient Python library and not form recognizer.

    User's image

    Please run the below command to install the right version of the Python library:

    pip install azure-ai-documentintelligence==1.0.0b4

    .

    Plan 3:

    Please update your sample code to the below and modify the model:

    https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/documentintelligence/azure-ai-documentintelligence/samples/sample_analyze_tax_us_w2.py

    User's image

    .

    Hope this helps.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.