Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[formrecognizer] Remove TODOs from samples #20994

Merged
merged 1 commit into from
Sep 30, 2021
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
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