@@ -398,7 +398,7 @@ class RecognizeEntitiesResult(DictMixin):
398
398
"""If `show_stats=True` was specified in the request this
399
399
field will contain information about the document payload."""
400
400
detected_language : Optional [DetectedLanguage ] = None
401
- """If automatic language detection is enabled, then this
401
+ """If ' language' is set to 'auto' for the document in the request this
402
402
field will contain the DetectedLanguage for the document."""
403
403
is_error : Literal [False ] = False
404
404
"""Boolean check for error item when iterating over list of
@@ -449,7 +449,7 @@ class RecognizePiiEntitiesResult(DictMixin):
449
449
"""If `show_stats=True` was specified in the request this
450
450
field will contain information about the document payload."""
451
451
detected_language : Optional [DetectedLanguage ] = None
452
- """If automatic language detection is enabled, then this
452
+ """If ' language' is set to 'auto' for the document in the request this
453
453
field will contain the DetectedLanguage for the document."""
454
454
is_error : Literal [False ] = False
455
455
"""Boolean check for error item when iterating over list of
@@ -508,7 +508,7 @@ class AnalyzeHealthcareEntitiesResult(DictMixin):
508
508
FHIR compatible object for consumption in other Healthcare tools. For additional
509
509
information see https://www.hl7.org/fhir/overview.html."""
510
510
detected_language : Optional [str ] = None
511
- """If automatic language detection is enabled, then this
511
+ """If ' language' is set to 'auto' for the document in the request this
512
512
field will contain the detected language for the document."""
513
513
is_error : Literal [False ] = False
514
514
"""Boolean check for error item when iterating over list of
@@ -1061,7 +1061,7 @@ class ExtractKeyPhrasesResult(DictMixin):
1061
1061
"""If `show_stats=True` was specified in the request this
1062
1062
field will contain information about the document payload."""
1063
1063
detected_language : Optional [DetectedLanguage ] = None
1064
- """If automatic language detection is enabled, then this
1064
+ """If ' language' is set to 'auto' for the document in the request this
1065
1065
field will contain the DetectedLanguage for the document."""
1066
1066
is_error : Literal [False ] = False
1067
1067
"""Boolean check for error item when iterating over list of
@@ -1107,7 +1107,7 @@ class RecognizeLinkedEntitiesResult(DictMixin):
1107
1107
"""If `show_stats=True` was specified in the request this
1108
1108
field will contain information about the document payload."""
1109
1109
detected_language : Optional [DetectedLanguage ] = None
1110
- """If automatic language detection is enabled, then this
1110
+ """If ' language' is set to 'auto' for the document in the request this
1111
1111
field will contain the DetectedLanguage for the document."""
1112
1112
is_error : Literal [False ] = False
1113
1113
"""Boolean check for error item when iterating over list of
@@ -1161,7 +1161,7 @@ class AnalyzeSentimentResult(DictMixin):
1161
1161
"""If `show_stats=True` was specified in the request this
1162
1162
field will contain information about the document payload."""
1163
1163
detected_language : Optional [DetectedLanguage ] = None
1164
- """If automatic language detection is enabled, then this
1164
+ """If ' language' is set to 'auto' for the document in the request this
1165
1165
field will contain the DetectedLanguage for the document."""
1166
1166
is_error : Literal [False ] = False
1167
1167
"""Boolean check for error item when iterating over list of
@@ -1441,7 +1441,12 @@ class TextDocumentInput(DictMixin, MultiLanguageInput):
1441
1441
:keyword str text: Required. The input text to process.
1442
1442
:keyword str language: This is the 2 letter ISO 639-1 representation
1443
1443
of a language. For example, use "en" for English; "es" for Spanish etc.
1444
- If not set, uses "en" for English as default.
1444
+ For automatic language detection, use "auto" (Only supported by long-running
1445
+ operation APIs with API version 2022-10-01-preview or newer). If
1446
+ not set, uses "en" for English as default.
1447
+
1448
+ .. versionadded:: 2022-10-01-preview
1449
+ The 'auto' option for language.
1445
1450
"""
1446
1451
1447
1452
id : str # pylint: disable=redefined-builtin
@@ -1451,7 +1456,9 @@ class TextDocumentInput(DictMixin, MultiLanguageInput):
1451
1456
language : Optional [str ] = None
1452
1457
"""This is the 2 letter ISO 639-1 representation
1453
1458
of a language. For example, use "en" for English; "es" for Spanish etc.
1454
- If not set, uses "en" for English as default."""
1459
+ For automatic language detection, use "auto" (Only supported by long-running
1460
+ operation APIs with API version 2022-10-01-preview or newer). If
1461
+ not set, uses "en" for English as default."""
1455
1462
1456
1463
def __init__ (
1457
1464
self ,
@@ -2329,7 +2336,7 @@ class RecognizeCustomEntitiesResult(DictMixin):
2329
2336
"""If `show_stats=True` was specified in the request this
2330
2337
field will contain information about the document payload."""
2331
2338
detected_language : Optional [DetectedLanguage ] = None
2332
- """If automatic language detection is enabled, then this
2339
+ """If ' language' is set to 'auto' for the document in the request this
2333
2340
field will contain the DetectedLanguage for the document."""
2334
2341
is_error : Literal [False ] = False
2335
2342
"""Boolean check for error item when iterating over list of
@@ -2458,7 +2465,7 @@ class ClassifyDocumentResult(DictMixin):
2458
2465
"""If `show_stats=True` was specified in the request this
2459
2466
field will contain information about the document payload."""
2460
2467
detected_language : Optional [DetectedLanguage ] = None
2461
- """If automatic language detection is enabled, then this
2468
+ """If ' language' is set to 'auto' for the document in the request this
2462
2469
field will contain the DetectedLanguage for the document."""
2463
2470
is_error : Literal [False ] = False
2464
2471
"""Boolean check for error item when iterating over list of
@@ -2792,7 +2799,7 @@ class ExtractSummaryResult(DictMixin):
2792
2799
"""If `show_stats=True` was specified in the request this
2793
2800
field will contain information about the document payload."""
2794
2801
detected_language : Optional [DetectedLanguage ] = None
2795
- """If automatic language detection is enabled, then this
2802
+ """If ' language' is set to 'auto' for the document in the request this
2796
2803
field will contain the DetectedLanguage for the document."""
2797
2804
is_error : Literal [False ] = False
2798
2805
"""Boolean check for error item when iterating over list of
@@ -2899,7 +2906,7 @@ class AbstractiveSummaryResult(DictMixin):
2899
2906
"""Warnings encountered while processing document. Results will still be returned
2900
2907
if there are warnings, but they may not be fully accurate."""
2901
2908
detected_language : Optional [DetectedLanguage ] = None
2902
- """If automatic language detection is enabled, then this
2909
+ """If ' language' is set to 'auto' for the document in the request this
2903
2910
field will contain the DetectedLanguage for the document."""
2904
2911
statistics : Optional [TextDocumentStatistics ] = None
2905
2912
"""If `show_stats=True` was specified in the request this
0 commit comments