I have trained Custom Model for Classification using Form Recogniser Studio. The model is trained successfully, now I need to consume the model using a python script.
I looked in the sdk documentation, I could not find an API that facilities consumption of Custom Classification Model, please help.
i have used this code to perform inferencing of
from azure.core.credentials import AzureKeyCredential
from azure.ai.formrecognizer import DocumentAnalysisClient
endpoint = os.environ["AZURE_FORM_RECOGNIZER_ENDPOINT"]
key = os.environ["AZURE_FORM_RECOGNIZER_KEY"]
classifier_id = os.getenv("CLASSIFIER_ID", classifier_id)
document_analysis_client = DocumentAnalysisClient(
endpoint=endpoint, credential=AzureKeyCredential(key)
)
with open(path_to_sample_documents, "rb") as f:
poller = document_analysis_client.begin_analyze_document
(
model_id = model_id, document=f
)
result = poller.result()
print("----Classified documents----")
But i get this error
ResourceNotFoundError: (404) Resource not found Code: 404 Message: Resource not found
I looked in the sdk documentation, I could not find an API that facilities consumption of Custom Classification Model, please help.