Share via

Code for Classify a Document Using a Custom Extraction Model

Ho, Keith D 185 Reputation points
2024-02-13T21:08:30.3666667+00:00

I am currently trying to follow the code from this site to use my trained custom classifier model: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2_and_later/sample_classify_document.py Where can I find the classifier_id for my custom classification model?

Azure Document Intelligence in Foundry Tools

Answer accepted by question author

VasaviLankipalle-MSFT 18,741 Reputation points Moderator
2024-02-13T22:34:29.42+00:00

Hello @Ho, Keith D , Thanks for using Microsoft Q&A Platform.

The classifier_id is the name of the trained document classifier model in Azure document intelligence. Once you have successfully trained the model then, you can find the classifier_id for your trained document classifier under the Custom Classification model->Models->your model_name in the Document Intelligence Studio. Here in this screenshot the Classifier ID: test

CLASSIFIER_ID - the ID of your trained document classifier/model

User's image

Please note that Custom classification models are supported by v4.0:2023-10-31-preview and v3.1:2023-07-31 (GA) APIs.

I hope this helps.

Regards,

Vasavi

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

Was this answer helpful?

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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.