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/v2-1/python-sdk.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ Install the client library and create a Python application.
57
57
58
58
## Use the Object model
59
59
60
-
With Document Intelligence, you can create two different client types. The first, `form_recognizer_client`, queries the service to recognize form fields and content. The second, `form_training_client`, creates and manages custom models to improve recognition.
60
+
With Document Intelligence, you can create two different client types. The first—`form_recognizer_client`—queries the service to recognize form fields and content. The second—`form_training_client`—creates and manages custom models to improve recognition.
61
61
62
62
`form_recognizer_client` provides the following operations:
63
63
@@ -183,7 +183,7 @@ To analyze invoices from a URL, use the `begin_recognize_invoices_from_url` meth
183
183
184
184
## Analyze ID documents
185
185
186
-
This section demonstrates how to analyze and extract key information from government-issued identification documents, including worldwide passports and U.S. driver's licenses, by using the Document Intelligence prebuilt ID model. For more information about ID document analysis, see the [Document Intelligence ID document model](../../../prebuilt/id-document.md).
186
+
This section demonstrates how to analyze and extract key information from government-issued identification documents such as worldwide passports and U.S. driver's licensesusing the prebuilt ID model. For more information about ID document analysis, see the [Document Intelligence ID document model](../../../prebuilt/id-document.md).
187
187
188
188
To analyze ID documents from a URL, use the `begin_recognize_id_documents_from_url` method.
189
189
@@ -286,7 +286,7 @@ Document errors: []
286
286
This section demonstrates how to extract key/value information and other content from your custom template types, using models you trained with your own forms.
287
287
288
288
> [!IMPORTANT]
289
-
> In order to implement this scenario, you must have already trained a model so you can pass its ID into the method operation. See the [Train a model](#train-a-model-without-labels) section.
289
+
> In order to implement this scenario, you must have a trained a model so you can pass its ID into the method operation. See the [Train a model](#train-a-model-without-labels) section.
290
290
291
291
You use the `begin_recognize_custom_forms_from_url` method. The returned value is a collection of `RecognizedForm` objects. There's one object for each page in the submitted document. The following code prints the analysis results to the console. It prints each recognized field and corresponding value, along with a confidence score.
292
292
@@ -406,9 +406,11 @@ Similarly, `logging_enable` can enable detailed logging for a single operation,
406
406
## REST samples on GitHub
407
407
408
408
- Extract text, selection marks, and table structure from documents: [Extract layout data - Python](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/python/FormRecognizer/rest/python-layout.md)
409
-
- Train custom models and extract custom form data:
409
+
- Train a custom model and extract custom form data:
410
+
410
411
-[Train without labels - Python](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/python/FormRecognizer/rest/python-train-extract.md)
411
412
-[Train with labels - Python](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/python/FormRecognizer/rest/python-labeled-data.md)
413
+
412
414
- Extract data from invoices: [Extract invoice data - Python](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/python/FormRecognizer/rest/python-invoices.md)
413
415
- Extract data from sales receipts: [Extract receipt data - Python](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/python/FormRecognizer/rest/python-receipts.md)
414
416
- Extract data from business cards: [Extract business card data - Python](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/python/FormRecognizer/rest/python-business-cards.md)
0 commit comments