Skip to content

Commit

Permalink
remove TODOs from samples (Azure#20994)
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinaperalta authored Sep 30, 2021
1 parent 6812755 commit 5c3c625
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ async def analyze_business_card_async():
contact_name.value["FirstName"].value,
contact_name.value[
"FirstName"
].confidence, # TODO confidence is None
].confidence,
)
)
print(
"Contact Last Name: {} has confidence: {}".format(
contact_name.value["LastName"].value,
contact_name.value[
"LastName"
].confidence, # TODO confidence is None
].confidence,
)
)
company_names = business_card.fields.get("CompanyNames")
Expand Down Expand Up @@ -128,23 +128,23 @@ 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:
print(
"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:
print(
"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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ def analyze_business_card():
contact_name.value["FirstName"].value,
contact_name.value[
"FirstName"
].confidence, # TODO confidence is None
].confidence,
)
)
print(
"Contact Last Name: {} has confidence: {}".format(
contact_name.value["LastName"].value,
contact_name.value[
"LastName"
].confidence, # TODO confidence is None
].confidence,
)
)
company_names = business_card.fields.get("CompanyNames")
Expand Down Expand Up @@ -125,23 +125,23 @@ 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:
print(
"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:
print(
"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:
Expand Down

0 comments on commit 5c3c625

Please sign in to comment.