@@ -164,7 +164,7 @@ def detect_language( # type: ignore
164
164
disables input logging and may limit our ability to remediate issues that occur. Please see
165
165
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
166
166
additional details, and Microsoft Responsible AI principles at
167
- https://www.microsoft.com/en-us/ ai/responsible-ai.
167
+ https://www.microsoft.com/ai/responsible-ai.
168
168
:return: The combined list of :class:`~azure.ai.textanalytics.DetectLanguageResult` and
169
169
:class:`~azure.ai.textanalytics.DocumentError` in the order the original documents were
170
170
passed in.
@@ -187,7 +187,7 @@ def detect_language( # type: ignore
187
187
model_version = kwargs .pop ("model_version" , None )
188
188
show_stats = kwargs .pop ("show_stats" , False )
189
189
disable_service_logs = kwargs .pop ("disable_service_logs" , None )
190
- if disable_service_logs :
190
+ if disable_service_logs is not None :
191
191
kwargs ['logging_opt_out' ] = disable_service_logs
192
192
try :
193
193
return self ._client .languages (
@@ -246,7 +246,7 @@ def recognize_entities( # type: ignore
246
246
disables input logging and may limit our ability to remediate issues that occur. Please see
247
247
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
248
248
additional details, and Microsoft Responsible AI principles at
249
- https://www.microsoft.com/en-us/ ai/responsible-ai.
249
+ https://www.microsoft.com/ai/responsible-ai.
250
250
:return: The combined list of :class:`~azure.ai.textanalytics.RecognizeEntitiesResult` and
251
251
:class:`~azure.ai.textanalytics.DocumentError` in the order the original documents
252
252
were passed in.
@@ -276,7 +276,7 @@ def recognize_entities( # type: ignore
276
276
if string_index_type :
277
277
kwargs .update ({"string_index_type" : string_index_type })
278
278
disable_service_logs = kwargs .pop ("disable_service_logs" , None )
279
- if disable_service_logs :
279
+ if disable_service_logs is not None :
280
280
kwargs ['logging_opt_out' ] = disable_service_logs
281
281
282
282
try :
@@ -345,7 +345,7 @@ def recognize_pii_entities( # type: ignore
345
345
disables input logging and may limit our ability to remediate issues that occur. Please see
346
346
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
347
347
additional details, and Microsoft Responsible AI principles at
348
- https://www.microsoft.com/en-us/ ai/responsible-ai.
348
+ https://www.microsoft.com/ai/responsible-ai.
349
349
:return: The combined list of :class:`~azure.ai.textanalytics.RecognizePiiEntitiesResult`
350
350
and :class:`~azure.ai.textanalytics.DocumentError` in the order the original documents
351
351
were passed in.
@@ -378,7 +378,7 @@ def recognize_pii_entities( # type: ignore
378
378
if string_index_type :
379
379
kwargs .update ({"string_index_type" : string_index_type })
380
380
disable_service_logs = kwargs .pop ("disable_service_logs" , None )
381
- if disable_service_logs :
381
+ if disable_service_logs is not None :
382
382
kwargs ['logging_opt_out' ] = disable_service_logs
383
383
384
384
try :
@@ -447,7 +447,7 @@ def recognize_linked_entities( # type: ignore
447
447
disables input logging and may limit our ability to remediate issues that occur. Please see
448
448
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
449
449
additional details, and Microsoft Responsible AI principles at
450
- https://www.microsoft.com/en-us/ ai/responsible-ai.
450
+ https://www.microsoft.com/ai/responsible-ai.
451
451
:return: The combined list of :class:`~azure.ai.textanalytics.RecognizeLinkedEntitiesResult`
452
452
and :class:`~azure.ai.textanalytics.DocumentError` in the order the original documents
453
453
were passed in.
@@ -470,7 +470,7 @@ def recognize_linked_entities( # type: ignore
470
470
model_version = kwargs .pop ("model_version" , None )
471
471
show_stats = kwargs .pop ("show_stats" , False )
472
472
disable_service_logs = kwargs .pop ("disable_service_logs" , None )
473
- if disable_service_logs :
473
+ if disable_service_logs is not None :
474
474
kwargs ['logging_opt_out' ] = disable_service_logs
475
475
476
476
string_index_type = _check_string_index_type_arg (
@@ -554,7 +554,7 @@ def begin_analyze_healthcare_entities( # type: ignore
554
554
disables input logging and may limit our ability to remediate issues that occur. Please see
555
555
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
556
556
additional details, and Microsoft Responsible AI principles at
557
- https://www.microsoft.com/en-us/ ai/responsible-ai.
557
+ https://www.microsoft.com/ai/responsible-ai.
558
558
:return: An instance of an AnalyzeHealthcareEntitiesLROPoller. Call `result()` on the this
559
559
object to return a pageable of :class:`~azure.ai.textanalytics.AnalyzeHealthcareEntitiesResultItem`.
560
560
:rtype:
@@ -582,7 +582,7 @@ def begin_analyze_healthcare_entities( # type: ignore
582
582
583
583
doc_id_order = [doc .get ("id" ) for doc in docs ]
584
584
disable_service_logs = kwargs .pop ("disable_service_logs" , None )
585
- if disable_service_logs :
585
+ if disable_service_logs is not None :
586
586
kwargs ['logging_opt_out' ] = disable_service_logs
587
587
588
588
try :
@@ -657,7 +657,7 @@ def extract_key_phrases( # type: ignore
657
657
disables input logging and may limit our ability to remediate issues that occur. Please see
658
658
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
659
659
additional details, and Microsoft Responsible AI principles at
660
- https://www.microsoft.com/en-us/ ai/responsible-ai.
660
+ https://www.microsoft.com/ai/responsible-ai.
661
661
:return: The combined list of :class:`~azure.ai.textanalytics.ExtractKeyPhrasesResult` and
662
662
:class:`~azure.ai.textanalytics.DocumentError` in the order the original documents were
663
663
passed in.
@@ -680,7 +680,7 @@ def extract_key_phrases( # type: ignore
680
680
model_version = kwargs .pop ("model_version" , None )
681
681
show_stats = kwargs .pop ("show_stats" , False )
682
682
disable_service_logs = kwargs .pop ("disable_service_logs" , None )
683
- if disable_service_logs :
683
+ if disable_service_logs is not None :
684
684
kwargs ['logging_opt_out' ] = disable_service_logs
685
685
686
686
try :
@@ -746,7 +746,7 @@ def analyze_sentiment( # type: ignore
746
746
disables input logging and may limit our ability to remediate issues that occur. Please see
747
747
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
748
748
additional details, and Microsoft Responsible AI principles at
749
- https://www.microsoft.com/en-us/ ai/responsible-ai.
749
+ https://www.microsoft.com/ai/responsible-ai.
750
750
.. versionadded:: v3.1-preview
751
751
The *show_opinion_mining* parameter.
752
752
The *string_index_type* parameter.
@@ -773,7 +773,7 @@ def analyze_sentiment( # type: ignore
773
773
show_stats = kwargs .pop ("show_stats" , False )
774
774
show_opinion_mining = kwargs .pop ("show_opinion_mining" , None )
775
775
disable_service_logs = kwargs .pop ("disable_service_logs" , None )
776
- if disable_service_logs :
776
+ if disable_service_logs is not None :
777
777
kwargs ['logging_opt_out' ] = disable_service_logs
778
778
779
779
string_index_type = _check_string_index_type_arg (
0 commit comments