Skip to content

Commit

Permalink
Add Form recognizer migration guide (#24472)
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaity authored Oct 4, 2021
1 parent 15789cd commit 885c08d
Show file tree
Hide file tree
Showing 4 changed files with 666 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sdk/formrecognizer/azure-ai-formrecognizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ for (int i = 0; i < tables.size(); i++) {

### Manage your models
Manage the models in your Form Recognizer account.
<!-- embedme ./src/samples/java/com/azure/ai/formrecognizer/ReadmeSamples.java#L294-L323 -->
<!-- embedme ./src/samples/java/com/azure/ai/formrecognizer/ReadmeSamples.java#L364-L393 -->
```java
AtomicReference<String> modelId = new AtomicReference<>();

Expand Down Expand Up @@ -515,7 +515,7 @@ to provide an invalid file source URL an `HttpResponseException` would be raised
In the following code snippet, the error is handled
gracefully by catching the exception and display the additional information about the error.

<!-- embedme ./src/samples/java/com/azure/ai/formrecognizer/ReadmeSamples.java#L330-L334 -->
<!-- embedme ./src/samples/java/com/azure/ai/formrecognizer/ReadmeSamples.java#L400-L404 -->
```java
try {
documentAnalysisClient.beginAnalyzeDocumentFromUrl("prebuilt-receipt", "invalidSourceUrl");
Expand Down Expand Up @@ -554,7 +554,7 @@ These code samples show common scenario operations with the Azure Form Recognize
#### Async APIs
All the examples shown so far have been using synchronous APIs, but we provide full support for async APIs as well.
You'll need to use `DocumentAnalysisAsyncClient`
<!-- embedme ./src/samples/java/com/azure/ai/formrecognizer/ReadmeSamples.java#L341-L344 -->
<!-- embedme ./src/samples/java/com/azure/ai/formrecognizer/ReadmeSamples.java#L411-L414 -->
```java
DocumentAnalysisAsyncClient documentAnalysisAsyncClient = new DocumentAnalysisClientBuilder()
.credential(new AzureKeyCredential("{key}"))
Expand Down
Loading

0 comments on commit 885c08d

Please sign in to comment.