Skip to content

Commit b1cadd2

Browse files
committed
remove async checks, lint
1 parent bc266d1 commit b1cadd2

File tree

4 files changed

+196
-142
lines changed

4 files changed

+196
-142
lines changed

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py

+70-50
Original file line numberDiff line numberDiff line change
@@ -1439,22 +1439,26 @@ class RecognizeEntitiesAction(DictMixin):
14391439
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
14401440
see https://aka.ms/text-analytics-offsets
14411441
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
1442-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1443-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1444-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1445-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1446-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1442+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1443+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1444+
the Text Analytics natural language processing functions. Setting this parameter to true,
1445+
disables input logging and may limit our ability to remediate issues that occur. Please see
1446+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1447+
additional details, and Microsoft Responsible AI principles at
1448+
https://www.microsoft.com/en-us/ai/responsible-ai.
14471449
:ivar str model_version: The model version to use for the analysis.
14481450
:ivar str string_index_type: Specifies the method used to interpret string offsets.
14491451
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
14501452
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
14511453
see https://aka.ms/text-analytics-offsets
14521454
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
1453-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1454-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1455-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1456-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1457-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1455+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1456+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1457+
the Text Analytics natural language processing functions. Setting this parameter to true,
1458+
disables input logging and may limit our ability to remediate issues that occur. Please see
1459+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1460+
additional details, and Microsoft Responsible AI principles at
1461+
https://www.microsoft.com/en-us/ai/responsible-ai.
14581462
"""
14591463

14601464
def __init__(self, **kwargs):
@@ -1495,11 +1499,13 @@ class AnalyzeSentimentAction(DictMixin):
14951499
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
14961500
see https://aka.ms/text-analytics-offsets
14971501
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
1498-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1499-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1500-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1501-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1502-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1502+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1503+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1504+
the Text Analytics natural language processing functions. Setting this parameter to true,
1505+
disables input logging and may limit our ability to remediate issues that occur. Please see
1506+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1507+
additional details, and Microsoft Responsible AI principles at
1508+
https://www.microsoft.com/en-us/ai/responsible-ai.
15031509
:ivar str model_version: The model version to use for the analysis.
15041510
:ivar bool show_opinion_mining: Whether to mine the opinions of a sentence and conduct more
15051511
granular analysis around the aspects of a product or service (also known as
@@ -1511,11 +1517,13 @@ class AnalyzeSentimentAction(DictMixin):
15111517
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
15121518
see https://aka.ms/text-analytics-offsets
15131519
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
1514-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1515-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1516-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1517-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1518-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1520+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1521+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1522+
the Text Analytics natural language processing functions. Setting this parameter to true,
1523+
disables input logging and may limit our ability to remediate issues that occur. Please see
1524+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1525+
additional details, and Microsoft Responsible AI principles at
1526+
https://www.microsoft.com/en-us/ai/responsible-ai.
15191527
"""
15201528

15211529
def __init__(self, **kwargs):
@@ -1560,11 +1568,13 @@ class RecognizePiiEntitiesAction(DictMixin):
15601568
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
15611569
see https://aka.ms/text-analytics-offsets
15621570
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
1563-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1564-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1565-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1566-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1567-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1571+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1572+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1573+
the Text Analytics natural language processing functions. Setting this parameter to true,
1574+
disables input logging and may limit our ability to remediate issues that occur. Please see
1575+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1576+
additional details, and Microsoft Responsible AI principles at
1577+
https://www.microsoft.com/en-us/ai/responsible-ai.
15681578
:ivar str model_version: The model version to use for the analysis.
15691579
:ivar str domain_filter: An optional string to set the PII domain to include only a
15701580
subset of the PII entity categories. Possible values include 'phi' or None.
@@ -1573,11 +1583,13 @@ class RecognizePiiEntitiesAction(DictMixin):
15731583
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
15741584
see https://aka.ms/text-analytics-offsets
15751585
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
1576-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1577-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1578-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1579-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1580-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1586+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1587+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1588+
the Text Analytics natural language processing functions. Setting this parameter to true,
1589+
disables input logging and may limit our ability to remediate issues that occur. Please see
1590+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1591+
additional details, and Microsoft Responsible AI principles at
1592+
https://www.microsoft.com/en-us/ai/responsible-ai.
15811593
"""
15821594

15831595
def __init__(self, **kwargs):
@@ -1616,18 +1628,22 @@ class ExtractKeyPhrasesAction(DictMixin):
16161628
16171629
:keyword str model_version: The model version to use for the analysis.
16181630
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
1619-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1620-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1621-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1622-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1623-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1631+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1632+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1633+
the Text Analytics natural language processing functions. Setting this parameter to true,
1634+
disables input logging and may limit our ability to remediate issues that occur. Please see
1635+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1636+
additional details, and Microsoft Responsible AI principles at
1637+
https://www.microsoft.com/en-us/ai/responsible-ai.
16241638
:ivar str model_version: The model version to use for the analysis.
16251639
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
1626-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1627-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1628-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1629-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1630-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1640+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1641+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1642+
the Text Analytics natural language processing functions. Setting this parameter to true,
1643+
disables input logging and may limit our ability to remediate issues that occur. Please see
1644+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1645+
additional details, and Microsoft Responsible AI principles at
1646+
https://www.microsoft.com/en-us/ai/responsible-ai.
16311647
"""
16321648

16331649
def __init__(self, **kwargs):
@@ -1661,22 +1677,26 @@ class RecognizeLinkedEntitiesAction(DictMixin):
16611677
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
16621678
see https://aka.ms/text-analytics-offsets
16631679
:keyword bool disable_service_logs: If set to true, you opt-out of having your text input
1664-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1665-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1666-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1667-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1668-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1680+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1681+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1682+
the Text Analytics natural language processing functions. Setting this parameter to true,
1683+
disables input logging and may limit our ability to remediate issues that occur. Please see
1684+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1685+
additional details, and Microsoft Responsible AI principles at
1686+
https://www.microsoft.com/en-us/ai/responsible-ai.
16691687
:ivar str model_version: The model version to use for the analysis.
16701688
:ivar str string_index_type: Specifies the method used to interpret string offsets.
16711689
`UnicodeCodePoint`, the Python encoding, is the default. To override the Python default,
16721690
you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information
16731691
see https://aka.ms/text-analytics-offsets
16741692
:ivar bool disable_service_logs: If set to true, you opt-out of having your text input
1675-
logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours,
1676-
solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions.
1677-
Setting this parameter to true, disables input logging and may limit our ability to remediate issues that occur.
1678-
Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details,
1679-
and Microsoft Responsible AI principles at https://www.microsoft.com/en-us/ai/responsible-ai.
1693+
logged on the service side for troubleshooting. By default, Text Analytics logs your
1694+
input text for 48 hours, solely to allow for troubleshooting issues in providing you with
1695+
the Text Analytics natural language processing functions. Setting this parameter to true,
1696+
disables input logging and may limit our ability to remediate issues that occur. Please see
1697+
Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for
1698+
additional details, and Microsoft Responsible AI principles at
1699+
https://www.microsoft.com/en-us/ai/responsible-ai.
16801700
"""
16811701

16821702
def __init__(self, **kwargs):

0 commit comments

Comments
 (0)