You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/applied-ai-services/form-recognizer/quickstarts/try-v3-csharp-sdk.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,14 @@ manager: nitinme
7
7
ms.service: applied-ai-services
8
8
ms.subservice: forms-recognizer
9
9
ms.topic: quickstart
10
-
ms.date: 03/14/2022
10
+
ms.date: 03/16/2022
11
11
ms.author: lajanuar
12
12
recommendations: false
13
13
---
14
+
14
15
<!-- markdownlint-disable MD025 -->
16
+
<!-- markdownlint-disable MD036 -->
17
+
15
18
# Get started: Form Recognizer C# SDK v3.0 | Preview
16
19
17
20
>[!NOTE]
@@ -152,7 +155,7 @@ Analyze and extract text, tables, structure, key-value pairs, and named entities
152
155
> * We've added the file URI value to the `Uri fileUri` variable at the top of the script.
153
156
> * 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.
154
157
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:**
156
159
157
160
```csharp
158
161
usingAzure;
@@ -280,7 +283,7 @@ Extract text, selection marks, text styles, table structures, and bounding regio
280
283
> * We've added the file URI value to the `Uri fileUri` variable at the top of the script.
281
284
> * 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.
282
285
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:**
284
287
285
288
```csharp
286
289
usingAzure;
@@ -368,7 +371,6 @@ for (int i = 0; i < result.Tables.Count; i++)
368
371
369
372
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).
370
373
371
-
372
374
## Prebuilt model
373
375
374
376
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
383
385
> * 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.
384
386
> * 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.
385
387
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:**
387
389
388
390
```csharp
389
391
@@ -524,10 +526,7 @@ That's it, congratulations!
524
526
525
527
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.
526
528
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)
> [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