Set the language in Form Recognizer API

Chuong Phung 60 Reputation points
2023-07-18T10:43:05.7866667+00:00

I start working with Form Recognizer API

Can you please confirm that can I specific language in my document before pushing it to Azure Form Recognizer API?
Currently, I'm using prebuilt model but I intend to use the custom model in my application

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

Accepted answer
  1. VasaviLankipalle-MSFT 17,641 Reputation points
    2023-07-18T21:07:39.3933333+00:00

    Hello @Chuong Phung , Thanks for using Microsoft Q&A Platform.

    The pre-built models in Form Recognizer support several languages. When using a pre-built model API, the language is automatically detected and extracted from the document. It is not necessary to define the locale as it is an optional parameter.

    If you intend to use a custom model, it is same. However, you can still set the locale (optional) request parameters to the appropriate language code, such as "en-US" for English (United States). This will ensure that the custom model is trained on documents in the language specified. I don't think adding locale in the document helps.

    Please refer to this documentation to add locale code and to request URL: https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-2022-08-31/operations/AnalyzeDocument

    We are unsure of the API version you were using, whereas we are referring to the API version 2022-08-31.

    Is this something you are looking for?

    I hope this helps.

    Regards,
    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.

    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.