How do i call Custom classification model from java sdk

Jesper J 31 Reputation points
2023-06-05T13:44:20.3366667+00:00

How do i call my classification model from java sdk?
User's image

i set the model id to "general-invoice-templates-1" but get this error:
15:32:43.041 [main] ERROR com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient - Status code 404, "{"error":{"code":"NotFound","message":"Resource not found.","innererror":{"code":"ModelNotFound","message":"The requested model was not found."}}}"

using maven dependency:

<dependency>    
	<groupId>com.azure</groupId>
    <artifactId>azure-ai-formrecognizer</artifactId>
    <version>4.1.0-beta.2</version>
</dependency>
Azure AI Document Intelligence
{count} votes

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.