Skip to content

Commit 5c3c625

Browse files
remove TODOs from samples (Azure#20994)
1 parent 6812755 commit 5c3c625

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_analyze_business_cards_async.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ async def analyze_business_card_async():
6464
contact_name.value["FirstName"].value,
6565
contact_name.value[
6666
"FirstName"
67-
].confidence, # TODO confidence is None
67+
].confidence,
6868
)
6969
)
7070
print(
7171
"Contact Last Name: {} has confidence: {}".format(
7272
contact_name.value["LastName"].value,
7373
contact_name.value[
7474
"LastName"
75-
].confidence, # TODO confidence is None
75+
].confidence,
7676
)
7777
)
7878
company_names = business_card.fields.get("CompanyNames")
@@ -128,23 +128,23 @@ async def analyze_business_card_async():
128128
"Mobile phone number: {} has confidence: {}".format(
129129
phone.content, phone.confidence
130130
)
131-
) # TODO value not getting populated
131+
)
132132
faxes = business_card.fields.get("Faxes")
133133
if faxes:
134134
for fax in faxes.value:
135135
print(
136136
"Fax number: {} has confidence: {}".format(
137137
fax.content, fax.confidence
138138
)
139-
) # TODO value not getting populated
139+
)
140140
work_phones = business_card.fields.get("WorkPhones")
141141
if work_phones:
142142
for work_phone in work_phones.value:
143143
print(
144144
"Work phone number: {} has confidence: {}".format(
145145
work_phone.content, work_phone.confidence
146146
)
147-
) # TODO value not getting populated
147+
)
148148
other_phones = business_card.fields.get("OtherPhones")
149149
if other_phones:
150150
for other_phone in other_phones.value:

sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/sample_analyze_business_cards.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ def analyze_business_card():
6161
contact_name.value["FirstName"].value,
6262
contact_name.value[
6363
"FirstName"
64-
].confidence, # TODO confidence is None
64+
].confidence,
6565
)
6666
)
6767
print(
6868
"Contact Last Name: {} has confidence: {}".format(
6969
contact_name.value["LastName"].value,
7070
contact_name.value[
7171
"LastName"
72-
].confidence, # TODO confidence is None
72+
].confidence,
7373
)
7474
)
7575
company_names = business_card.fields.get("CompanyNames")
@@ -125,23 +125,23 @@ def analyze_business_card():
125125
"Mobile phone number: {} has confidence: {}".format(
126126
phone.content, phone.confidence
127127
)
128-
) # TODO value not getting populated
128+
)
129129
faxes = business_card.fields.get("Faxes")
130130
if faxes:
131131
for fax in faxes.value:
132132
print(
133133
"Fax number: {} has confidence: {}".format(
134134
fax.content, fax.confidence
135135
)
136-
) # TODO value not getting populated
136+
)
137137
work_phones = business_card.fields.get("WorkPhones")
138138
if work_phones:
139139
for work_phone in work_phones.value:
140140
print(
141141
"Work phone number: {} has confidence: {}".format(
142142
work_phone.content, work_phone.confidence
143143
)
144-
) # TODO value not getting populated
144+
)
145145
other_phones = business_card.fields.get("OtherPhones")
146146
if other_phones:
147147
for other_phone in other_phones.value:

0 commit comments

Comments
 (0)