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/ai-services/document-intelligence/how-to-guides/includes/set-environment-variables.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Environment variables in Windows aren't case-sensitive. They're typically declar
39
39
setx DI_ENDPOINT <yourEndpoint>
40
40
```
41
41
42
-
1.After you set your environment variables, close the Command Prompt window. The values remain modified until you change them again.
42
+
1.Close the Command Prompt window after you set your environment variables. The values remain until you change them again.
43
43
44
44
1. Restart any running programs that read the environment variable. For example, if you're using Visual Studio or Visual Studio Code as your editor, restart before running the sample code.
45
45
@@ -80,9 +80,9 @@ To set an environment variable permanently, place an export command in your Bash
80
80
81
81
Example: `export DI_KEY="<yourKey>"`
82
82
83
-
1. Save your changes to the *.bash_profile* file.
83
+
1. Save your changes to the *bash_profile* file.
84
84
85
-
1. Run the following command from your terminal window to make the changes effective:
85
+
1. To make the changes effective, run the following command from your terminal window:
86
86
87
87
```bash
88
88
source~/.bash-profile
@@ -127,7 +127,7 @@ To set an environment variable permanently, place an export command in your Bash
127
127
128
128
1. Save your changes to the *.bashrc* file.
129
129
130
-
1. Run the following command from your terminal window to make the changes effective:
130
+
1. To make the changes effective, run the following command from your terminal window:
1. Delete the pre-existing code, including the line `Console.Writeline("Hello World!")`.
100
100
101
-
1. Select one of the following code samples to copy and paste into your application's *Program.cs* file:
101
+
1. Select one of the following code samples and copy/paste into your application's *Program.cs* file:
102
102
103
103
-[prebuilt-read](#use-the-read-model)
104
104
-[prebuilt-layout](#use-the-layout-model)
@@ -178,7 +178,7 @@ foreach (DocumentLanguage language in result.Languages)
178
178
> [!div class="nextstepaction"]
179
179
<!-- > [I ​ran into an issue when running the application.](https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=csharp&Product=FormRecognizer&Page=how-to&Section=run-read) -->
180
180
181
-
Visit the Azure samples repository on GitHub to view the [read model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/read-model-output.md).
181
+
Visit the Azure samples repository on GitHub and view the [`read` model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/read-model-output.md).
182
182
183
183
## Use the Layout model
184
184
@@ -276,7 +276,7 @@ for (int i = 0; i < result.Tables.Count; i++)
276
276
277
277
```
278
278
279
-
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/how-to-guide/layout-model-output.md).
279
+
Visit the Azure samples repository on GitHub and view the [layout model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/layout-model-output.md).
280
280
281
281
## Use the General document model
282
282
@@ -376,7 +376,7 @@ for (int i = 0; i < result.Tables.Count; i++)
376
376
377
377
```
378
378
379
-
Visit the Azure samples repository on GitHub to view the [general document model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/general-document-model-output.md).
379
+
Visit the Azure samples repository on GitHub and view the [general document model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/general-document-model-output.md).
380
380
381
381
## Use the W-2 tax model
382
382
@@ -488,7 +488,7 @@ for (int i = 0; i < result.Documents.Count; i++)
488
488
}
489
489
```
490
490
491
-
Visit the Azure samples repository on GitHub to view the [W-2 tax model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/w2-tax-model-output.md).
491
+
Visit the Azure samples repository on GitHub and view the [W-2 tax model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/w2-tax-model-output.md).
492
492
493
493
## Use the Invoice model
494
494
@@ -598,7 +598,7 @@ for (int i = 0; i < result.Documents.Count; i++)
598
598
}
599
599
```
600
600
601
-
Visit the Azure samples repository on GitHub to view the [invoice model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/general-document-model-output.md).
601
+
Visit the Azure samples repository on GitHub and view the [invoice model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/general-document-model-output.md).
602
602
603
603
## Use the Receipt model
604
604
@@ -691,7 +691,7 @@ foreach (AnalyzedDocument receipt in receipts.Documents)
691
691
692
692
```
693
693
694
-
Visit the Azure samples repository on GitHub to view the [receipt model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/receipt-model-output.md).
694
+
Visit the Azure samples repository on GitHub and view the [receipt model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/receipt-model-output.md).
695
695
696
696
## ID document model
697
697
@@ -799,7 +799,7 @@ if (identityDocument.Fields.TryGetValue("Sex", out DocumentField sexfield))
799
799
800
800
```
801
801
802
-
Visit the Azure samples repository on GitHub to view the [id-document model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/id-document-model-output.md).
802
+
Visit the Azure samples repository on GitHub and view the [id-document model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/id-document-model-output.md).
803
803
804
804
## Use the Business card model
805
805
@@ -1005,4 +1005,4 @@ foreach (AnalyzedDocument businessCard in businessCards.Documents)
1005
1005
1006
1006
```
1007
1007
1008
-
Visit the Azure samples repository on GitHub to view the [business card model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/business-card-model-output.md).
1008
+
Visit the Azure samples repository on GitHub and view the [business card model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/FormRecognizer/how-to-guide/business-card-model-output.md).
- An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services/).
32
32
- The latest version of [Visual Studio Code](https://code.visualstudio.com/) or your preferred IDE. See [Java in Visual Studio Code](https://code.visualstudio.com/docs/languages/java).
33
33
34
-
- Visual Studio Code offers a *Coding Pack for Java* for Windows and macOS. The coding pack is a bundle of VS Code, the Java Development Kit (JDK), and a collection of suggested extensions by Microsoft. The Coding Pack can also be used to fix an existing development environment.
35
-
- If you're using VS Code and the Coding Pack For Java, install the [**Gradle for Java**](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle) extension.
34
+
- Visual Studio Code offers a *Coding Pack for Java* for Windows and macOS. The coding pack is a bundle of `VS Code`, the Java Development Kit (JDK), and a collection of suggested extensions by Microsoft. The Coding Pack can also be used to fix an existing development environment.
35
+
- If you're using `VS Code` and the Coding Pack For Java, install the [**Gradle for Java**](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle) extension.
36
36
37
37
If you aren't using Visual Studio Code, make sure you have the following installed in your development environment:
38
38
@@ -130,14 +130,14 @@ To interact with the Document Intelligence service, create an instance of the `D
130
130
>
131
131
> You can create a new file by using PowerShell. Open a PowerShell window in your project directory by holding down the **Shift** key and right-clicking the folder, then type the following command: *New-Item FormRecognizer.java*.
132
132
133
-
1. Open the *FormRecognizer.java* file and select one of the following code samples to copy and paste into your application:
133
+
1. Open the *FormRecognizer.java* file and select one of the following code samples and copy/paste into your application:
134
134
135
-
- The [prebuilt-read](#use-the-read-model) model is at the core of all Document Intelligence models and can detect lines, words, locations, and languages. The layout, general document, prebuilt, and custom models all use the read model as a foundation for extracting texts from documents.
135
+
- The [prebuilt-read](#use-the-read-model) model is at the core of all Document Intelligence models and can detect lines, words, locations, and languages. The layout, general document, prebuilt, and custom models all use the `read` model as a foundation for extracting texts from documents.
136
136
- The [prebuilt-layout](#use-the-layout-model) model extracts text and text locations, tables, selection marks, and structure information from documents and images.
137
137
- The [prebuilt-tax.us.w2](#use-the-w-2-tax-model) model extracts information reported on US Internal Revenue Service (IRS) tax forms.
138
138
- The [prebuilt-invoice](#use-the-invoice-model) model extracts key fields and line items from sales invoices in various formats.
139
139
- The [prebuilt-receipt](#use-the-receipt-model) model extracts key information from printed and handwritten sales receipts.
140
-
- The [prebuilt-idDocument](#use-the-id-document-model) model extracts key information from US Drivers Licenses, international passport biographical pages, US state IDs, social security cards, and permanent resident cards or *green cards*.
140
+
- The [prebuilt-idDocument](#use-the-id-document-model) model extracts key information from US Drivers Licenses; international passport biographical pages; US state IDs; social security cards; and permanent resident cards.
Visit the Azure samples repository on GitHub to view the [read model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/read-model-output.md).
214
+
Visit the Azure samples repository on GitHub and view the [`read` model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/read-model-output.md).
Visit the Azure samples repository on GitHub to view the [layout model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/layout-model-output.md).
308
+
Visit the Azure samples repository on GitHub and view the [layout model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/layout-model-output.md).
Visit the Azure samples repository on GitHub to view the [general document model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/general-document-model-output.md).
401
+
Visit the Azure samples repository on GitHub and view the [general document model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/general-document-model-output.md).
402
402
403
403
## Use the W-2 tax model
404
404
@@ -534,7 +534,7 @@ for (int i = 0; i < analyzeTaxResult.getDocuments().size(); i++) {
534
534
}
535
535
```
536
536
537
-
Visit the Azure samples repository on GitHub to view the [W-2 tax model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/w2-tax-model-output.md).
537
+
Visit the Azure samples repository on GitHub and view the [W-2 tax model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/w2-tax-model-output.md).
538
538
539
539
## Use the Invoice model
540
540
@@ -689,7 +689,7 @@ for (int i = 0; i < analyzeInvoiceResult.getDocuments().size(); i++) {
689
689
}
690
690
```
691
691
692
-
Visit the Azure samples repository on GitHub to view the [invoice model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/invoice-model-output.md).
692
+
Visit the Azure samples repository on GitHub and view the [invoice model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/invoice-model-output.md).
693
693
694
694
## Use the Receipt-model
695
695
@@ -816,7 +816,7 @@ for (int i = 0; i < receiptResults.getDocuments().size(); i++) {
816
816
}
817
817
```
818
818
819
-
Visit the Azure samples repository on GitHub to view the [receipt model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/receipt-model-output.md).
819
+
Visit the Azure samples repository on GitHub and view the [receipt model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/receipt-model-output.md).
820
820
821
821
## Use the ID document model
822
822
@@ -938,7 +938,7 @@ for (int i = 0; i < identityDocumentResults.getDocuments().size(); i++) {
938
938
}
939
939
```
940
940
941
-
Visit the Azure samples repository on GitHub to view the [ID document model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/id-document-output.md).
941
+
Visit the Azure samples repository on GitHub and view the [ID document model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/id-document-output.md).
942
942
943
943
## Use the Business card model
944
944
@@ -1142,4 +1142,4 @@ for (int i = 0; i < businessCardPageResults.getDocuments().size(); i++) {
1142
1142
}
1143
1143
```
1144
1144
1145
-
Visit the Azure samples repository on GitHub to view the [business card model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/business-card-model-output.md).
1145
+
Visit the Azure samples repository on GitHub and view the [business card model output](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/FormRecognizer/how-to-guide/business-card-model-output.md).
0 commit comments