Skip to content

Commit 837800a

Browse files
authored
Merge pull request #191926 from laujan/1925568-single-script-java
1925568 single script java
2 parents 6d29110 + 9b13793 commit 837800a

File tree

3 files changed

+346
-331
lines changed

3 files changed

+346
-331
lines changed

articles/applied-ai-services/form-recognizer/quickstarts/try-v3-csharp-sdk.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ manager: nitinme
77
ms.service: applied-ai-services
88
ms.subservice: forms-recognizer
99
ms.topic: quickstart
10-
ms.date: 03/14/2022
10+
ms.date: 03/16/2022
1111
ms.author: lajanuar
1212
recommendations: false
1313
---
14+
1415
<!-- markdownlint-disable MD025 -->
16+
<!-- markdownlint-disable MD036 -->
17+
1518
# Get started: Form Recognizer C# SDK v3.0 | Preview
1619

1720
>[!NOTE]
@@ -152,7 +155,7 @@ Analyze and extract text, tables, structure, key-value pairs, and named entities
152155
> * We've added the file URI value to the `Uri fileUri` variable at the top of the script.
153156
> * For simplicity, all the entity fields that the service returns are not shown here. To see the list of all supported fields and corresponding types, see the [General document](../concept-general-document.md#named-entity-recognition-ner-categories) concept page.
154157
155-
**Add the following code sample to the Program.cs file:**
158+
**Add the following code sample to the Program.cs file. Make sure you update the key and endpoint variables with values from your Form Recognizer instance in the Azure portal:**
156159

157160
```csharp
158161
using Azure;
@@ -280,7 +283,7 @@ Extract text, selection marks, text styles, table structures, and bounding regio
280283
> * We've added the file URI value to the `Uri fileUri` variable at the top of the script.
281284
> * To extract the layout from a given file at a URI, use the `StartAnalyzeDocumentFromUri` method and pass `prebuilt-layout` as the model ID. The returned value is an `AnalyzeResult` object containing data from the submitted document.
282285
283-
**Add the following code sample to the Program.cs file:**
286+
**Add the following code sample to the Program.cs file. Make sure you update the key and endpoint variables with values from your Form Recognizer instance in the Azure portal:**
284287

285288
```csharp
286289
using Azure;
@@ -368,7 +371,6 @@ for (int i = 0; i < result.Tables.Count; i++)
368371

369372
Visit the Azure samples repository on GitHub to view the [layout model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/v3-csharp-sdk-layout-output.md).
370373

371-
372374
## Prebuilt model
373375

374376
Analyze and extract common fields from specific document types using a prebuilt model. In this example, we'll analyze an invoice using the **prebuilt-invoice** model.
@@ -383,7 +385,7 @@ Analyze and extract common fields from specific document types using a prebuilt
383385
> * To analyze a given file at a URI, use the `StartAnalyzeDocumentFromUri` method and pass `prebuilt-invoice` as the model ID. The returned value is an `AnalyzeResult` object containing data from the submitted document.
384386
> * For simplicity, all the key-value pairs that the service returns are not shown here. To see the list of all supported fields and corresponding types, see our [Invoice](../concept-invoice.md#field-extraction) concept page.
385387
386-
**Add the following code sample to your Program.cs file:**
388+
**Add the following code sample to your Program.cs file. Make sure you update the key and endpoint variables with values from your Form Recognizer instance in the Azure portal:**
387389

388390
```csharp
389391

@@ -524,10 +526,7 @@ That's it, congratulations!
524526

525527
In this quickstart, you used the Form Recognizer C# SDK to analyze various forms and documents in different ways. Next, explore the reference documentation to learn about Form Recognizer API in more depth.
526528

527-
## Next steps
528-
529-
> [!div class="nextstepaction"]
530-
> [REST API v3.0 reference documentation](https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v3-0-preview-1/operations/AnalyzeDocument)
529+
## Next step
531530

532531
> [!div class="nextstepaction"]
533-
> [Form Recognizer C#/.NET reference library](/dotnet/api/overview/azure/ai.formrecognizer-readme?view=azure-dotnet&preserve-view=true)
532+
> [Learn more about Form Recognizer REST API v3.0](https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v3-0-preview-2/operations/AnalyzeDocument)

0 commit comments

Comments
 (0)