Azure-docs: the tutorial and code sample should be updated to avoid errors and confusion.

Created on 14 Jul 2020  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

Hi,

I started with the problems in this thread on msdn: https://social.msdn.microsoft.com/Forums/en-US/57296376-86c7-46af-9004-6d8cc5c6906c/i-am-trying-to-use-sample-code-on-microsoft-documents-for-form-recognizer-but-it-has-so-many-errors?forum=Offtopic

in the beginning, I suspected that it was just a missing package, but when I started I found that the organization is confusing, also there is no explicit instruction that informs the learner that he must install Azure.Ai.FormRecognizer, at certain parts the parameters passed to the methods needs to be converted for example from Guid to string, I'll work on it today and give you more details about the errors and how to resolve them.

[Enter feedback here]


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 cognitive-servicesvc cxp doc-enhancement forms-recognizesubsvc triaged

Most helpful comment

@mouadcherkaoui we'll review your feedback and get back to you shortly. Thanks.

All 4 comments

@mouadcherkaoui we'll review your feedback and get back to you shortly. Thanks.

thank you,
here is a version that builds correctly, but didn't test it yet at runtime:
https://github.com/mouadcherkaoui/AzureAIFormRecognizer

for example here:

https://github.com/mouadcherkaoui/AzureAIFormRecognizer/blob/master/Program.cs#L169
https://github.com/mouadcherkaoui/AzureAIFormRecognizer/blob/master/Program.cs#L196
https://github.com/mouadcherkaoui/AzureAIFormRecognizer/blob/master/Program.cs#L249

I found that the first argument in the sample is of FormRecognizerClient, but the methods are those of FormTrainingClient, I'll try to test execution and to add comments to the other parts.

Best regards.
Thank you!

@mouadcherkaoui the document does provide instructions for installing the client library.

image

Ok! then the right version is the preview.3!
perfect,
Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paulmarshall picture paulmarshall  Â·  3Comments

Favna picture Favna  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments