0
votes

I generated the Model Id using From Recognizer Labeling too (The docker image). I am trying to use this same model id in From Recognizer API.

https://{endpoint}/formrecognizer/v1.0-preview/custom/models/{id}

but it say 404 .

https://centralus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api/operations/GetCustomModel

The below URL says we can use the generated model Id: https://docs.microsoft.com/en-us/azure/cognitive-services/form-recognizer/quickstarts/label-tool

Model ID - The ID of the model that was created and trained. Each training call creates a new model with its own ID. Copy this string to a secure location; you'll need it if you want to do prediction calls through the REST API.

2

2 Answers

2
votes

I have recently tried the form-recognizer API. Please use the below URL and test it in the Postman first.

https://{{endpoint}}/formrecognizer/v2.0-preview/custom/models/{{modelId}}

Replace endpoint and modelId with {{name of your form-recognizer-service}}.cognitiveservices.azure.com and your modelId respectively. Let me know if it works.

0
votes

When generating models using the Form Recognizer sample labeling tool you are generating Form Recognizer v2.0 (preview) models. To get those models status or analyze forms with those models please use the Form Recognizer v2.0-preivew API https://aka.ms/form-recognizer/api .