Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"sdk/eventhub/azure-eventhub-checkpointstoreblob/**",
"sdk/eventhub/azure-eventhub/**",
"sdk/graphrbac/azure-graphrbac/**",
"sdk/formrecognizer/azure-ai-formrecognizer/**",
"sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_forms/**",
"sdk/identity/azure-identity/tests/pod-identity/**",
"sdk/identity/azure-identity/tests/managed-identity-live/service-fabric/**",
"sdk/keyvault/azure-keyvault-certificates/tests/certs.py",
Expand Down Expand Up @@ -106,8 +106,7 @@
"eng/tox/tox.ini",
"eng/common/docgeneration/Generate-DocIndex.ps1",
"eng/**/*.py",
".gitignore",

".gitignore"
],
"words": [
"aad",
Expand Down Expand Up @@ -233,6 +232,7 @@
"plex",
"pluggy",
"popen",
"prebuilts",
"pschema",
"PSECRET",
"pygobject",
Expand Down Expand Up @@ -369,6 +369,21 @@
"Zwiz",
"nypg"
]
},
{
"filename": "sdk/formrecognizer/azure-ai-formrecognizer/tests/*.py",
"words": [
"WDLABCD"
]
},
{
"filename": "sdk/formrecognizer/azure-ai-formrecognizer/**",
"words": [
"allinone",
"dmac",
"ierr",
"mymodel"
]
}
],
"allowCompoundWords": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def recognize_custom_forms(self, labeled_model_id, unlabeled_model_id):
model_id=model_trained_without_labels_id, form=form
)

# Calling result() after kicking off each call allows for server-side paralellization
# Calling result() after kicking off each call allows for server-side parallelization
forms_with_labeled_model = forms_with_labeled_model_poller.result()
forms_with_unlabeled_model = forms_with_unlabeled_model_poller.result()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
formrecognizer_selection_mark_storage_container_sas_url_v2="https://blob_sas_url",
formrecognizer_table_variable_rows_container_sas_url_v2="https://blob_sas_url",
formrecognizer_table_fixed_rows_container_sas_url_v2="https://blob_sas_url",
formrecognizer_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.CognitiveServices/accounts/frname",
formrecognizer_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.CognitiveServices/accounts/formrecognizername",
formrecognizer_region="region"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,51 @@
"Connection": "keep-alive",
"Content-Length": "36",
"Content-Type": "application/json",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "80cc26ab-8499-11ec-b76b-c8348e073d2d"
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "066e9170-9b4e-11ec-8aa7-c8348e073d30"
},
"RequestBody": {
"urlSource": "https://blob_sas_url"
},
"StatusCode": 202,
"ResponseHeaders": {
"apim-request-id": "e3e05ca3-89b4-49d3-a466-3b6034f82830",
"apim-request-id": "c88d6ea2-5d72-4619-a405-4fa75bfcf8a4",
"Content-Length": "0",
"Date": "Thu, 03 Feb 2022 02:32:17 GMT",
"Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/e3e05ca3-89b4-49d3-a466-3b6034f82830?api-version=2022-01-30-preview",
"Date": "Fri, 04 Mar 2022 00:01:39 GMT",
"Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/c88d6ea2-5d72-4619-a405-4fa75bfcf8a4?api-version=2022-01-30-preview",
"Server": "istio-envoy",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "732"
"x-envoy-upstream-service-time": "103823"
},
"ResponseBody": null
},
{
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/e3e05ca3-89b4-49d3-a466-3b6034f82830?api-version=2022-01-30-preview",
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-businessCard/analyzeResults/c88d6ea2-5d72-4619-a405-4fa75bfcf8a4?api-version=2022-01-30-preview",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "80cc26ab-8499-11ec-b76b-c8348e073d2d"
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "066e9170-9b4e-11ec-8aa7-c8348e073d30"
},
"RequestBody": null,
"StatusCode": 200,
"ResponseHeaders": {
"apim-request-id": "df6936fe-0c42-4e01-9a67-e182aa8b9ff5",
"apim-request-id": "53852c60-d084-45c8-bfe0-e3c04be30893",
"Content-Type": "application/json; charset=utf-8",
"Date": "Thu, 03 Feb 2022 02:32:22 GMT",
"Date": "Fri, 04 Mar 2022 00:01:45 GMT",
"Server": "istio-envoy",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"Transfer-Encoding": "chunked",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "205"
"x-envoy-upstream-service-time": "1173"
},
"ResponseBody": {
"status": "succeeded",
"createdDateTime": "2022-02-03T02:32:17Z",
"lastUpdatedDateTime": "2022-02-03T02:32:21Z",
"createdDateTime": "2022-03-03T23:59:57Z",
"lastUpdatedDateTime": "2022-03-04T00:01:44Z",
"analyzeResult": {
"apiVersion": "2022-01-30-preview",
"modelId": "prebuilt-businessCard",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,51 @@
"Connection": "keep-alive",
"Content-Length": "36",
"Content-Type": "application/json",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "7a4e03a0-7f13-11ec-8378-c8348e073d30"
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "4dbbab42-9b4e-11ec-8766-c8348e073d30"
},
"RequestBody": {
"urlSource": "https://blob_sas_url"
},
"StatusCode": 202,
"ResponseHeaders": {
"apim-request-id": "74f230e0-adc4-4eeb-b463-2939abfc1d88",
"apim-request-id": "f31b2c7b-8f5b-43bc-bb75-c81f92b6c550",
"Content-Length": "0",
"Date": "Thu, 27 Jan 2022 01:50:16 GMT",
"Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/74f230e0-adc4-4eeb-b463-2939abfc1d88?api-version=2022-01-30-preview",
"Date": "Fri, 04 Mar 2022 00:01:55 GMT",
"Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/f31b2c7b-8f5b-43bc-bb75-c81f92b6c550?api-version=2022-01-30-preview",
"Server": "istio-envoy",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "366"
"x-envoy-upstream-service-time": "770"
},
"ResponseBody": null
},
{
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/74f230e0-adc4-4eeb-b463-2939abfc1d88?api-version=2022-01-30-preview",
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/f31b2c7b-8f5b-43bc-bb75-c81f92b6c550?api-version=2022-01-30-preview",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "7a4e03a0-7f13-11ec-8378-c8348e073d30"
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "4dbbab42-9b4e-11ec-8766-c8348e073d30"
},
"RequestBody": null,
"StatusCode": 200,
"ResponseHeaders": {
"apim-request-id": "32ce272a-8b3e-404b-8e11-a24943ab5c92",
"apim-request-id": "124bacb9-794a-449f-9806-8c2d8ce5b10a",
"Content-Type": "application/json; charset=utf-8",
"Date": "Thu, 27 Jan 2022 01:50:22 GMT",
"Date": "Fri, 04 Mar 2022 00:02:01 GMT",
"Server": "istio-envoy",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"Transfer-Encoding": "chunked",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "153"
"x-envoy-upstream-service-time": "371"
},
"ResponseBody": {
"status": "succeeded",
"createdDateTime": "2022-01-27T01:50:17Z",
"lastUpdatedDateTime": "2022-01-27T01:50:19Z",
"createdDateTime": "2022-03-04T00:01:55Z",
"lastUpdatedDateTime": "2022-03-04T00:01:58Z",
"analyzeResult": {
"apiVersion": "2022-01-30-preview",
"modelId": "prebuilt-idDocument",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,51 @@
"Connection": "keep-alive",
"Content-Length": "36",
"Content-Type": "application/json",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "75bfcd59-7f13-11ec-a439-c8348e073d30"
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "494b37dd-9b4e-11ec-bd92-c8348e073d30"
},
"RequestBody": {
"urlSource": "https://blob_sas_url"
},
"StatusCode": 202,
"ResponseHeaders": {
"apim-request-id": "eda61bab-c4fd-458f-b4cf-d242f7718c67",
"apim-request-id": "744ed7ae-cf0d-4558-a932-08daab1df1f6",
"Content-Length": "0",
"Date": "Thu, 27 Jan 2022 01:50:10 GMT",
"Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/eda61bab-c4fd-458f-b4cf-d242f7718c67?api-version=2022-01-30-preview",
"Date": "Fri, 04 Mar 2022 00:01:48 GMT",
"Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/744ed7ae-cf0d-4558-a932-08daab1df1f6?api-version=2022-01-30-preview",
"Server": "istio-envoy",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "793"
"x-envoy-upstream-service-time": "1036"
},
"ResponseBody": null
},
{
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/eda61bab-c4fd-458f-b4cf-d242f7718c67?api-version=2022-01-30-preview",
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-idDocument/analyzeResults/744ed7ae-cf0d-4558-a932-08daab1df1f6?api-version=2022-01-30-preview",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "75bfcd59-7f13-11ec-a439-c8348e073d30"
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "494b37dd-9b4e-11ec-bd92-c8348e073d30"
},
"RequestBody": null,
"StatusCode": 200,
"ResponseHeaders": {
"apim-request-id": "b8f3c70b-717c-4678-a3ab-b41d324edc4e",
"apim-request-id": "5b198787-62f8-444b-a2ed-126281082b04",
"Content-Type": "application/json; charset=utf-8",
"Date": "Thu, 27 Jan 2022 01:50:15 GMT",
"Date": "Fri, 04 Mar 2022 00:01:54 GMT",
"Server": "istio-envoy",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"Transfer-Encoding": "chunked",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "347"
"x-envoy-upstream-service-time": "363"
},
"ResponseBody": {
"status": "succeeded",
"createdDateTime": "2022-01-27T01:50:10Z",
"lastUpdatedDateTime": "2022-01-27T01:50:12Z",
"createdDateTime": "2022-03-04T00:01:48Z",
"lastUpdatedDateTime": "2022-03-04T00:01:51Z",
"analyzeResult": {
"apiVersion": "2022-01-30-preview",
"modelId": "prebuilt-idDocument",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,51 @@
"Connection": "keep-alive",
"Content-Length": "36",
"Content-Type": "application/json",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "d6a38b11-8499-11ec-b203-c8348e073d2d"
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "5215dcdc-9b4e-11ec-8559-c8348e073d30"
},
"RequestBody": {
"urlSource": "https://blob_sas_url"
},
"StatusCode": 202,
"ResponseHeaders": {
"apim-request-id": "8e7ea2c4-fa93-4419-91a8-ff84bf81359d",
"apim-request-id": "ca47f4d7-456c-44f0-8b9b-6f0a8d9b9086",
"Content-Length": "0",
"Date": "Thu, 03 Feb 2022 02:34:42 GMT",
"Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/8e7ea2c4-fa93-4419-91a8-ff84bf81359d?api-version=2022-01-30-preview",
"Date": "Fri, 04 Mar 2022 00:02:03 GMT",
"Operation-Location": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/ca47f4d7-456c-44f0-8b9b-6f0a8d9b9086?api-version=2022-01-30-preview",
"Server": "istio-envoy",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "920"
"x-envoy-upstream-service-time": "1177"
},
"ResponseBody": null
},
{
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/8e7ea2c4-fa93-4419-91a8-ff84bf81359d?api-version=2022-01-30-preview",
"RequestUri": "https://fakeendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/prebuilt-invoice/analyzeResults/ca47f4d7-456c-44f0-8b9b-6f0a8d9b9086?api-version=2022-01-30-preview",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b3 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "d6a38b11-8499-11ec-b203-c8348e073d2d"
"User-Agent": "azsdk-python-ai-formrecognizer/3.2.0b4 Python/3.9.1 (Windows-10-10.0.19041-SP0)",
"x-ms-client-request-id": "5215dcdc-9b4e-11ec-8559-c8348e073d30"
},
"RequestBody": null,
"StatusCode": 200,
"ResponseHeaders": {
"apim-request-id": "986e0173-e7f4-4f97-bd60-88a6b1e81430",
"apim-request-id": "8d3ed80d-3ef2-4e3d-9111-ca3ddd68cd3c",
"Content-Type": "application/json; charset=utf-8",
"Date": "Thu, 03 Feb 2022 02:34:47 GMT",
"Date": "Fri, 04 Mar 2022 00:02:08 GMT",
"Server": "istio-envoy",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
"Transfer-Encoding": "chunked",
"X-Content-Type-Options": "nosniff",
"x-envoy-upstream-service-time": "192"
"x-envoy-upstream-service-time": "340"
},
"ResponseBody": {
"status": "succeeded",
"createdDateTime": "2022-02-03T02:34:42Z",
"lastUpdatedDateTime": "2022-02-03T02:34:45Z",
"createdDateTime": "2022-03-04T00:02:03Z",
"lastUpdatedDateTime": "2022-03-04T00:02:06Z",
"analyzeResult": {
"apiVersion": "2022-01-30-preview",
"modelId": "prebuilt-invoice",
Expand Down
Loading