From 5c3c625c8c9edfe39e022ecfae5d1a9e9fb84b9f Mon Sep 17 00:00:00 2001 From: catalinaperalta Date: Thu, 30 Sep 2021 18:29:19 -0400 Subject: [PATCH] remove TODOs from samples (#20994) --- .../sample_analyze_business_cards_async.py | 10 +++++----- .../samples/v3.2-beta/sample_analyze_business_cards.py | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_analyze_business_cards_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_analyze_business_cards_async.py index dad0ed20e834..ac2f2231f77f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_analyze_business_cards_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_analyze_business_cards_async.py @@ -64,7 +64,7 @@ async def analyze_business_card_async(): contact_name.value["FirstName"].value, contact_name.value[ "FirstName" - ].confidence, # TODO confidence is None + ].confidence, ) ) print( @@ -72,7 +72,7 @@ async def analyze_business_card_async(): contact_name.value["LastName"].value, contact_name.value[ "LastName" - ].confidence, # TODO confidence is None + ].confidence, ) ) company_names = business_card.fields.get("CompanyNames") @@ -128,7 +128,7 @@ async def analyze_business_card_async(): "Mobile phone number: {} has confidence: {}".format( phone.content, phone.confidence ) - ) # TODO value not getting populated + ) faxes = business_card.fields.get("Faxes") if faxes: for fax in faxes.value: @@ -136,7 +136,7 @@ async def analyze_business_card_async(): "Fax number: {} has confidence: {}".format( fax.content, fax.confidence ) - ) # TODO value not getting populated + ) work_phones = business_card.fields.get("WorkPhones") if work_phones: for work_phone in work_phones.value: @@ -144,7 +144,7 @@ async def analyze_business_card_async(): "Work phone number: {} has confidence: {}".format( work_phone.content, work_phone.confidence ) - ) # TODO value not getting populated + ) other_phones = business_card.fields.get("OtherPhones") if other_phones: for other_phone in other_phones.value: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_analyze_business_cards.py b/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_analyze_business_cards.py index f5d5cfaa5fae..811fa10858f0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_analyze_business_cards.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_analyze_business_cards.py @@ -61,7 +61,7 @@ def analyze_business_card(): contact_name.value["FirstName"].value, contact_name.value[ "FirstName" - ].confidence, # TODO confidence is None + ].confidence, ) ) print( @@ -69,7 +69,7 @@ def analyze_business_card(): contact_name.value["LastName"].value, contact_name.value[ "LastName" - ].confidence, # TODO confidence is None + ].confidence, ) ) company_names = business_card.fields.get("CompanyNames") @@ -125,7 +125,7 @@ def analyze_business_card(): "Mobile phone number: {} has confidence: {}".format( phone.content, phone.confidence ) - ) # TODO value not getting populated + ) faxes = business_card.fields.get("Faxes") if faxes: for fax in faxes.value: @@ -133,7 +133,7 @@ def analyze_business_card(): "Fax number: {} has confidence: {}".format( fax.content, fax.confidence ) - ) # TODO value not getting populated + ) work_phones = business_card.fields.get("WorkPhones") if work_phones: for work_phone in work_phones.value: @@ -141,7 +141,7 @@ def analyze_business_card(): "Work phone number: {} has confidence: {}".format( work_phone.content, work_phone.confidence ) - ) # TODO value not getting populated + ) other_phones = business_card.fields.get("OtherPhones") if other_phones: for other_phone in other_phones.value: