diff --git a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md index c0b59419cb3c..1a2eb61fb0f5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md +++ b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md @@ -2,13 +2,21 @@ ## 5.2.0b2 (Unreleased) +This version of the SDK defaults to the latest supported API version, which currently is `v3.2-preview.2`. + ### Features Added +- Added support for Custom Entities Recognition through the `begin_analyze_actions` API with the `RecognizeCustomEntitiesAction` and `RecognizeCustomEntitiesResult` types. +- Added support for Custom Single Classification through the `begin_analyze_actions` API with the `SingleCategoryClassifyAction` and `SingleCategoryClassifyActionResult` types. +- Added support for Custom Multi Classification through the `begin_analyze_actions` API with the `MultiCategoryClassifyAction` and `MultiCategoryClassifyActionResult` types. +- Multiple of the same action type is now supported with `begin_analyze_actions`. ### Breaking Changes ### Bugs Fixed +- Restarting a long-running operation from a saved state is now supported for the `begin_analyze_actions` and `begin_recognize_healthcare_entities` methods. ### Other Changes +- Package requires [azure-core](https://pypi.org/project/azure-core/) version 1.16.0 or greater ## 5.2.0b1 (2021-08-09) diff --git a/sdk/textanalytics/azure-ai-textanalytics/README.md b/sdk/textanalytics/azure-ai-textanalytics/README.md index 5041adf62aa7..e54358b8928b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/README.md @@ -3,17 +3,21 @@ Text Analytics is a cloud-based service that provides advanced natural language processing over raw text, and includes the following main features: - Sentiment Analysis -- Named Entity Recognition -- Linked Entity Recognition -- Personally Identifiable Information (PII) Entity Recognition +- Entity Recognition (Named, Linked, and Personally Identifiable Information (PII) entities) - Language Detection - Key Phrase Extraction - Multiple Analysis - Healthcare Entities Analysis - Extractive Text Summarization +- Custom Entity Recognition +- Custom Single and Multi Category Classification [Source code][source_code] | [Package (PyPI)][ta_pypi] | [API reference documentation][ta_ref_docs] | [Product documentation][ta_product_documentation] | [Samples][ta_samples] +## _Disclaimer_ + +_Azure SDK Python packages support for Python 2.7 is ending 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_ + ## Getting started ### Prerequisites @@ -75,13 +79,13 @@ Install the Azure Text Analytics client library for Python with [pip][pip]: pip install azure-ai-textanalytics --pre ``` -> Note: This version of the client library defaults to the v3.2-preview.1 version of the service +> Note: This version of the client library defaults to the v3.2-preview.2 version of the service This table shows the relationship between SDK versions and supported API versions of the service | SDK version | Supported API version of service | | ------------ | --------------------------------- | -| 5.2.0b1 - Latest beta release | 3.0, 3.1, 3.2-preview.1 (default) | +| 5.2.0b2 - Latest beta release | 3.0, 3.1, 3.2-preview.2 (default) | | 5.1.0 - Latest GA release | 3.0, 3.1 (default) | | 5.0.0 | 3.0 | @@ -229,6 +233,10 @@ The following section provides several code snippets covering some of the most c - [Detect Language](#detect-language "Detect language") - [Healthcare Entities Analysis](#healthcare-entities-analysis "Healthcare Entities Analysis") - [Multiple Analysis](#multiple-analysis "Multiple analysis") +- [Extractive Summarization][extract_summary_sample] +- [Custom Entity Recognition][recognize_custom_entities_sample] +- [Custom Single Category Classification][single_category_classify_sample] +- [Custom Multi Category Classification][multi_category_classify_sample] ### Analyze sentiment @@ -506,6 +514,9 @@ Note: The Healthcare Entities Analysis service is available in API version v3.1 - Key Phrase Extraction - Sentiment Analysis - Extractive Summarization (see sample [here][extract_summary_sample]) +- Custom Entity Recognition (see sample [here][recognize_custom_entities_sample]) +- Custom Single Category Classification (see sample [here][single_category_classify_sample]) +- Custom Multi Category Classification (see sample [here][multi_category_classify_sample]) ```python from azure.core.credentials import AzureKeyCredential @@ -641,6 +652,9 @@ Common scenarios - Healthcare Entities Analysis: [sample_analyze_healthcare_entities.py][analyze_healthcare_entities_sample] ([async version][analyze_healthcare_entities_sample_async]) - Multiple Analysis: [sample_analyze_actions.py][analyze_sample] ([async version][analyze_sample_async]) - Extractive text summarization: [sample_extract_summary.py][extract_summary_sample] ([async version][extract_summary_sample_async]) +- Custom Entity Recognition: [sample_recognize_custom_entities.py][recognize_custom_entities_sample] ([async_version][recognize_custom_entities_sample_async]) +- Custom Single Classification: [sample_single_category_classify.py][single_category_classify_sample] ([async_version][single_category_classify_sample_async]) +- Custom Multi Classification: [sample_multi_category_classify.py][multi_category_classify_sample] ([async_version][multi_category_classify_sample_async]) Advanced scenarios @@ -738,6 +752,12 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [opinion_mining_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py [extract_summary_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_summary.py [extract_summary_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_summary_async.py +[recognize_custom_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py +[recognize_custom_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py +[single_category_classify_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py +[single_category_classify_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py +[multi_category_classify_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py +[multi_category_classify_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py index d78a7244020b..c9812c7241cd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py @@ -53,6 +53,13 @@ ExtractSummaryAction, ExtractSummaryResult, SummarySentence, + RecognizeCustomEntitiesAction, + RecognizeCustomEntitiesResult, + SingleCategoryClassifyAction, + SingleCategoryClassifyResult, + MultiCategoryClassifyAction, + MultiCategoryClassifyResult, + ClassificationCategory, ) from ._lro import AnalyzeHealthcareEntitiesLROPoller, AnalyzeActionsLROPoller @@ -107,6 +114,13 @@ "ExtractSummaryAction", "ExtractSummaryResult", "SummarySentence", + "RecognizeCustomEntitiesAction", + "RecognizeCustomEntitiesResult", + "SingleCategoryClassifyAction", + "SingleCategoryClassifyResult", + "MultiCategoryClassifyAction", + "MultiCategoryClassifyResult", + "ClassificationCategory", ] __version__ = VERSION diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_base_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_base_client.py index 320a26d389eb..9e2e10b79ad8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_base_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_base_client.py @@ -16,7 +16,7 @@ class TextAnalyticsApiVersion(str, Enum): """Text Analytics API versions supported by this package""" #: this is the default version - V3_2_PREVIEW = "v3.2-preview.1" + V3_2_PREVIEW = "v3.2-preview.2" V3_1 = "v3.1" V3_0 = "v3.0" @@ -44,8 +44,8 @@ def __init__(self, endpoint, credential, **kwargs): credential=credential, api_version=kwargs.pop("api_version", DEFAULT_API_VERSION), sdk_moniker=USER_AGENT, - authentication_policy=_authentication_policy(credential), - custom_hook_policy=TextAnalyticsResponseHookPolicy(**kwargs), + authentication_policy=kwargs.pop("authentication_policy", _authentication_policy(credential)), + custom_hook_policy=kwargs.pop("custom_hook_policy", TextAnalyticsResponseHookPolicy(**kwargs)), **kwargs ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_operations_mixin.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_operations_mixin.py index 9126c492e7bc..bc3cc2f45004 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_operations_mixin.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_operations_mixin.py @@ -10,19 +10,14 @@ # -------------------------------------------------------------------------- from msrest import Serializer, Deserializer from typing import TYPE_CHECKING -import warnings - -# FIXME: have to manually reconfigure import path for multiapi operation mixin -from .._lro import AnalyzeActionsLROPoller, AnalyzeActionsLROPollingMethod, AnalyzeHealthcareEntitiesLROPoller, AnalyzeHealthcareEntitiesLROPollingMethod -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.polling.base_polling import LROBasePolling if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union + from typing import Any, List, Optional, Union + + # FIXME: have to manually reconfigure import path for multiapi operation mixin + from .._lro import AnalyzeActionsLROPoller, AnalyzeHealthcareEntitiesLROPoller + from azure.core.polling import LROPoller class TextAnalyticsClientOperationsMixin(object): @@ -35,6 +30,7 @@ def analyze_status( skip=0, # type: Optional[int] **kwargs # type: Any ): + # type: (...) -> "_models.AnalyzeJobState" """Get analysis status and results. Get the status of an analysis job. A job may consist of one or more tasks. Once all tasks are @@ -54,14 +50,14 @@ def analyze_status( :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: AnalyzeJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('analyze_status') if api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'analyze_status'".format(api_version)) mixin_instance = OperationClass() @@ -77,28 +73,33 @@ def begin_analyze( body=None, # type: Optional["_models.AnalyzeBatchInput"] **kwargs # type: Any ): + # type: (...) -> AnalyzeActionsLROPoller["_models.AnalyzeJobState"] """Submit analysis job. Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed. :param body: Collection of documents to analyze and tasks to execute. - :type body: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeBatchInput + :type body: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeBatchInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. Pass + in False for this operation to not poll, or pass in your own initialized polling object for a + personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) - :rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the + result of cls(response) + :rtype: + ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('begin_analyze') if api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_analyze'".format(api_version)) mixin_instance = OperationClass() @@ -114,6 +115,7 @@ def begin_cancel_health_job( job_id, # type: str **kwargs # type: Any ): + # type: (...) -> LROPoller[None] """Cancel healthcare prediction job. Cancel healthcare prediction job. @@ -122,19 +124,21 @@ def begin_cancel_health_job( :type job_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be LROBasePolling. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be LROBasePolling. Pass in False for + this operation to not poll, or pass in your own initialized polling object for a personal + polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: + :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('begin_cancel_health_job') if api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_cancel_health_job'".format(api_version)) mixin_instance = OperationClass() @@ -153,20 +157,21 @@ def begin_health( logging_opt_out=None, # type: Optional[bool] **kwargs # type: Any ): + # type: (...) -> AnalyzeHealthcareEntitiesLROPoller["_models.HealthcareJobState"] """Submit healthcare analysis job. Start a healthcare analysis job to recognize healthcare related entities (drugs, conditions, symptoms, etc) and their relations. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with the Text Analytics natural language @@ -177,19 +182,23 @@ def begin_health( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AnalyzeHealthcareEntitiesLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be + AnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll, or + pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either + HealthcareJobState or the result of cls(response) + :rtype: + ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('begin_health') if api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_health'".format(api_version)) mixin_instance = OperationClass() @@ -209,6 +218,7 @@ def entities_linking( string_index_type=None, # type: Optional[Union[str, "_models.StringIndexType"]] **kwargs # type: Any ): + # type: (...) -> "_models.EntityLinkingResult" """Linked entities from a well known knowledge base. The API returns a list of recognized entities with links to a well known knowledge base. See @@ -216,7 +226,7 @@ def entities_linking( the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -234,10 +244,10 @@ def entities_linking( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: EntityLinkingResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_linking') @@ -245,8 +255,8 @@ def entities_linking( from .v3_0.operations import TextAnalyticsClientOperationsMixin as OperationClass elif api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_linking'".format(api_version)) mixin_instance = OperationClass() @@ -258,7 +268,7 @@ def entities_linking( # FIXME: this is handwritten if api_version == 'v3.0': return mixin_instance.entities_linking(documents, model_version, show_stats, **kwargs) - elif api_version == 'v3.1' or api_version == "v3.2-preview.1": + elif api_version == 'v3.1' or api_version == "v3.2-preview.2": return mixin_instance.entities_linking(documents, model_version, show_stats, logging_opt_out, string_index_type, **kwargs) def entities_recognition_general( @@ -270,6 +280,7 @@ def entities_recognition_general( string_index_type=None, # type: Optional[Union[str, "_models.StringIndexType"]] **kwargs # type: Any ): + # type: (...) -> "_models.EntitiesResult" """Named Entity Recognition. The API returns a list of general named entities in a given document. For the list of supported @@ -278,7 +289,7 @@ def entities_recognition_general( Analytics API` for the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -296,10 +307,10 @@ def entities_recognition_general( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: EntitiesResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_recognition_general') @@ -307,8 +318,8 @@ def entities_recognition_general( from .v3_0.operations import TextAnalyticsClientOperationsMixin as OperationClass elif api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_recognition_general'".format(api_version)) mixin_instance = OperationClass() @@ -320,7 +331,7 @@ def entities_recognition_general( # FIXME: this is handwritten if api_version == 'v3.0': return mixin_instance.entities_recognition_general(documents, model_version, show_stats, **kwargs) - elif api_version == 'v3.1' or api_version == "v3.2-preview.1": + elif api_version == 'v3.1' or api_version == "v3.2-preview.2": return mixin_instance.entities_recognition_general(documents, model_version, show_stats, logging_opt_out, string_index_type, **kwargs) def entities_recognition_pii( @@ -334,6 +345,7 @@ def entities_recognition_pii( pii_categories=None, # type: Optional[List[Union[str, "_models.PiiCategory"]]] **kwargs # type: Any ): + # type: (...) -> "_models.PiiResult" """Entities containing personal information. The API returns a list of entities with personal information (\"SSN\", \"Bank Account\" etc) in @@ -343,7 +355,7 @@ def entities_recognition_pii( list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -364,19 +376,19 @@ def entities_recognition_pii( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory] :keyword callable cls: A custom type or function that will be passed the direct response :return: PiiResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_recognition_pii') if api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_recognition_pii'".format(api_version)) mixin_instance = OperationClass() @@ -395,6 +407,7 @@ def health_status( show_stats=None, # type: Optional[bool] **kwargs # type: Any ): + # type: (...) -> "_models.HealthcareJobState" """Get healthcare analysis job status and results. Get details of the healthcare prediction job specified by the jobId. @@ -412,14 +425,14 @@ def health_status( :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: HealthcareJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('health_status') if api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'health_status'".format(api_version)) mixin_instance = OperationClass() @@ -438,6 +451,7 @@ def key_phrases( logging_opt_out=None, # type: Optional[bool] **kwargs # type: Any ): + # type: (...) -> "_models.KeyPhraseResult" """Key Phrases. The API returns a list of strings denoting the key phrases in the input text. See the :code:` "_models.LanguageResult" """Detect Language. The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 @@ -502,7 +517,7 @@ def languages( enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -519,7 +534,7 @@ def languages( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: LanguageResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.LanguageResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('languages') @@ -527,8 +542,8 @@ def languages( from .v3_0.operations import TextAnalyticsClientOperationsMixin as OperationClass elif api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'languages'".format(api_version)) mixin_instance = OperationClass() @@ -540,7 +555,7 @@ def languages( # FIXME: this is handwritten if api_version == 'v3.0': return mixin_instance.languages(documents, model_version, show_stats, **kwargs) - elif api_version == 'v3.1' or api_version == "v3.2-preview.1": + elif api_version == 'v3.1' or api_version == "v3.2-preview.2": return mixin_instance.languages(documents, model_version, show_stats, logging_opt_out, **kwargs) def sentiment( @@ -553,6 +568,7 @@ def sentiment( string_index_type=None, # type: Optional[Union[str, "_models.StringIndexType"]] **kwargs # type: Any ): + # type: (...) -> "_models.SentimentResponse" """Sentiment. The API returns a detailed sentiment analysis for the input text. The analysis is done in @@ -560,7 +576,7 @@ def sentiment( (targets and assessments). :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -581,10 +597,10 @@ def sentiment( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: SentimentResponse, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('sentiment') @@ -592,8 +608,8 @@ def sentiment( from .v3_0.operations import TextAnalyticsClientOperationsMixin as OperationClass elif api_version == 'v3.1': from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'sentiment'".format(api_version)) mixin_instance = OperationClass() @@ -605,5 +621,5 @@ def sentiment( # FIXME: this is handwritten if api_version == 'v3.0': return mixin_instance.sentiment(documents, model_version, show_stats, **kwargs) - elif api_version == 'v3.1' or api_version == "v3.2-preview.1": + elif api_version == 'v3.1' or api_version == "v3.2-preview.2": return mixin_instance.sentiment(documents, model_version, show_stats, logging_opt_out, opinion_mining, string_index_type, **kwargs) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_text_analytics_client.py index 8954bdf48d9e..a797041e8e45 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_text_analytics_client.py @@ -24,7 +24,6 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential - from azure.core.pipeline.transport import HttpRequest, HttpResponse class _SDKClient(object): def __init__(self, *args, **kwargs): @@ -55,7 +54,7 @@ class TextAnalyticsClient(TextAnalyticsClientOperationsMixin, MultiApiClientMixi :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = 'v3.2-preview.1' + DEFAULT_API_VERSION = 'v3.2-preview.2' _PROFILE_TAG = "azure.ai.textanalytics.TextAnalyticsClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { @@ -76,8 +75,8 @@ def __init__( base_url = '{Endpoint}/text/analytics/v3.0' elif api_version == 'v3.1': base_url = '{Endpoint}/text/analytics/v3.1' - elif api_version == 'v3.2-preview.1': - base_url = '{Endpoint}/text/analytics/v3.2-preview.1' + elif api_version == 'v3.2-preview.2': + base_url = '{Endpoint}/text/analytics/v3.2-preview.2' else: raise ValueError("API version {} is not available".format(api_version)) self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) @@ -97,7 +96,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * v3.0: :mod:`v3_0.models` * v3.1: :mod:`v3_1.models` - * v3.2-preview.1: :mod:`v3_2_preview_1.models` + * v3.2-preview.2: :mod:`v3_2_preview_2.models` """ if api_version == 'v3.0': from .v3_0 import models @@ -105,8 +104,8 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == 'v3.1': from .v3_1 import models return models - elif api_version == 'v3.2-preview.1': - from .v3_2_preview_1 import models + elif api_version == 'v3.2-preview.2': + from .v3_2_preview_2 import models return models raise ValueError("API version {} is not available".format(api_version)) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py index 1271b33c08b2..d2621eaa925a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py @@ -9,16 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings +from typing import Any, List, Optional, Union # FIXME: have to manually reconfigure import path for multiapi operation mixin from ...aio._lro_async import AsyncAnalyzeHealthcareEntitiesLROPoller, AsyncAnalyzeHealthcareEntitiesLROPollingMethod, AsyncAnalyzeActionsLROPoller, AsyncAnalyzeActionsLROPollingMethod -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.polling.async_base_polling import AsyncLROBasePolling +from azure.core.polling import AsyncLROPoller class TextAnalyticsClientOperationsMixin(object): @@ -50,14 +45,14 @@ async def analyze_status( :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: AnalyzeJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('analyze_status') if api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'analyze_status'".format(api_version)) mixin_instance = OperationClass() @@ -79,22 +74,26 @@ async def begin_analyze( executed. :param body: Collection of documents to analyze and tasks to execute. - :type body: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeBatchInput + :type body: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeBatchInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + Pass in False for this operation to not poll, or pass in your own initialized polling object + for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) - :rtype: ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the + result of cls(response) + :rtype: + ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('begin_analyze') if api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_analyze'".format(api_version)) mixin_instance = OperationClass() @@ -118,19 +117,21 @@ async def begin_cancel_health_job( :type job_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncLROBasePolling. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncLROBasePolling. Pass in False + for this operation to not poll, or pass in your own initialized polling object for a personal + polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: + :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('begin_cancel_health_job') if api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_cancel_health_job'".format(api_version)) mixin_instance = OperationClass() @@ -155,14 +156,14 @@ async def begin_health( symptoms, etc) and their relations. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with the Text Analytics natural language @@ -173,19 +174,23 @@ async def begin_health( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncAnalyzeHealthcareEntitiesLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be + AsyncAnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll, + or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either + HealthcareJobState or the result of cls(response) + :rtype: + ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('begin_health') if api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_health'".format(api_version)) mixin_instance = OperationClass() @@ -212,7 +217,7 @@ async def entities_linking( the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -230,10 +235,10 @@ async def entities_linking( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: EntityLinkingResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_linking') @@ -241,8 +246,8 @@ async def entities_linking( from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass elif api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_linking'".format(api_version)) mixin_instance = OperationClass() @@ -254,7 +259,7 @@ async def entities_linking( # FIXME: this is handwritten if api_version == 'v3.0': return await mixin_instance.entities_linking(documents, model_version, show_stats, **kwargs) - elif api_version == 'v3.1' or api_version == "v3.2-preview.1": + elif api_version == 'v3.1' or api_version == "v3.2-preview.2": return await mixin_instance.entities_linking(documents, model_version, show_stats, logging_opt_out, string_index_type, **kwargs) async def entities_recognition_general( @@ -274,7 +279,7 @@ async def entities_recognition_general( Analytics API` for the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -292,10 +297,10 @@ async def entities_recognition_general( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: EntitiesResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_recognition_general') @@ -303,8 +308,8 @@ async def entities_recognition_general( from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass elif api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_recognition_general'".format(api_version)) mixin_instance = OperationClass() @@ -316,7 +321,7 @@ async def entities_recognition_general( # FIXME: this is handwritten if api_version == 'v3.0': return await mixin_instance.entities_recognition_general(documents, model_version, show_stats, **kwargs) - elif api_version == 'v3.1' or api_version == "v3.2-preview.1": + elif api_version == 'v3.1' or api_version == "v3.2-preview.2": return await mixin_instance.entities_recognition_general(documents, model_version, show_stats, logging_opt_out, string_index_type, **kwargs) async def entities_recognition_pii( @@ -339,7 +344,7 @@ async def entities_recognition_pii( list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -360,19 +365,19 @@ async def entities_recognition_pii( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory] :keyword callable cls: A custom type or function that will be passed the direct response :return: PiiResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_recognition_pii') if api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_recognition_pii'".format(api_version)) mixin_instance = OperationClass() @@ -408,14 +413,14 @@ async def health_status( :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: HealthcareJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('health_status') if api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'health_status'".format(api_version)) mixin_instance = OperationClass() @@ -441,7 +446,7 @@ async def key_phrases( enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -458,7 +463,7 @@ async def key_phrases( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyPhraseResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhraseResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('key_phrases') @@ -466,8 +471,8 @@ async def key_phrases( from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass elif api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'key_phrases'".format(api_version)) mixin_instance = OperationClass() @@ -479,7 +484,7 @@ async def key_phrases( # FIXME: this is handwritten if api_version == 'v3.0': return await mixin_instance.key_phrases(documents, model_version, show_stats, **kwargs) - elif api_version == 'v3.1' or api_version == "v3.2-preview.1": + elif api_version == 'v3.1' or api_version == "v3.2-preview.2": return await mixin_instance.key_phrases(documents, model_version, show_stats, logging_opt_out, **kwargs) async def languages( @@ -498,7 +503,7 @@ async def languages( enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -515,7 +520,7 @@ async def languages( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: LanguageResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.LanguageResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('languages') @@ -523,8 +528,8 @@ async def languages( from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass elif api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'languages'".format(api_version)) mixin_instance = OperationClass() @@ -536,7 +541,7 @@ async def languages( # FIXME: this is handwritten if api_version == 'v3.0': return await mixin_instance.languages(documents, model_version, show_stats, **kwargs) - elif api_version == 'v3.1' or api_version == "v3.2-preview.1": + elif api_version == 'v3.1' or api_version == "v3.2-preview.2": return await mixin_instance.languages(documents, model_version, show_stats, logging_opt_out, **kwargs) async def sentiment( @@ -556,7 +561,7 @@ async def sentiment( (targets and assessments). :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -577,10 +582,10 @@ async def sentiment( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: SentimentResponse, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('sentiment') @@ -588,8 +593,8 @@ async def sentiment( from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass elif api_version == 'v3.1': from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'sentiment'".format(api_version)) mixin_instance = OperationClass() @@ -601,5 +606,5 @@ async def sentiment( # FIXME: this is handwritten if api_version == 'v3.0': return await mixin_instance.sentiment(documents, model_version, show_stats, **kwargs) - elif api_version == 'v3.1' or api_version == "v3.2-preview.1": + elif api_version == 'v3.1' or api_version == "v3.2-preview.2": return await mixin_instance.sentiment(documents, model_version, show_stats, logging_opt_out, opinion_mining, string_index_type, **kwargs) \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py index 00cada7d6d11..aeebabb40c25 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py @@ -12,7 +12,6 @@ from typing import Any, Optional, TYPE_CHECKING from azure.core import AsyncPipelineClient -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin from msrest import Deserializer, Serializer @@ -22,6 +21,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials import TokenCredential from azure.core.credentials_async import AsyncTokenCredential class _SDKClient(object): @@ -53,7 +53,7 @@ class TextAnalyticsClient(TextAnalyticsClientOperationsMixin, MultiApiClientMixi :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = 'v3.2-preview.1' + DEFAULT_API_VERSION = 'v3.2-preview.2' _PROFILE_TAG = "azure.ai.textanalytics.TextAnalyticsClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { @@ -74,8 +74,8 @@ def __init__( base_url = '{Endpoint}/text/analytics/v3.0' elif api_version == 'v3.1': base_url = '{Endpoint}/text/analytics/v3.1' - elif api_version == 'v3.2-preview.1': - base_url = '{Endpoint}/text/analytics/v3.2-preview.1' + elif api_version == 'v3.2-preview.2': + base_url = '{Endpoint}/text/analytics/v3.2-preview.2' else: raise ValueError("API version {} is not available".format(api_version)) self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) @@ -95,7 +95,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * v3.0: :mod:`v3_0.models` * v3.1: :mod:`v3_1.models` - * v3.2-preview.1: :mod:`v3_2_preview_1.models` + * v3.2-preview.2: :mod:`v3_2_preview_2.models` """ if api_version == 'v3.0': from ..v3_0 import models @@ -103,8 +103,8 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == 'v3.1': from ..v3_1 import models return models - elif api_version == 'v3.2-preview.1': - from ..v3_2_preview_1 import models + elif api_version == 'v3.2-preview.2': + from ..v3_2_preview_2 import models return models raise ValueError("API version {} is not available".format(api_version)) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models.py index 2b7242edae9b..eb341f025c78 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models.py @@ -4,4 +4,4 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v3_2_preview_1.models import * +from .v3_2_preview_2.models import * diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_metadata.json b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_metadata.json index 76307d2f859c..2c7bf3972632 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_metadata.json +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_metadata.json @@ -5,13 +5,13 @@ "name": "TextAnalyticsClient", "filename": "_text_analytics_client", "description": "The Text Analytics API is a suite of text analytics web services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. No training data is needed to use this API; just bring your text data. This API uses advanced natural language processing techniques to deliver best in class predictions. Further documentation can be found in https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview.", - "base_url": null, - "custom_base_url": "\u0027{Endpoint}/text/analytics/v3.0\u0027", + "host_value": null, + "parameterized_host_template": "\u0027{Endpoint}/text/analytics/v3.0\u0027", "azure_arm": false, "has_lro_operations": false, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"PipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"AsyncPipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"PipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"AsyncPipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" }, "global_parameters": { "sync": { @@ -79,21 +79,20 @@ "config": { "credential": true, "credential_scopes": ["https://cognitiveservices.azure.com/.default"], - "credential_default_policy_type": "BearerTokenCredentialPolicy", - "credential_default_policy_type_has_async_version": true, - "credential_key_header_name": null, + "credential_call_sync": "policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)", + "credential_call_async": "policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)", "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { }, "operation_mixins": { - "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\"]}}}", - "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\"]}}}", + "sync_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"List\", \"Optional\"]}}}", + "async_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"List\", \"Optional\"]}}}", "operations": { "entities_recognition_general" : { "sync": { - "signature": "def entities_recognition_general(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "signature": "def entities_recognition_general(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.EntitiesResult\"\n", "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -105,7 +104,7 @@ }, "entities_linking" : { "sync": { - "signature": "def entities_linking(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "signature": "def entities_linking(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.EntityLinkingResult\"\n", "doc": "\"\"\"Linked entities from a well-known knowledge base.\n\nThe API returns a list of recognized entities with links to a well-known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -117,7 +116,7 @@ }, "key_phrases" : { "sync": { - "signature": "def key_phrases(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "signature": "def key_phrases(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.KeyPhraseResult\"\n", "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -129,7 +128,7 @@ }, "languages" : { "sync": { - "signature": "def languages(\n self,\n documents, # type: List[\"_models.LanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "signature": "def languages(\n self,\n documents, # type: List[\"_models.LanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.LanguageResult\"\n", "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -141,7 +140,7 @@ }, "sentiment" : { "sync": { - "signature": "def sentiment(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "signature": "def sentiment(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.SentimentResponse\"\n", "doc": "\"\"\"Sentiment.\n\nThe API returns a sentiment prediction, as well as sentiment scores for each sentiment class\n(Positive, Negative, and Neutral) for the document and each sentence within it. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_text_analytics_client.py index 1549d8848edb..27af5789fda3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_text_analytics_client.py @@ -6,29 +6,30 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from copy import deepcopy from typing import TYPE_CHECKING from azure.core import PipelineClient from msrest import Deserializer, Serializer +from . import models +from ._configuration import TextAnalyticsClientConfiguration +from .operations import TextAnalyticsClientOperationsMixin + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential - from azure.core.pipeline.transport import HttpRequest, HttpResponse - -from ._configuration import TextAnalyticsClientConfiguration -from .operations import TextAnalyticsClientOperationsMixin -from . import models - + from azure.core.rest import HttpRequest, HttpResponse class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): """The Text Analytics API is a suite of text analytics web services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. No training data is needed to use this API; just bring your text data. This API uses advanced natural language processing techniques to deliver best in class predictions. Further documentation can be found in https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview. :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: + https://westus.api.cognitive.microsoft.com). :type endpoint: str """ @@ -39,33 +40,46 @@ def __init__( **kwargs # type: Any ): # type: (...) -> None - base_url = '{Endpoint}/text/analytics/v3.0' + _base_url = '{Endpoint}/text/analytics/v3.0' self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) - self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + self._client = PipelineClient(base_url=_base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False - def _send_request(self, http_request, **kwargs): - # type: (HttpRequest, Any) -> HttpResponse + def _send_request( + self, + request, # type: HttpRequest + **kwargs # type: Any + ): + # type: (...) -> HttpResponse """Runs the network request through the client's chained policies. - :param http_request: The network request you want to make. Required. - :type http_request: ~azure.core.pipeline.transport.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = client._send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.pipeline.transport.HttpResponse + :rtype: ~azure.core.rest.HttpResponse """ + + request_copy = deepcopy(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - http_request.url = self._client.format_url(http_request.url, **path_format_arguments) - stream = kwargs.pop("stream", True) - pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) - return pipeline_response.http_response + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) def close(self): # type: () -> None diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_vendor.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_vendor.py new file mode 100644 index 000000000000..9a223d15524c --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_vendor.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.core.pipeline.transport import HttpRequest + +def _convert_request(request, files=None): + data = request.content if not files else None + request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) + if files: + request.set_formdata_body(files) + return request diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client.py index 2453bcc1b7cf..8b931109b766 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/_text_analytics_client.py @@ -6,27 +6,28 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, TYPE_CHECKING +from copy import deepcopy +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.rest import AsyncHttpResponse, HttpRequest from msrest import Deserializer, Serializer -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - +from .. import models from ._configuration import TextAnalyticsClientConfiguration from .operations import TextAnalyticsClientOperationsMixin -from .. import models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): """The Text Analytics API is a suite of text analytics web services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. No training data is needed to use this API; just bring your text data. This API uses advanced natural language processing techniques to deliver best in class predictions. Further documentation can be found in https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview. :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: + https://westus.api.cognitive.microsoft.com). :type endpoint: str """ @@ -36,32 +37,45 @@ def __init__( endpoint: str, **kwargs: Any ) -> None: - base_url = '{Endpoint}/text/analytics/v3.0' + _base_url = '{Endpoint}/text/analytics/v3.0' self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) - self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) + self._client = AsyncPipelineClient(base_url=_base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False - async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + def _send_request( + self, + request: HttpRequest, + **kwargs: Any + ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. - :param http_request: The network request you want to make. Required. - :type http_request: ~azure.core.pipeline.transport.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = await client._send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + :rtype: ~azure.core.rest.AsyncHttpResponse """ + + request_copy = deepcopy(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - http_request.url = self._client.format_url(http_request.url, **path_format_arguments) - stream = kwargs.pop("stream", True) - pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) - return pipeline_response.http_response + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) async def close(self) -> None: await self._client.close() diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py index 34b14601e9af..358d23615dee 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py @@ -5,20 +5,26 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import functools from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator_async import distributed_trace_async from ... import models as _models +from ..._vendor import _convert_request +from ...operations._text_analytics_client_operations import build_entities_linking_request, build_entities_recognition_general_request, build_key_phrases_request, build_languages_request, build_sentiment_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class TextAnalyticsClientOperationsMixin: + @distributed_trace_async async def entities_recognition_general( self, documents: List["_models.MultiLanguageInput"], @@ -52,39 +58,30 @@ async def entities_recognition_general( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_general.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_general_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.entities_recognition_general.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntitiesResult', pipeline_response) @@ -93,8 +90,11 @@ async def entities_recognition_general( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore + + @distributed_trace_async async def entities_linking( self, documents: List["_models.MultiLanguageInput"], @@ -127,39 +127,30 @@ async def entities_linking( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_linking.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_linking_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.entities_linking.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntityLinkingResult', pipeline_response) @@ -168,8 +159,11 @@ async def entities_linking( return cls(pipeline_response, deserialized, {}) return deserialized + entities_linking.metadata = {'url': '/entities/linking'} # type: ignore + + @distributed_trace_async async def key_phrases( self, documents: List["_models.MultiLanguageInput"], @@ -202,39 +196,30 @@ async def key_phrases( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.key_phrases.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_key_phrases_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.key_phrases.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('KeyPhraseResult', pipeline_response) @@ -243,8 +228,11 @@ async def key_phrases( return cls(pipeline_response, deserialized, {}) return deserialized + key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore + + @distributed_trace_async async def languages( self, documents: List["_models.LanguageInput"], @@ -278,39 +266,30 @@ async def languages( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.LanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.languages.metadata['url'] # type: ignore + _input = _models.LanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'LanguageBatchInput') + + request = build_languages_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.languages.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'LanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('LanguageResult', pipeline_response) @@ -319,8 +298,11 @@ async def languages( return cls(pipeline_response, deserialized, {}) return deserialized + languages.metadata = {'url': '/languages'} # type: ignore + + @distributed_trace_async async def sentiment( self, documents: List["_models.MultiLanguageInput"], @@ -354,39 +336,30 @@ async def sentiment( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.sentiment.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_sentiment_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.sentiment.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SentimentResponse', pipeline_response) @@ -395,4 +368,6 @@ async def sentiment( return cls(pipeline_response, deserialized, {}) return deserialized + sentiment.metadata = {'url': '/sentiment'} # type: ignore + diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models.py index 9a13949fe30d..b47d3f0319b6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models.py @@ -15,14 +15,14 @@ class DetectedLanguage(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param name: Required. Long name of a detected language (e.g. English, French). - :type name: str - :param iso6391_name: Required. A two letter representation of the detected language according - to the ISO 639-1 standard (e.g. en, fr). - :type iso6391_name: str - :param confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + :ivar name: Required. Long name of a detected language (e.g. English, French). + :vartype name: str + :ivar iso6391_name: Required. A two letter representation of the detected language according to + the ISO 639-1 standard (e.g. en, fr). + :vartype iso6391_name: str + :ivar confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. - :type confidence_score: float + :vartype confidence_score: float """ _validation = { @@ -41,6 +41,16 @@ def __init__( self, **kwargs ): + """ + :keyword name: Required. Long name of a detected language (e.g. English, French). + :paramtype name: str + :keyword iso6391_name: Required. A two letter representation of the detected language according + to the ISO 639-1 standard (e.g. en, fr). + :paramtype iso6391_name: str + :keyword confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :paramtype confidence_score: float + """ super(DetectedLanguage, self).__init__(**kwargs) self.name = kwargs['name'] self.iso6391_name = kwargs['iso6391_name'] @@ -52,15 +62,15 @@ class DocumentEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_0.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_0.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -80,6 +90,17 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_0.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + """ super(DocumentEntities, self).__init__(**kwargs) self.id = kwargs['id'] self.entities = kwargs['entities'] @@ -92,10 +113,10 @@ class DocumentError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Document Id. - :type id: str - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError + :ivar id: Required. Document Id. + :vartype id: str + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError """ _validation = { @@ -112,6 +133,12 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Document Id. + :paramtype id: str + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError + """ super(DocumentError, self).__init__(**kwargs) self.id = kwargs['id'] self.error = kwargs['error'] @@ -122,16 +149,16 @@ class DocumentKeyPhrases(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param key_phrases: Required. A list of representative words or phrases. The number of key + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar key_phrases: Required. A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document. - :type key_phrases: list[str] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :vartype key_phrases: list[str] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -151,6 +178,18 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :paramtype key_phrases: list[str] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + """ super(DocumentKeyPhrases, self).__init__(**kwargs) self.id = kwargs['id'] self.key_phrases = kwargs['key_phrases'] @@ -163,15 +202,15 @@ class DocumentLanguage(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param detected_language: Required. Detected Language. - :type detected_language: ~azure.ai.textanalytics.v3_0.models.DetectedLanguage - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar detected_language: Required. Detected Language. + :vartype detected_language: ~azure.ai.textanalytics.v3_0.models.DetectedLanguage + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -191,6 +230,17 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword detected_language: Required. Detected Language. + :paramtype detected_language: ~azure.ai.textanalytics.v3_0.models.DetectedLanguage + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + """ super(DocumentLanguage, self).__init__(**kwargs) self.id = kwargs['id'] self.detected_language = kwargs['detected_language'] @@ -203,15 +253,15 @@ class DocumentLinkedEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized well-known entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_0.models.LinkedEntity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized well-known entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_0.models.LinkedEntity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -231,6 +281,17 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized well-known entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_0.models.LinkedEntity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + """ super(DocumentLinkedEntities, self).__init__(**kwargs) self.id = kwargs['id'] self.entities = kwargs['entities'] @@ -243,21 +304,22 @@ class DocumentSentiment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). Possible values include: "positive", "neutral", "negative", "mixed". - :type sentiment: str or ~azure.ai.textanalytics.v3_0.models.DocumentSentimentValue - :param statistics: if showStats=true was specified in the request this field will contain + :vartype sentiment: str or ~azure.ai.textanalytics.v3_0.models.DocumentSentimentValue + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics - :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :ivar confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 for each sentiment class. - :type confidence_scores: ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel - :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.v3_0.models.SentenceSentiment] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel + :ivar sentences: Required. Sentence level sentiment analysis. + :vartype sentences: list[~azure.ai.textanalytics.v3_0.models.SentenceSentiment] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] """ _validation = { @@ -281,6 +343,24 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_0.models.DocumentSentimentValue + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :keyword confidence_scores: Required. Document level sentiment confidence scores between 0 and + 1 for each sentiment class. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel + :keyword sentences: Required. Sentence level sentiment analysis. + :paramtype sentences: list[~azure.ai.textanalytics.v3_0.models.SentenceSentiment] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + """ super(DocumentSentiment, self).__init__(**kwargs) self.id = kwargs['id'] self.sentiment = kwargs['sentiment'] @@ -295,10 +375,10 @@ class DocumentStatistics(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param characters_count: Required. Number of text elements recognized in the document. - :type characters_count: int - :param transactions_count: Required. Number of transactions for the document. - :type transactions_count: int + :ivar characters_count: Required. Number of text elements recognized in the document. + :vartype characters_count: int + :ivar transactions_count: Required. Number of transactions for the document. + :vartype transactions_count: int """ _validation = { @@ -315,6 +395,12 @@ def __init__( self, **kwargs ): + """ + :keyword characters_count: Required. Number of text elements recognized in the document. + :paramtype characters_count: int + :keyword transactions_count: Required. Number of transactions for the document. + :paramtype transactions_count: int + """ super(DocumentStatistics, self).__init__(**kwargs) self.characters_count = kwargs['characters_count'] self.transactions_count = kwargs['transactions_count'] @@ -325,15 +411,15 @@ class EntitiesResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -353,6 +439,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(EntitiesResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -365,18 +462,18 @@ class Entity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Entity type, such as Person/Location/Org/SSN etc. - :type category: str - :param subcategory: Entity sub type, such as Age/Year/TimeRange etc. - :type subcategory: str - :param offset: Required. Start position (in Unicode characters) for the entity text. - :type offset: int - :param length: Required. Length (in Unicode characters) for the entity text. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Entity type, such as Person/Location/Org/SSN etc. + :vartype category: str + :ivar subcategory: Entity sub type, such as Age/Year/TimeRange etc. + :vartype subcategory: str + :ivar offset: Required. Start position (in Unicode characters) for the entity text. + :vartype offset: int + :ivar length: Required. Length (in Unicode characters) for the entity text. + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float """ _validation = { @@ -400,6 +497,20 @@ def __init__( self, **kwargs ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Entity type, such as Person/Location/Org/SSN etc. + :paramtype category: str + :keyword subcategory: Entity sub type, such as Age/Year/TimeRange etc. + :paramtype subcategory: str + :keyword offset: Required. Start position (in Unicode characters) for the entity text. + :paramtype offset: int + :keyword length: Required. Length (in Unicode characters) for the entity text. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ super(Entity, self).__init__(**kwargs) self.text = kwargs['text'] self.category = kwargs['category'] @@ -414,15 +525,15 @@ class EntityLinkingResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLinkedEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLinkedEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -442,6 +553,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLinkedEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(EntityLinkingResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -454,8 +576,8 @@ class ErrorResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError """ _validation = { @@ -470,6 +592,10 @@ def __init__( self, **kwargs ): + """ + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError + """ super(ErrorResponse, self).__init__(**kwargs) self.error = kwargs['error'] @@ -479,19 +605,19 @@ class InnerError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "invalidParameterValue", + :ivar code: Required. Error code. Possible values include: "invalidParameterValue", "invalidRequestBodyFormat", "emptyRequest", "missingInputRecords", "invalidDocument", "modelVersionIncorrect", "invalidDocumentBatch", "unsupportedLanguageCode", "invalidCountryHint". - :type code: str or ~azure.ai.textanalytics.v3_0.models.InnerErrorCodeValue - :param message: Required. Error message. - :type message: str - :param details: Error details. - :type details: dict[str, str] - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_0.models.InnerError + :vartype code: str or ~azure.ai.textanalytics.v3_0.models.InnerErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar details: Error details. + :vartype details: dict[str, str] + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_0.models.InnerError """ _validation = { @@ -511,6 +637,21 @@ def __init__( self, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "invalidParameterValue", + "invalidRequestBodyFormat", "emptyRequest", "missingInputRecords", "invalidDocument", + "modelVersionIncorrect", "invalidDocumentBatch", "unsupportedLanguageCode", + "invalidCountryHint". + :paramtype code: str or ~azure.ai.textanalytics.v3_0.models.InnerErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword details: Error details. + :paramtype details: dict[str, str] + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_0.models.InnerError + """ super(InnerError, self).__init__(**kwargs) self.code = kwargs['code'] self.message = kwargs['message'] @@ -524,15 +665,15 @@ class KeyPhraseResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentKeyPhrases] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentKeyPhrases] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -552,6 +693,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentKeyPhrases] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(KeyPhraseResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -564,8 +716,8 @@ class LanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. - :type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] + :ivar documents: Required. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] """ _validation = { @@ -580,6 +732,10 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] + """ super(LanguageBatchInput, self).__init__(**kwargs) self.documents = kwargs['documents'] @@ -589,12 +745,12 @@ class LanguageInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param text: Required. - :type text: str - :param country_hint: - :type country_hint: str + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. + :vartype text: str + :ivar country_hint: + :vartype country_hint: str """ _validation = { @@ -612,6 +768,14 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. + :paramtype text: str + :keyword country_hint: + :paramtype country_hint: str + """ super(LanguageInput, self).__init__(**kwargs) self.id = kwargs['id'] self.text = kwargs['text'] @@ -623,15 +787,15 @@ class LanguageResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLanguage] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLanguage] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -651,6 +815,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLanguage] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(LanguageResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -663,19 +838,18 @@ class LinkedEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param name: Required. Entity Linking formal name. - :type name: str - :param matches: Required. List of instances this entity appears in the text. - :type matches: list[~azure.ai.textanalytics.v3_0.models.Match] - :param language: Required. Language used in the data source. - :type language: str - :param id: Unique identifier of the recognized entity from the data source. - :type id: str - :param url: Required. URL for the entity's page from the data source. - :type url: str - :param data_source: Required. Data source used to extract entity linking, such as Wiki/Bing - etc. - :type data_source: str + :ivar name: Required. Entity Linking formal name. + :vartype name: str + :ivar matches: Required. List of instances this entity appears in the text. + :vartype matches: list[~azure.ai.textanalytics.v3_0.models.Match] + :ivar language: Required. Language used in the data source. + :vartype language: str + :ivar id: Unique identifier of the recognized entity from the data source. + :vartype id: str + :ivar url: Required. URL for the entity's page from the data source. + :vartype url: str + :ivar data_source: Required. Data source used to extract entity linking, such as Wiki/Bing etc. + :vartype data_source: str """ _validation = { @@ -699,6 +873,21 @@ def __init__( self, **kwargs ): + """ + :keyword name: Required. Entity Linking formal name. + :paramtype name: str + :keyword matches: Required. List of instances this entity appears in the text. + :paramtype matches: list[~azure.ai.textanalytics.v3_0.models.Match] + :keyword language: Required. Language used in the data source. + :paramtype language: str + :keyword id: Unique identifier of the recognized entity from the data source. + :paramtype id: str + :keyword url: Required. URL for the entity's page from the data source. + :paramtype url: str + :keyword data_source: Required. Data source used to extract entity linking, such as Wiki/Bing + etc. + :paramtype data_source: str + """ super(LinkedEntity, self).__init__(**kwargs) self.name = kwargs['name'] self.matches = kwargs['matches'] @@ -713,15 +902,15 @@ class Match(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param confidence_score: Required. If a well-known item is recognized, a decimal number - denoting the confidence level between 0 and 1 will be returned. - :type confidence_score: float - :param text: Required. Entity text as appears in the request. - :type text: str - :param offset: Required. Start position (in Unicode characters) for the entity match text. - :type offset: int - :param length: Required. Length (in Unicode characters) for the entity match text. - :type length: int + :ivar confidence_score: Required. If a well-known item is recognized, a decimal number denoting + the confidence level between 0 and 1 will be returned. + :vartype confidence_score: float + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar offset: Required. Start position (in Unicode characters) for the entity match text. + :vartype offset: int + :ivar length: Required. Length (in Unicode characters) for the entity match text. + :vartype length: int """ _validation = { @@ -742,6 +931,17 @@ def __init__( self, **kwargs ): + """ + :keyword confidence_score: Required. If a well-known item is recognized, a decimal number + denoting the confidence level between 0 and 1 will be returned. + :paramtype confidence_score: float + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword offset: Required. Start position (in Unicode characters) for the entity match text. + :paramtype offset: int + :keyword length: Required. Length (in Unicode characters) for the entity match text. + :paramtype length: int + """ super(Match, self).__init__(**kwargs) self.confidence_score = kwargs['confidence_score'] self.text = kwargs['text'] @@ -754,8 +954,8 @@ class MultiLanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] + :ivar documents: Required. The set of documents to process as part of this batch. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] """ _validation = { @@ -770,6 +970,10 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. The set of documents to process as part of this batch. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] + """ super(MultiLanguageBatchInput, self).__init__(**kwargs) self.documents = kwargs['documents'] @@ -779,14 +983,14 @@ class MultiLanguageInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. A unique, non-empty document identifier. - :type id: str - :param text: Required. The input text to process. - :type text: str - :param language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + :ivar id: Required. A unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. The input text to process. + :vartype text: str + :ivar language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default. - :type language: str + :vartype language: str """ _validation = { @@ -804,6 +1008,16 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. A unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. The input text to process. + :paramtype text: str + :keyword language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :paramtype language: str + """ super(MultiLanguageInput, self).__init__(**kwargs) self.id = kwargs['id'] self.text = kwargs['text'] @@ -815,16 +1029,16 @@ class RequestStatistics(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents_count: Required. Number of documents submitted in the request. - :type documents_count: int - :param valid_documents_count: Required. Number of valid documents. This excludes empty, + :ivar documents_count: Required. Number of documents submitted in the request. + :vartype documents_count: int + :ivar valid_documents_count: Required. Number of valid documents. This excludes empty, over-size limit or non-supported languages documents. - :type valid_documents_count: int - :param erroneous_documents_count: Required. Number of invalid documents. This includes empty, + :vartype valid_documents_count: int + :ivar erroneous_documents_count: Required. Number of invalid documents. This includes empty, over-size limit or non-supported languages documents. - :type erroneous_documents_count: int - :param transactions_count: Required. Number of transactions for the request. - :type transactions_count: long + :vartype erroneous_documents_count: int + :ivar transactions_count: Required. Number of transactions for the request. + :vartype transactions_count: long """ _validation = { @@ -845,6 +1059,18 @@ def __init__( self, **kwargs ): + """ + :keyword documents_count: Required. Number of documents submitted in the request. + :paramtype documents_count: int + :keyword valid_documents_count: Required. Number of valid documents. This excludes empty, + over-size limit or non-supported languages documents. + :paramtype valid_documents_count: int + :keyword erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :paramtype erroneous_documents_count: int + :keyword transactions_count: Required. Number of transactions for the request. + :paramtype transactions_count: long + """ super(RequestStatistics, self).__init__(**kwargs) self.documents_count = kwargs['documents_count'] self.valid_documents_count = kwargs['valid_documents_count'] @@ -857,18 +1083,19 @@ class SentenceSentiment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. The sentence text. - :type text: str - :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: + :ivar text: Required. The sentence text. + :vartype text: str + :ivar sentiment: Required. The predicted Sentiment for the sentence. Possible values include: "positive", "neutral", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_0.models.SentenceSentimentValue - :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + :vartype sentiment: str or ~azure.ai.textanalytics.v3_0.models.SentenceSentimentValue + :ivar confidence_scores: Required. The sentiment confidence score between 0 and 1 for the sentence for all classes. - :type confidence_scores: ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel - :param offset: Required. The sentence offset from the start of the document. - :type offset: int - :param length: Required. The length of the sentence by Unicode standard. - :type length: int + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel + :ivar offset: Required. The sentence offset from the start of the document. + :vartype offset: int + :ivar length: Required. The length of the sentence by Unicode standard. + :vartype length: int """ _validation = { @@ -891,6 +1118,21 @@ def __init__( self, **kwargs ): + """ + :keyword text: Required. The sentence text. + :paramtype text: str + :keyword sentiment: Required. The predicted Sentiment for the sentence. Possible values + include: "positive", "neutral", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_0.models.SentenceSentimentValue + :keyword confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel + :keyword offset: Required. The sentence offset from the start of the document. + :paramtype offset: int + :keyword length: Required. The length of the sentence by Unicode standard. + :paramtype length: int + """ super(SentenceSentiment, self).__init__(**kwargs) self.text = kwargs['text'] self.sentiment = kwargs['sentiment'] @@ -904,12 +1146,12 @@ class SentimentConfidenceScorePerLabel(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param positive: Required. - :type positive: float - :param neutral: Required. - :type neutral: float - :param negative: Required. - :type negative: float + :ivar positive: Required. + :vartype positive: float + :ivar neutral: Required. + :vartype neutral: float + :ivar negative: Required. + :vartype negative: float """ _validation = { @@ -928,6 +1170,14 @@ def __init__( self, **kwargs ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword neutral: Required. + :paramtype neutral: float + :keyword negative: Required. + :paramtype negative: float + """ super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) self.positive = kwargs['positive'] self.neutral = kwargs['neutral'] @@ -939,15 +1189,15 @@ class SentimentResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Sentiment analysis per document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentSentiment] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Sentiment analysis per document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentSentiment] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -967,6 +1217,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Sentiment analysis per document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentSentiment] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(SentimentResponse, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -979,17 +1240,17 @@ class TextAnalyticsError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "invalidRequest", - "invalidArgument", "internalServerError", "serviceUnavailable". - :type code: str or ~azure.ai.textanalytics.v3_0.models.ErrorCodeValue - :param message: Required. Error message. - :type message: str - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_0.models.InnerError - :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsError] + :ivar code: Required. Error code. Possible values include: "invalidRequest", "invalidArgument", + "internalServerError", "serviceUnavailable". + :vartype code: str or ~azure.ai.textanalytics.v3_0.models.ErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_0.models.InnerError + :ivar details: Details about specific errors that led to this reported error. + :vartype details: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsError] """ _validation = { @@ -1009,6 +1270,19 @@ def __init__( self, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "invalidRequest", + "invalidArgument", "internalServerError", "serviceUnavailable". + :paramtype code: str or ~azure.ai.textanalytics.v3_0.models.ErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_0.models.InnerError + :keyword details: Details about specific errors that led to this reported error. + :paramtype details: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsError] + """ super(TextAnalyticsError, self).__init__(**kwargs) self.code = kwargs['code'] self.message = kwargs['message'] @@ -1022,13 +1296,13 @@ class TextAnalyticsWarning(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "LongWordsInDocument", + :ivar code: Required. Error code. Possible values include: "LongWordsInDocument", "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.v3_0.models.WarningCodeValue - :param message: Required. Warning message. - :type message: str - :param target_ref: A JSON pointer reference indicating the target object. - :type target_ref: str + :vartype code: str or ~azure.ai.textanalytics.v3_0.models.WarningCodeValue + :ivar message: Required. Warning message. + :vartype message: str + :ivar target_ref: A JSON pointer reference indicating the target object. + :vartype target_ref: str """ _validation = { @@ -1046,6 +1320,15 @@ def __init__( self, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :paramtype code: str or ~azure.ai.textanalytics.v3_0.models.WarningCodeValue + :keyword message: Required. Warning message. + :paramtype message: str + :keyword target_ref: A JSON pointer reference indicating the target object. + :paramtype target_ref: str + """ super(TextAnalyticsWarning, self).__init__(**kwargs) self.code = kwargs['code'] self.message = kwargs['message'] diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models_py3.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models_py3.py index 56f6eaa51439..356e2c20b49e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models_py3.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_models_py3.py @@ -19,14 +19,14 @@ class DetectedLanguage(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param name: Required. Long name of a detected language (e.g. English, French). - :type name: str - :param iso6391_name: Required. A two letter representation of the detected language according - to the ISO 639-1 standard (e.g. en, fr). - :type iso6391_name: str - :param confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + :ivar name: Required. Long name of a detected language (e.g. English, French). + :vartype name: str + :ivar iso6391_name: Required. A two letter representation of the detected language according to + the ISO 639-1 standard (e.g. en, fr). + :vartype iso6391_name: str + :ivar confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. - :type confidence_score: float + :vartype confidence_score: float """ _validation = { @@ -49,6 +49,16 @@ def __init__( confidence_score: float, **kwargs ): + """ + :keyword name: Required. Long name of a detected language (e.g. English, French). + :paramtype name: str + :keyword iso6391_name: Required. A two letter representation of the detected language according + to the ISO 639-1 standard (e.g. en, fr). + :paramtype iso6391_name: str + :keyword confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :paramtype confidence_score: float + """ super(DetectedLanguage, self).__init__(**kwargs) self.name = name self.iso6391_name = iso6391_name @@ -60,15 +70,15 @@ class DocumentEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_0.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_0.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -93,6 +103,17 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_0.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + """ super(DocumentEntities, self).__init__(**kwargs) self.id = id self.entities = entities @@ -105,10 +126,10 @@ class DocumentError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Document Id. - :type id: str - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError + :ivar id: Required. Document Id. + :vartype id: str + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError """ _validation = { @@ -128,6 +149,12 @@ def __init__( error: "TextAnalyticsError", **kwargs ): + """ + :keyword id: Required. Document Id. + :paramtype id: str + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError + """ super(DocumentError, self).__init__(**kwargs) self.id = id self.error = error @@ -138,16 +165,16 @@ class DocumentKeyPhrases(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param key_phrases: Required. A list of representative words or phrases. The number of key + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar key_phrases: Required. A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document. - :type key_phrases: list[str] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :vartype key_phrases: list[str] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -172,6 +199,18 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :paramtype key_phrases: list[str] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + """ super(DocumentKeyPhrases, self).__init__(**kwargs) self.id = id self.key_phrases = key_phrases @@ -184,15 +223,15 @@ class DocumentLanguage(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param detected_language: Required. Detected Language. - :type detected_language: ~azure.ai.textanalytics.v3_0.models.DetectedLanguage - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar detected_language: Required. Detected Language. + :vartype detected_language: ~azure.ai.textanalytics.v3_0.models.DetectedLanguage + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -217,6 +256,17 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword detected_language: Required. Detected Language. + :paramtype detected_language: ~azure.ai.textanalytics.v3_0.models.DetectedLanguage + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + """ super(DocumentLanguage, self).__init__(**kwargs) self.id = id self.detected_language = detected_language @@ -229,15 +279,15 @@ class DocumentLinkedEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized well-known entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_0.models.LinkedEntity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized well-known entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_0.models.LinkedEntity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics """ _validation = { @@ -262,6 +312,17 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized well-known entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_0.models.LinkedEntity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + """ super(DocumentLinkedEntities, self).__init__(**kwargs) self.id = id self.entities = entities @@ -274,21 +335,22 @@ class DocumentSentiment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). Possible values include: "positive", "neutral", "negative", "mixed". - :type sentiment: str or ~azure.ai.textanalytics.v3_0.models.DocumentSentimentValue - :param statistics: if showStats=true was specified in the request this field will contain + :vartype sentiment: str or ~azure.ai.textanalytics.v3_0.models.DocumentSentimentValue + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics - :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :ivar confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 for each sentiment class. - :type confidence_scores: ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel - :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.v3_0.models.SentenceSentiment] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel + :ivar sentences: Required. Sentence level sentiment analysis. + :vartype sentences: list[~azure.ai.textanalytics.v3_0.models.SentenceSentiment] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] """ _validation = { @@ -319,6 +381,24 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_0.models.DocumentSentimentValue + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.DocumentStatistics + :keyword confidence_scores: Required. Document level sentiment confidence scores between 0 and + 1 for each sentiment class. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel + :keyword sentences: Required. Sentence level sentiment analysis. + :paramtype sentences: list[~azure.ai.textanalytics.v3_0.models.SentenceSentiment] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsWarning] + """ super(DocumentSentiment, self).__init__(**kwargs) self.id = id self.sentiment = sentiment @@ -333,10 +413,10 @@ class DocumentStatistics(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param characters_count: Required. Number of text elements recognized in the document. - :type characters_count: int - :param transactions_count: Required. Number of transactions for the document. - :type transactions_count: int + :ivar characters_count: Required. Number of text elements recognized in the document. + :vartype characters_count: int + :ivar transactions_count: Required. Number of transactions for the document. + :vartype transactions_count: int """ _validation = { @@ -356,6 +436,12 @@ def __init__( transactions_count: int, **kwargs ): + """ + :keyword characters_count: Required. Number of text elements recognized in the document. + :paramtype characters_count: int + :keyword transactions_count: Required. Number of transactions for the document. + :paramtype transactions_count: int + """ super(DocumentStatistics, self).__init__(**kwargs) self.characters_count = characters_count self.transactions_count = transactions_count @@ -366,15 +452,15 @@ class EntitiesResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -399,6 +485,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(EntitiesResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -411,18 +508,18 @@ class Entity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Entity type, such as Person/Location/Org/SSN etc. - :type category: str - :param subcategory: Entity sub type, such as Age/Year/TimeRange etc. - :type subcategory: str - :param offset: Required. Start position (in Unicode characters) for the entity text. - :type offset: int - :param length: Required. Length (in Unicode characters) for the entity text. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Entity type, such as Person/Location/Org/SSN etc. + :vartype category: str + :ivar subcategory: Entity sub type, such as Age/Year/TimeRange etc. + :vartype subcategory: str + :ivar offset: Required. Start position (in Unicode characters) for the entity text. + :vartype offset: int + :ivar length: Required. Length (in Unicode characters) for the entity text. + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float """ _validation = { @@ -453,6 +550,20 @@ def __init__( subcategory: Optional[str] = None, **kwargs ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Entity type, such as Person/Location/Org/SSN etc. + :paramtype category: str + :keyword subcategory: Entity sub type, such as Age/Year/TimeRange etc. + :paramtype subcategory: str + :keyword offset: Required. Start position (in Unicode characters) for the entity text. + :paramtype offset: int + :keyword length: Required. Length (in Unicode characters) for the entity text. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ super(Entity, self).__init__(**kwargs) self.text = text self.category = category @@ -467,15 +578,15 @@ class EntityLinkingResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLinkedEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLinkedEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -500,6 +611,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLinkedEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(EntityLinkingResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -512,8 +634,8 @@ class ErrorResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError """ _validation = { @@ -530,6 +652,10 @@ def __init__( error: "TextAnalyticsError", **kwargs ): + """ + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_0.models.TextAnalyticsError + """ super(ErrorResponse, self).__init__(**kwargs) self.error = error @@ -539,19 +665,19 @@ class InnerError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "invalidParameterValue", + :ivar code: Required. Error code. Possible values include: "invalidParameterValue", "invalidRequestBodyFormat", "emptyRequest", "missingInputRecords", "invalidDocument", "modelVersionIncorrect", "invalidDocumentBatch", "unsupportedLanguageCode", "invalidCountryHint". - :type code: str or ~azure.ai.textanalytics.v3_0.models.InnerErrorCodeValue - :param message: Required. Error message. - :type message: str - :param details: Error details. - :type details: dict[str, str] - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_0.models.InnerError + :vartype code: str or ~azure.ai.textanalytics.v3_0.models.InnerErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar details: Error details. + :vartype details: dict[str, str] + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_0.models.InnerError """ _validation = { @@ -577,6 +703,21 @@ def __init__( innererror: Optional["InnerError"] = None, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "invalidParameterValue", + "invalidRequestBodyFormat", "emptyRequest", "missingInputRecords", "invalidDocument", + "modelVersionIncorrect", "invalidDocumentBatch", "unsupportedLanguageCode", + "invalidCountryHint". + :paramtype code: str or ~azure.ai.textanalytics.v3_0.models.InnerErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword details: Error details. + :paramtype details: dict[str, str] + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_0.models.InnerError + """ super(InnerError, self).__init__(**kwargs) self.code = code self.message = message @@ -590,15 +731,15 @@ class KeyPhraseResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentKeyPhrases] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentKeyPhrases] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -623,6 +764,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentKeyPhrases] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(KeyPhraseResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -635,8 +787,8 @@ class LanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. - :type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] + :ivar documents: Required. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] """ _validation = { @@ -653,6 +805,10 @@ def __init__( documents: List["LanguageInput"], **kwargs ): + """ + :keyword documents: Required. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] + """ super(LanguageBatchInput, self).__init__(**kwargs) self.documents = documents @@ -662,12 +818,12 @@ class LanguageInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param text: Required. - :type text: str - :param country_hint: - :type country_hint: str + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. + :vartype text: str + :ivar country_hint: + :vartype country_hint: str """ _validation = { @@ -689,6 +845,14 @@ def __init__( country_hint: Optional[str] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. + :paramtype text: str + :keyword country_hint: + :paramtype country_hint: str + """ super(LanguageInput, self).__init__(**kwargs) self.id = id self.text = text @@ -700,15 +864,15 @@ class LanguageResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLanguage] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLanguage] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -733,6 +897,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentLanguage] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(LanguageResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -745,19 +920,18 @@ class LinkedEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param name: Required. Entity Linking formal name. - :type name: str - :param matches: Required. List of instances this entity appears in the text. - :type matches: list[~azure.ai.textanalytics.v3_0.models.Match] - :param language: Required. Language used in the data source. - :type language: str - :param id: Unique identifier of the recognized entity from the data source. - :type id: str - :param url: Required. URL for the entity's page from the data source. - :type url: str - :param data_source: Required. Data source used to extract entity linking, such as Wiki/Bing - etc. - :type data_source: str + :ivar name: Required. Entity Linking formal name. + :vartype name: str + :ivar matches: Required. List of instances this entity appears in the text. + :vartype matches: list[~azure.ai.textanalytics.v3_0.models.Match] + :ivar language: Required. Language used in the data source. + :vartype language: str + :ivar id: Unique identifier of the recognized entity from the data source. + :vartype id: str + :ivar url: Required. URL for the entity's page from the data source. + :vartype url: str + :ivar data_source: Required. Data source used to extract entity linking, such as Wiki/Bing etc. + :vartype data_source: str """ _validation = { @@ -788,6 +962,21 @@ def __init__( id: Optional[str] = None, **kwargs ): + """ + :keyword name: Required. Entity Linking formal name. + :paramtype name: str + :keyword matches: Required. List of instances this entity appears in the text. + :paramtype matches: list[~azure.ai.textanalytics.v3_0.models.Match] + :keyword language: Required. Language used in the data source. + :paramtype language: str + :keyword id: Unique identifier of the recognized entity from the data source. + :paramtype id: str + :keyword url: Required. URL for the entity's page from the data source. + :paramtype url: str + :keyword data_source: Required. Data source used to extract entity linking, such as Wiki/Bing + etc. + :paramtype data_source: str + """ super(LinkedEntity, self).__init__(**kwargs) self.name = name self.matches = matches @@ -802,15 +991,15 @@ class Match(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param confidence_score: Required. If a well-known item is recognized, a decimal number - denoting the confidence level between 0 and 1 will be returned. - :type confidence_score: float - :param text: Required. Entity text as appears in the request. - :type text: str - :param offset: Required. Start position (in Unicode characters) for the entity match text. - :type offset: int - :param length: Required. Length (in Unicode characters) for the entity match text. - :type length: int + :ivar confidence_score: Required. If a well-known item is recognized, a decimal number denoting + the confidence level between 0 and 1 will be returned. + :vartype confidence_score: float + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar offset: Required. Start position (in Unicode characters) for the entity match text. + :vartype offset: int + :ivar length: Required. Length (in Unicode characters) for the entity match text. + :vartype length: int """ _validation = { @@ -836,6 +1025,17 @@ def __init__( length: int, **kwargs ): + """ + :keyword confidence_score: Required. If a well-known item is recognized, a decimal number + denoting the confidence level between 0 and 1 will be returned. + :paramtype confidence_score: float + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword offset: Required. Start position (in Unicode characters) for the entity match text. + :paramtype offset: int + :keyword length: Required. Length (in Unicode characters) for the entity match text. + :paramtype length: int + """ super(Match, self).__init__(**kwargs) self.confidence_score = confidence_score self.text = text @@ -848,8 +1048,8 @@ class MultiLanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] + :ivar documents: Required. The set of documents to process as part of this batch. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] """ _validation = { @@ -866,6 +1066,10 @@ def __init__( documents: List["MultiLanguageInput"], **kwargs ): + """ + :keyword documents: Required. The set of documents to process as part of this batch. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] + """ super(MultiLanguageBatchInput, self).__init__(**kwargs) self.documents = documents @@ -875,14 +1079,14 @@ class MultiLanguageInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. A unique, non-empty document identifier. - :type id: str - :param text: Required. The input text to process. - :type text: str - :param language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + :ivar id: Required. A unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. The input text to process. + :vartype text: str + :ivar language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default. - :type language: str + :vartype language: str """ _validation = { @@ -904,6 +1108,16 @@ def __init__( language: Optional[str] = None, **kwargs ): + """ + :keyword id: Required. A unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. The input text to process. + :paramtype text: str + :keyword language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :paramtype language: str + """ super(MultiLanguageInput, self).__init__(**kwargs) self.id = id self.text = text @@ -915,16 +1129,16 @@ class RequestStatistics(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents_count: Required. Number of documents submitted in the request. - :type documents_count: int - :param valid_documents_count: Required. Number of valid documents. This excludes empty, + :ivar documents_count: Required. Number of documents submitted in the request. + :vartype documents_count: int + :ivar valid_documents_count: Required. Number of valid documents. This excludes empty, over-size limit or non-supported languages documents. - :type valid_documents_count: int - :param erroneous_documents_count: Required. Number of invalid documents. This includes empty, + :vartype valid_documents_count: int + :ivar erroneous_documents_count: Required. Number of invalid documents. This includes empty, over-size limit or non-supported languages documents. - :type erroneous_documents_count: int - :param transactions_count: Required. Number of transactions for the request. - :type transactions_count: long + :vartype erroneous_documents_count: int + :ivar transactions_count: Required. Number of transactions for the request. + :vartype transactions_count: long """ _validation = { @@ -950,6 +1164,18 @@ def __init__( transactions_count: int, **kwargs ): + """ + :keyword documents_count: Required. Number of documents submitted in the request. + :paramtype documents_count: int + :keyword valid_documents_count: Required. Number of valid documents. This excludes empty, + over-size limit or non-supported languages documents. + :paramtype valid_documents_count: int + :keyword erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :paramtype erroneous_documents_count: int + :keyword transactions_count: Required. Number of transactions for the request. + :paramtype transactions_count: long + """ super(RequestStatistics, self).__init__(**kwargs) self.documents_count = documents_count self.valid_documents_count = valid_documents_count @@ -962,18 +1188,19 @@ class SentenceSentiment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. The sentence text. - :type text: str - :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: + :ivar text: Required. The sentence text. + :vartype text: str + :ivar sentiment: Required. The predicted Sentiment for the sentence. Possible values include: "positive", "neutral", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_0.models.SentenceSentimentValue - :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + :vartype sentiment: str or ~azure.ai.textanalytics.v3_0.models.SentenceSentimentValue + :ivar confidence_scores: Required. The sentiment confidence score between 0 and 1 for the sentence for all classes. - :type confidence_scores: ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel - :param offset: Required. The sentence offset from the start of the document. - :type offset: int - :param length: Required. The length of the sentence by Unicode standard. - :type length: int + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel + :ivar offset: Required. The sentence offset from the start of the document. + :vartype offset: int + :ivar length: Required. The length of the sentence by Unicode standard. + :vartype length: int """ _validation = { @@ -1002,6 +1229,21 @@ def __init__( length: int, **kwargs ): + """ + :keyword text: Required. The sentence text. + :paramtype text: str + :keyword sentiment: Required. The predicted Sentiment for the sentence. Possible values + include: "positive", "neutral", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_0.models.SentenceSentimentValue + :keyword confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_0.models.SentimentConfidenceScorePerLabel + :keyword offset: Required. The sentence offset from the start of the document. + :paramtype offset: int + :keyword length: Required. The length of the sentence by Unicode standard. + :paramtype length: int + """ super(SentenceSentiment, self).__init__(**kwargs) self.text = text self.sentiment = sentiment @@ -1015,12 +1257,12 @@ class SentimentConfidenceScorePerLabel(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param positive: Required. - :type positive: float - :param neutral: Required. - :type neutral: float - :param negative: Required. - :type negative: float + :ivar positive: Required. + :vartype positive: float + :ivar neutral: Required. + :vartype neutral: float + :ivar negative: Required. + :vartype negative: float """ _validation = { @@ -1043,6 +1285,14 @@ def __init__( negative: float, **kwargs ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword neutral: Required. + :paramtype neutral: float + :keyword negative: Required. + :paramtype negative: float + """ super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) self.positive = positive self.neutral = neutral @@ -1054,15 +1304,15 @@ class SentimentResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Sentiment analysis per document. - :type documents: list[~azure.ai.textanalytics.v3_0.models.DocumentSentiment] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Sentiment analysis per document. + :vartype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentSentiment] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -1087,6 +1337,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Sentiment analysis per document. + :paramtype documents: list[~azure.ai.textanalytics.v3_0.models.DocumentSentiment] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_0.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_0.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(SentimentResponse, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -1099,17 +1360,17 @@ class TextAnalyticsError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "invalidRequest", - "invalidArgument", "internalServerError", "serviceUnavailable". - :type code: str or ~azure.ai.textanalytics.v3_0.models.ErrorCodeValue - :param message: Required. Error message. - :type message: str - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_0.models.InnerError - :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsError] + :ivar code: Required. Error code. Possible values include: "invalidRequest", "invalidArgument", + "internalServerError", "serviceUnavailable". + :vartype code: str or ~azure.ai.textanalytics.v3_0.models.ErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_0.models.InnerError + :ivar details: Details about specific errors that led to this reported error. + :vartype details: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsError] """ _validation = { @@ -1135,6 +1396,19 @@ def __init__( details: Optional[List["TextAnalyticsError"]] = None, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "invalidRequest", + "invalidArgument", "internalServerError", "serviceUnavailable". + :paramtype code: str or ~azure.ai.textanalytics.v3_0.models.ErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_0.models.InnerError + :keyword details: Details about specific errors that led to this reported error. + :paramtype details: list[~azure.ai.textanalytics.v3_0.models.TextAnalyticsError] + """ super(TextAnalyticsError, self).__init__(**kwargs) self.code = code self.message = message @@ -1148,13 +1422,13 @@ class TextAnalyticsWarning(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "LongWordsInDocument", + :ivar code: Required. Error code. Possible values include: "LongWordsInDocument", "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.v3_0.models.WarningCodeValue - :param message: Required. Warning message. - :type message: str - :param target_ref: A JSON pointer reference indicating the target object. - :type target_ref: str + :vartype code: str or ~azure.ai.textanalytics.v3_0.models.WarningCodeValue + :ivar message: Required. Warning message. + :vartype message: str + :ivar target_ref: A JSON pointer reference indicating the target object. + :vartype target_ref: str """ _validation = { @@ -1176,6 +1450,15 @@ def __init__( target_ref: Optional[str] = None, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :paramtype code: str or ~azure.ai.textanalytics.v3_0.models.WarningCodeValue + :keyword message: Required. Warning message. + :paramtype message: str + :keyword target_ref: A JSON pointer reference indicating the target object. + :paramtype target_ref: str + """ super(TextAnalyticsWarning, self).__init__(**kwargs) self.code = code self.message = message diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_text_analytics_client_enums.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_text_analytics_client_enums.py index 880e381d7da3..cae791e56103 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_text_analytics_client_enums.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/models/_text_analytics_client_enums.py @@ -6,27 +6,12 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from enum import Enum, EnumMeta +from enum import Enum from six import with_metaclass +from azure.core import CaseInsensitiveEnumMeta -class _CaseInsensitiveEnumMeta(EnumMeta): - def __getitem__(self, name): - return super().__getitem__(name.upper()) - def __getattr__(cls, name): - """Return the enum member matching `name` - We use __getattr__ instead of descriptors or inserting into the enum - class' __dict__ in order to support `name` and `value` being both - properties for enum members (which live in the class' __dict__) and - enum members themselves. - """ - try: - return cls._member_map_[name.upper()] - except KeyError: - raise AttributeError(name) - - -class DocumentSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class DocumentSentimentValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). """ @@ -35,7 +20,7 @@ class DocumentSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum) NEGATIVE = "negative" MIXED = "mixed" -class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class ErrorCodeValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ @@ -44,7 +29,7 @@ class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): INTERNAL_SERVER_ERROR = "internalServerError" SERVICE_UNAVAILABLE = "serviceUnavailable" -class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class InnerErrorCodeValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ @@ -58,7 +43,7 @@ class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): UNSUPPORTED_LANGUAGE_CODE = "unsupportedLanguageCode" INVALID_COUNTRY_HINT = "invalidCountryHint" -class SentenceSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class SentenceSentimentValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """The predicted Sentiment for the sentence. """ @@ -66,7 +51,7 @@ class SentenceSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum) NEUTRAL = "neutral" NEGATIVE = "negative" -class WarningCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class WarningCodeValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/operations/_text_analytics_client_operations.py index 913f3155c4c1..cc979c8445bc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/operations/_text_analytics_client_operations.py @@ -5,14 +5,19 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import functools from typing import TYPE_CHECKING import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from msrest import Serializer from .. import models as _models +from .._vendor import _convert_request if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -21,8 +26,182 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +_SERIALIZER = Serializer() +# fmt: off + +def build_entities_recognition_general_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/recognition/general') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_entities_linking_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/linking') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_key_phrases_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/keyPhrases') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_languages_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/languages') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_sentiment_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/sentiment') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + +# fmt: on class TextAnalyticsClientOperationsMixin(object): + @distributed_trace def entities_recognition_general( self, documents, # type: List["_models.MultiLanguageInput"] @@ -57,39 +236,30 @@ def entities_recognition_general( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_general.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_general_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.entities_recognition_general.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntitiesResult', pipeline_response) @@ -98,8 +268,11 @@ def entities_recognition_general( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore + + @distributed_trace def entities_linking( self, documents, # type: List["_models.MultiLanguageInput"] @@ -133,39 +306,30 @@ def entities_linking( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_linking.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_linking_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.entities_linking.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntityLinkingResult', pipeline_response) @@ -174,8 +338,11 @@ def entities_linking( return cls(pipeline_response, deserialized, {}) return deserialized + entities_linking.metadata = {'url': '/entities/linking'} # type: ignore + + @distributed_trace def key_phrases( self, documents, # type: List["_models.MultiLanguageInput"] @@ -209,39 +376,30 @@ def key_phrases( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.key_phrases.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_key_phrases_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.key_phrases.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('KeyPhraseResult', pipeline_response) @@ -250,8 +408,11 @@ def key_phrases( return cls(pipeline_response, deserialized, {}) return deserialized + key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore + + @distributed_trace def languages( self, documents, # type: List["_models.LanguageInput"] @@ -286,39 +447,30 @@ def languages( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.LanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.languages.metadata['url'] # type: ignore + _input = _models.LanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'LanguageBatchInput') + + request = build_languages_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.languages.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'LanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('LanguageResult', pipeline_response) @@ -327,8 +479,11 @@ def languages( return cls(pipeline_response, deserialized, {}) return deserialized + languages.metadata = {'url': '/languages'} # type: ignore + + @distributed_trace def sentiment( self, documents, # type: List["_models.MultiLanguageInput"] @@ -363,39 +518,30 @@ def sentiment( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.sentiment.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_sentiment_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + json=json, + template_url=self.sentiment.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SentimentResponse', pipeline_response) @@ -404,4 +550,6 @@ def sentiment( return cls(pipeline_response, deserialized, {}) return deserialized + sentiment.metadata = {'url': '/sentiment'} # type: ignore + diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_metadata.json b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_metadata.json index 28bb0368c3b1..a3d69330a7ad 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_metadata.json +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_metadata.json @@ -5,13 +5,13 @@ "name": "TextAnalyticsClient", "filename": "_text_analytics_client", "description": "The Text Analytics API is a suite of natural language processing (NLP) services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`\u003ca href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\"\u003ehttps://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\u003c/a\u003e`.", - "base_url": null, - "custom_base_url": "\u0027{Endpoint}/text/analytics/v3.1\u0027", + "host_value": null, + "parameterized_host_template": "\u0027{Endpoint}/text/analytics/v3.1\u0027", "azure_arm": false, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"PipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"AsyncPipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"PipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"AsyncPipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" }, "global_parameters": { "sync": { @@ -79,45 +79,44 @@ "config": { "credential": true, "credential_scopes": ["https://cognitiveservices.azure.com/.default"], - "credential_default_policy_type": "BearerTokenCredentialPolicy", - "credential_default_policy_type_has_async_version": true, - "credential_key_header_name": null, + "credential_call_sync": "policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)", + "credential_call_async": "policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)", "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { }, "operation_mixins": { - "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"...._lro\": [\"AnalyzeActionsLROPoller\", \"AnalyzeActionsLROPollingMethod\", \"AnalyzeHealthcareEntitiesLROPoller\", \"AnalyzeHealthcareEntitiesLROPollingMethod\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.core.polling.base_polling\": [\"LROBasePolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\", \"Union\"]}}}", - "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \".....aio._lro_async\": [\"AsyncAnalyzeActionsLROPoller\", \"AsyncAnalyzeActionsLROPollingMethod\", \"AsyncAnalyzeHealthcareEntitiesLROPoller\", \"AsyncAnalyzeHealthcareEntitiesLROPollingMethod\"], \"azure.core.polling\": [\"AsyncLROPoller\", \"AsyncNoPolling\", \"AsyncPollingMethod\"], \"azure.core.polling.async_base_polling\": [\"AsyncLROBasePolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\", \"Union\"]}}}", + "sync_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"List\", \"Optional\", \"Union\"]}, \"azurecore\": {\"...._lro\": [\"AnalyzeActionsLROPoller\", \"AnalyzeHealthcareEntitiesLROPoller\"], \"azure.core.polling\": [\"LROPoller\"]}}}", + "async_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"List\", \"Optional\", \"Union\"]}, \"azurecore\": {\".....aio._lro_async\": [\"AsyncAnalyzeActionsLROPoller\", \"AsyncAnalyzeHealthcareEntitiesLROPoller\"], \"azure.core.polling\": [\"AsyncLROPoller\"]}}}", "operations": { "_analyze_initial" : { "sync": { - "signature": "def _analyze_initial(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def _analyze_initial(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n # type: (...) -\u003e Optional[\"_models.AnalyzeJobState\"]\n", + "doc": "\"\"\"Submit analysis job.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def _analyze_initial(\n self,\n body: Optional[\"_models.AnalyzeBatchInput\"] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.AnalyzeJobState\"]:\n", - "doc": "\"\"\"\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Submit analysis job.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "body" }, "begin_analyze" : { "sync": { - "signature": "def begin_analyze(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response)\n:rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "signature": "def begin_analyze(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n # type: (...) -\u003e AnalyzeActionsLROPoller[\"_models.AnalyzeJobState\"]\n", + "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. Pass\n in False for this operation to not poll, or pass in your own initialized polling object for a\n personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the\n result of cls(response)\n:rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def begin_analyze(\n self,\n body: Optional[\"_models.AnalyzeBatchInput\"] = None,\n **kwargs: Any\n) -\u003e AsyncAnalyzeActionsLROPoller[\"_models.AnalyzeJobState\"]:\n", - "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response)\n:rtype: ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object\n for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the\n result of cls(response)\n:rtype:\n ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "body" }, "analyze_status" : { "sync": { - "signature": "def analyze_status(\n self,\n job_id, # type: str\n show_stats=None, # type: Optional[bool]\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n **kwargs # type: Any\n):\n", + "signature": "def analyze_status(\n self,\n job_id, # type: str\n show_stats=None, # type: Optional[bool]\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.AnalyzeJobState\"\n", "doc": "\"\"\"Get analysis status and results.\n\nGet the status of an analysis job. A job may consist of one or more tasks. Once all tasks are\ncompleted, the job will transition to the completed state and results will be available for\neach task.\n\n:param job_id: Job ID for Analyze.\n:type job_id: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -129,7 +128,7 @@ }, "health_status" : { "sync": { - "signature": "def health_status(\n self,\n job_id, # type: str\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "signature": "def health_status(\n self,\n job_id, # type: str\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.HealthcareJobState\"\n", "doc": "\"\"\"Get healthcare analysis job status and results.\n\nGet details of the healthcare prediction job specified by the jobId.\n\n:param job_id: Job ID.\n:type job_id: str\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -141,55 +140,55 @@ }, "_cancel_health_job_initial" : { "sync": { - "signature": "def _cancel_health_job_initial(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def _cancel_health_job_initial(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n # type: (...) -\u003e None\n", + "doc": "\"\"\"Cancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def _cancel_health_job_initial(\n self,\n job_id: str,\n **kwargs: Any\n) -\u003e None:\n", - "doc": "\"\"\"\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Cancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "job_id" }, "begin_cancel_health_job" : { "sync": { - "signature": "def begin_cancel_health_job(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be LROBasePolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "signature": "def begin_cancel_health_job(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n # type: (...) -\u003e LROPoller[None]\n", + "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be LROBasePolling. Pass in False for\n this operation to not poll, or pass in your own initialized polling object for a personal\n polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def begin_cancel_health_job(\n self,\n job_id: str,\n **kwargs: Any\n) -\u003e AsyncLROPoller[None]:\n", - "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncLROBasePolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncLROBasePolling. Pass in False\n for this operation to not poll, or pass in your own initialized polling object for a personal\n polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "job_id" }, "_health_initial" : { "sync": { - "signature": "def _health_initial(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def _health_initial(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e Optional[\"_models.HealthcareJobState\"]\n", + "doc": "\"\"\"Submit healthcare analysis job.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def _health_initial(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.HealthcareJobState\"]:\n", - "doc": "\"\"\"\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Submit healthcare analysis job.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, string_index_type, logging_opt_out" }, "begin_health" : { "sync": { - "signature": "def begin_health(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeHealthcareEntitiesLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response)\n:rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "signature": "def begin_health(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e AnalyzeHealthcareEntitiesLROPoller[\"_models.HealthcareJobState\"]\n", + "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be\n AnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll, or\n pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either\n HealthcareJobState or the result of cls(response)\n:rtype:\n ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def begin_health(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e AsyncAnalyzeHealthcareEntitiesLROPoller[\"_models.HealthcareJobState\"]:\n", - "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeHealthcareEntitiesLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response)\n:rtype: ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be\n AsyncAnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll,\n or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either\n HealthcareJobState or the result of cls(response)\n:rtype:\n ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, string_index_type, logging_opt_out" }, "entities_recognition_general" : { "sync": { - "signature": "def entities_recognition_general(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n", + "signature": "def entities_recognition_general(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.EntitiesResult\"\n", "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -201,7 +200,7 @@ }, "entities_recognition_pii" : { "sync": { - "signature": "def entities_recognition_pii(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n domain=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n pii_categories=None, # type: Optional[List[Union[str, \"_models.PiiCategory\"]]]\n **kwargs # type: Any\n):\n", + "signature": "def entities_recognition_pii(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n domain=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n pii_categories=None, # type: Optional[List[Union[str, \"_models.PiiCategory\"]]]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.PiiResult\"\n", "doc": "\"\"\"Entities containing personal information.\n\nThe API returns a list of entities with personal information (\\\"SSN\\\", \\\"Bank Account\\\" etc) in\nthe document. For the list of supported entity types, check :code:`\u003ca\nhref=\"https://aka.ms/tanerpii\"\u003eSupported Entity Types in Text Analytics API\u003c/a\u003e`. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param domain: (Optional) if specified, will set the PII domain to include only a subset of the\n entity categories. Possible values include: \u0027PHI\u0027, \u0027none\u0027.\n:type domain: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param pii_categories: (Optional) describes the PII categories to return.\n:type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory]\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PiiResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.PiiResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -213,7 +212,7 @@ }, "entities_linking" : { "sync": { - "signature": "def entities_linking(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n", + "signature": "def entities_linking(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.EntityLinkingResult\"\n", "doc": "\"\"\"Linked entities from a well known knowledge base.\n\nThe API returns a list of recognized entities with links to a well known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -225,7 +224,7 @@ }, "key_phrases" : { "sync": { - "signature": "def key_phrases(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "signature": "def key_phrases(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.KeyPhraseResult\"\n", "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -237,7 +236,7 @@ }, "languages" : { "sync": { - "signature": "def languages(\n self,\n documents, # type: List[\"_models.LanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "signature": "def languages(\n self,\n documents, # type: List[\"_models.LanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.LanguageResult\"\n", "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { @@ -249,7 +248,7 @@ }, "sentiment" : { "sync": { - "signature": "def sentiment(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n opinion_mining=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n", + "signature": "def sentiment(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n opinion_mining=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.SentimentResponse\"\n", "doc": "\"\"\"Sentiment.\n\nThe API returns a detailed sentiment analysis for the input text. The analysis is done in\nmultiple levels of granularity, start from the a document level, down to sentence and key terms\n(targets and assessments).\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param opinion_mining: (Optional) if set to true, response will contain not only sentiment\n prediction but also opinion mining (aspect-based sentiment analysis) results.\n:type opinion_mining: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py index 3ddfe5c33c8d..79760767eb6f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py @@ -6,31 +6,33 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from copy import deepcopy from typing import TYPE_CHECKING from azure.core import PipelineClient from msrest import Deserializer, Serializer +from . import models +from ._configuration import TextAnalyticsClientConfiguration +from .operations import TextAnalyticsClientOperationsMixin + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential - from azure.core.pipeline.transport import HttpRequest, HttpResponse - -from ._configuration import TextAnalyticsClientConfiguration -from .operations import TextAnalyticsClientOperationsMixin -from . import models - + from azure.core.rest import HttpRequest, HttpResponse class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): """The Text Analytics API is a suite of natural language processing (NLP) services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview`. :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: + https://westus.api.cognitive.microsoft.com). :type endpoint: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. """ def __init__( @@ -40,33 +42,46 @@ def __init__( **kwargs # type: Any ): # type: (...) -> None - base_url = '{Endpoint}/text/analytics/v3.1' + _base_url = '{Endpoint}/text/analytics/v3.1' self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) - self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + self._client = PipelineClient(base_url=_base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False - def _send_request(self, http_request, **kwargs): - # type: (HttpRequest, Any) -> HttpResponse + def _send_request( + self, + request, # type: HttpRequest + **kwargs # type: Any + ): + # type: (...) -> HttpResponse """Runs the network request through the client's chained policies. - :param http_request: The network request you want to make. Required. - :type http_request: ~azure.core.pipeline.transport.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = client._send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.pipeline.transport.HttpResponse + :rtype: ~azure.core.rest.HttpResponse """ + + request_copy = deepcopy(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - http_request.url = self._client.format_url(http_request.url, **path_format_arguments) - stream = kwargs.pop("stream", True) - pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) - return pipeline_response.http_response + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) def close(self): # type: () -> None diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_vendor.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_vendor.py new file mode 100644 index 000000000000..138f663c53a4 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_vendor.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.core.pipeline.transport import HttpRequest + +def _convert_request(request, files=None): + data = request.content if not files else None + request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) + if files: + request.set_formdata_body(files) + return request + +def _format_url_section(template, **kwargs): + components = template.split("/") + while components: + try: + return template.format(**kwargs) + except KeyError as key: + formatted_components = template.split("/") + components = [ + c for c in formatted_components if "{}".format(key.args[0]) not in c + ] + template = "/".join(components) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/_text_analytics_client.py index 32f4bb4051e0..975be64f0179 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/_text_analytics_client.py @@ -6,29 +6,31 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, TYPE_CHECKING +from copy import deepcopy +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.rest import AsyncHttpResponse, HttpRequest from msrest import Deserializer, Serializer -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - +from .. import models from ._configuration import TextAnalyticsClientConfiguration from .operations import TextAnalyticsClientOperationsMixin -from .. import models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): """The Text Analytics API is a suite of natural language processing (NLP) services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview`. :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: + https://westus.api.cognitive.microsoft.com). :type endpoint: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. """ def __init__( @@ -37,32 +39,45 @@ def __init__( endpoint: str, **kwargs: Any ) -> None: - base_url = '{Endpoint}/text/analytics/v3.1' + _base_url = '{Endpoint}/text/analytics/v3.1' self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) - self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) + self._client = AsyncPipelineClient(base_url=_base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False - async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + def _send_request( + self, + request: HttpRequest, + **kwargs: Any + ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. - :param http_request: The network request you want to make. Required. - :type http_request: ~azure.core.pipeline.transport.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = await client._send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + :rtype: ~azure.core.rest.AsyncHttpResponse """ + + request_copy = deepcopy(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - http_request.url = self._client.format_url(http_request.url, **path_format_arguments) - stream = kwargs.pop("stream", True) - pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) - return pipeline_response.http_response + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) async def close(self) -> None: await self._client.close() diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/operations/_text_analytics_client_operations.py index d8dd4b5e851a..f016a0f75863 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/operations/_text_analytics_client_operations.py @@ -5,17 +5,22 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import functools from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union import warnings from .....aio._lro_async import AsyncAnalyzeActionsLROPoller, AsyncAnalyzeActionsLROPollingMethod, AsyncAnalyzeHealthcareEntitiesLROPoller, AsyncAnalyzeHealthcareEntitiesLROPollingMethod from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.core.polling.async_base_polling import AsyncLROBasePolling +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator_async import distributed_trace_async from ... import models as _models +from ..._vendor import _convert_request +from ...operations._text_analytics_client_operations import build_analyze_request_initial, build_analyze_status_request, build_cancel_health_job_request_initial, build_entities_linking_request, build_entities_recognition_general_request, build_entities_recognition_pii_request, build_health_request_initial, build_health_status_request, build_key_phrases_request, build_languages_request, build_sentiment_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -32,53 +37,50 @@ async def _analyze_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" - # Construct URL - url = self._analyze_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] if body is not None: - body_content = self._serialize.body(body, 'AnalyzeBatchInput') + json = self._serialize.body(body, 'AnalyzeBatchInput') else: - body_content = None - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + json = None + + request = build_analyze_request_initial( + content_type=content_type, + json=json, + template_url=self._analyze_initial.metadata['url'], + ) + request = _convert_request(request) + path_format_arguments = { + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) - response_headers = {} deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('AnalyzeJobState', pipeline_response) if response.status_code == 202: response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized + _analyze_initial.metadata = {'url': '/analyze'} # type: ignore + + @distributed_trace_async async def begin_analyze( self, body: Optional["_models.AnalyzeBatchInput"] = None, @@ -94,14 +96,19 @@ async def begin_analyze( :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + Pass in False for this operation to not poll, or pass in your own initialized polling object + for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) - :rtype: ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the + result of cls(response) + :rtype: + ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.AnalyzeJobState"] lro_delay = kwargs.pop( 'polling_interval', @@ -111,25 +118,25 @@ async def begin_analyze( if cont_token is None: raw_result = await self._analyze_initial( body=body, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('AnalyzeJobState', pipeline_response) - if cls: return cls(pipeline_response, deserialized, {}) return deserialized + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AsyncAnalyzeActionsLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AsyncAnalyzeActionsLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -141,8 +148,10 @@ def get_long_running_output(pipeline_response): ) else: return AsyncAnalyzeActionsLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze.metadata = {'url': '/analyze'} # type: ignore + @distributed_trace_async async def analyze_status( self, job_id: str, @@ -178,36 +187,27 @@ async def analyze_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self.analyze_status.metadata['url'] # type: ignore + + request = build_analyze_status_request( + job_id=job_id, + show_stats=show_stats, + top=top, + skip=skip, + template_url=self.analyze_status.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=50, minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0) - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('AnalyzeJobState', pipeline_response) @@ -216,8 +216,11 @@ async def analyze_status( return cls(pipeline_response, deserialized, {}) return deserialized + analyze_status.metadata = {'url': '/analyze/jobs/{jobId}'} # type: ignore + + @distributed_trace_async async def health_status( self, job_id: str, @@ -251,36 +254,27 @@ async def health_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self.health_status.metadata['url'] # type: ignore + + request = build_health_status_request( + job_id=job_id, + top=top, + skip=skip, + show_stats=show_stats, + template_url=self.health_status.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=50, minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0) - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('HealthcareJobState', pipeline_response) @@ -289,8 +283,10 @@ async def health_status( return cls(pipeline_response, deserialized, {}) return deserialized + health_status.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore + async def _cancel_health_job_initial( self, job_id: str, @@ -301,40 +297,36 @@ async def _cancel_health_job_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self._cancel_health_job_initial.metadata['url'] # type: ignore + + request = build_cancel_health_job_request_initial( + job_id=job_id, + template_url=self._cancel_health_job_initial.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) response_headers = {} response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, None, response_headers) _cancel_health_job_initial.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore + + @distributed_trace_async async def begin_cancel_health_job( self, job_id: str, @@ -348,15 +340,17 @@ async def begin_cancel_health_job( :type job_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncLROBasePolling. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncLROBasePolling. Pass in False + for this operation to not poll, or pass in your own initialized polling object for a personal + polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -369,20 +363,18 @@ async def begin_cancel_health_job( cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AsyncLROBasePolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AsyncLROBasePolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -394,6 +386,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_cancel_health_job.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore async def _health_initial( @@ -410,57 +403,50 @@ async def _health_initial( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self._health_initial.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_health_request_initial( + content_type=content_type, + model_version=model_version, + string_index_type=string_index_type, + logging_opt_out=logging_opt_out, + json=json, + template_url=self._health_initial.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) - response_headers = {} deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('HealthcareJobState', pipeline_response) if response.status_code == 202: response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized + _health_initial.metadata = {'url': '/entities/health/jobs'} # type: ignore + + @distributed_trace_async async def begin_health( self, documents: List["_models.MultiLanguageInput"], @@ -493,15 +479,20 @@ async def begin_health( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncAnalyzeHealthcareEntitiesLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be + AsyncAnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll, + or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either + HealthcareJobState or the result of cls(response) + :rtype: + ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.HealthcareJobState"] lro_delay = kwargs.pop( 'polling_interval', @@ -514,25 +505,25 @@ async def begin_health( model_version=model_version, string_index_type=string_index_type, logging_opt_out=logging_opt_out, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('HealthcareJobState', pipeline_response) - if cls: return cls(pipeline_response, deserialized, {}) return deserialized + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AsyncAnalyzeHealthcareEntitiesLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AsyncAnalyzeHealthcareEntitiesLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -544,8 +535,10 @@ def get_long_running_output(pipeline_response): ) else: return AsyncAnalyzeHealthcareEntitiesLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_health.metadata = {'url': '/entities/health/jobs'} # type: ignore + @distributed_trace_async async def entities_recognition_general( self, documents: List["_models.MultiLanguageInput"], @@ -593,43 +586,32 @@ async def entities_recognition_general( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_general.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_general_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + string_index_type=string_index_type, + json=json, + template_url=self.entities_recognition_general.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntitiesResult', pipeline_response) @@ -638,8 +620,11 @@ async def entities_recognition_general( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore + + @distributed_trace_async async def entities_recognition_pii( self, documents: List["_models.MultiLanguageInput"], @@ -695,47 +680,34 @@ async def entities_recognition_pii( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_pii.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_pii_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + domain=domain, + string_index_type=string_index_type, + pii_categories=pii_categories, + json=json, + template_url=self.entities_recognition_pii.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if domain is not None: - query_parameters['domain'] = self._serialize.query("domain", domain, 'str') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - if pii_categories is not None: - query_parameters['piiCategories'] = self._serialize.query("pii_categories", pii_categories, '[str]', div=',') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('PiiResult', pipeline_response) @@ -744,8 +716,11 @@ async def entities_recognition_pii( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_pii.metadata = {'url': '/entities/recognition/pii'} # type: ignore + + @distributed_trace_async async def entities_linking( self, documents: List["_models.MultiLanguageInput"], @@ -792,43 +767,32 @@ async def entities_linking( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_linking.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_linking_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + string_index_type=string_index_type, + json=json, + template_url=self.entities_linking.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntityLinkingResult', pipeline_response) @@ -837,8 +801,11 @@ async def entities_linking( return cls(pipeline_response, deserialized, {}) return deserialized + entities_linking.metadata = {'url': '/entities/linking'} # type: ignore + + @distributed_trace_async async def key_phrases( self, documents: List["_models.MultiLanguageInput"], @@ -880,41 +847,31 @@ async def key_phrases( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.key_phrases.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_key_phrases_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + json=json, + template_url=self.key_phrases.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('KeyPhraseResult', pipeline_response) @@ -923,8 +880,11 @@ async def key_phrases( return cls(pipeline_response, deserialized, {}) return deserialized + key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore + + @distributed_trace_async async def languages( self, documents: List["_models.LanguageInput"], @@ -967,41 +927,31 @@ async def languages( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.LanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.languages.metadata['url'] # type: ignore + _input = _models.LanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'LanguageBatchInput') + + request = build_languages_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + json=json, + template_url=self.languages.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'LanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('LanguageResult', pipeline_response) @@ -1010,8 +960,11 @@ async def languages( return cls(pipeline_response, deserialized, {}) return deserialized + languages.metadata = {'url': '/languages'} # type: ignore + + @distributed_trace_async async def sentiment( self, documents: List["_models.MultiLanguageInput"], @@ -1062,45 +1015,33 @@ async def sentiment( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.sentiment.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_sentiment_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + opinion_mining=opinion_mining, + string_index_type=string_index_type, + json=json, + template_url=self.sentiment.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if opinion_mining is not None: - query_parameters['opinionMining'] = self._serialize.query("opinion_mining", opinion_mining, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SentimentResponse', pipeline_response) @@ -1109,4 +1050,6 @@ async def sentiment( return cls(pipeline_response, deserialized, {}) return deserialized + sentiment.metadata = {'url': '/sentiment'} # type: ignore + diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models.py index 69764c937670..f049bc1cdf92 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models.py @@ -15,9 +15,9 @@ class AnalysisInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param analysis_input: Required. Contains a set of input documents to be analyzed by the + :ivar analysis_input: Required. Contains a set of input documents to be analyzed by the service. - :type analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + :vartype analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput """ _validation = { @@ -32,6 +32,11 @@ def __init__( self, **kwargs ): + """ + :keyword analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :paramtype analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + """ super(AnalysisInput, self).__init__(**kwargs) self.analysis_input = kwargs['analysis_input'] @@ -41,9 +46,9 @@ class JobManifest(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the + :ivar tasks: Required. The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks + :vartype tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks """ _validation = { @@ -58,6 +63,11 @@ def __init__( self, **kwargs ): + """ + :keyword tasks: Required. The set of tasks to execute on the input documents. Cannot specify + the same task more than once. + :paramtype tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks + """ super(JobManifest, self).__init__(**kwargs) self.tasks = kwargs['tasks'] @@ -65,8 +75,8 @@ def __init__( class JobDescriptor(msrest.serialization.Model): """JobDescriptor. - :param display_name: Optional display name for the analysis job. - :type display_name: str + :ivar display_name: Optional display name for the analysis job. + :vartype display_name: str """ _attribute_map = { @@ -77,6 +87,10 @@ def __init__( self, **kwargs ): + """ + :keyword display_name: Optional display name for the analysis job. + :paramtype display_name: str + """ super(JobDescriptor, self).__init__(**kwargs) self.display_name = kwargs.get('display_name', None) @@ -86,14 +100,14 @@ class AnalyzeBatchInput(JobDescriptor, AnalysisInput, JobManifest): All required parameters must be populated in order to send to Azure. - :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the + :ivar tasks: Required. The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks - :param analysis_input: Required. Contains a set of input documents to be analyzed by the + :vartype tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks + :ivar analysis_input: Required. Contains a set of input documents to be analyzed by the service. - :type analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput - :param display_name: Optional display name for the analysis job. - :type display_name: str + :vartype analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + :ivar display_name: Optional display name for the analysis job. + :vartype display_name: str """ _validation = { @@ -111,6 +125,16 @@ def __init__( self, **kwargs ): + """ + :keyword tasks: Required. The set of tasks to execute on the input documents. Cannot specify + the same task more than once. + :paramtype tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks + :keyword analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :paramtype analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + :keyword display_name: Optional display name for the analysis job. + :paramtype display_name: str + """ super(AnalyzeBatchInput, self).__init__(**kwargs) self.tasks = kwargs['tasks'] self.analysis_input = kwargs['analysis_input'] @@ -123,8 +147,8 @@ def __init__( class AnalyzeJobDisplayName(msrest.serialization.Model): """AnalyzeJobDisplayName. - :param display_name: - :type display_name: str + :ivar display_name: + :vartype display_name: str """ _attribute_map = { @@ -135,6 +159,10 @@ def __init__( self, **kwargs ): + """ + :keyword display_name: + :paramtype display_name: str + """ super(AnalyzeJobDisplayName, self).__init__(**kwargs) self.display_name = kwargs.get('display_name', None) @@ -142,11 +170,11 @@ def __init__( class AnalyzeJobErrorsAndStatistics(msrest.serialization.Model): """AnalyzeJobErrorsAndStatistics. - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics """ _attribute_map = { @@ -158,6 +186,13 @@ def __init__( self, **kwargs ): + """ + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + """ super(AnalyzeJobErrorsAndStatistics, self).__init__(**kwargs) self.errors = kwargs.get('errors', None) self.statistics = kwargs.get('statistics', None) @@ -168,17 +203,17 @@ class JobMetadata(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -200,6 +235,19 @@ def __init__( self, **kwargs ): + """ + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(JobMetadata, self).__init__(**kwargs) self.created_date_time = kwargs['created_date_time'] self.expiration_date_time = kwargs.get('expiration_date_time', None) @@ -213,19 +261,19 @@ class AnalyzeJobMetadata(JobMetadata, AnalyzeJobDisplayName): All required parameters must be populated in order to send to Azure. - :param display_name: - :type display_name: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar display_name: + :vartype display_name: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -248,6 +296,21 @@ def __init__( self, **kwargs ): + """ + :keyword display_name: + :paramtype display_name: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(AnalyzeJobMetadata, self).__init__(**kwargs) self.display_name = kwargs.get('display_name', None) self.created_date_time = kwargs['created_date_time'] @@ -260,8 +323,8 @@ def __init__( class Pagination(msrest.serialization.Model): """Pagination. - :param next_link: - :type next_link: str + :ivar next_link: + :vartype next_link: str """ _attribute_map = { @@ -272,6 +335,10 @@ def __init__( self, **kwargs ): + """ + :keyword next_link: + :paramtype next_link: str + """ super(Pagination, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) @@ -281,8 +348,8 @@ class TasksState(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + :ivar tasks: Required. + :vartype tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks """ _validation = { @@ -297,6 +364,10 @@ def __init__( self, **kwargs ): + """ + :keyword tasks: Required. + :paramtype tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + """ super(TasksState, self).__init__(**kwargs) self.tasks = kwargs['tasks'] @@ -306,28 +377,28 @@ class AnalyzeJobState(AnalyzeJobMetadata, TasksState, AnalyzeJobErrorsAndStatist All required parameters must be populated in order to send to Azure. - :param next_link: - :type next_link: str - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar next_link: + :vartype next_link: str + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks - :param display_name: - :type display_name: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar tasks: Required. + :vartype tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + :ivar display_name: + :vartype display_name: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -355,6 +426,30 @@ def __init__( self, **kwargs ): + """ + :keyword next_link: + :paramtype next_link: str + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword tasks: Required. + :paramtype tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + :keyword display_name: + :paramtype display_name: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(AnalyzeJobState, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) self.errors = kwargs.get('errors', None) @@ -393,14 +488,14 @@ class DetectedLanguage(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param name: Required. Long name of a detected language (e.g. English, French). - :type name: str - :param iso6391_name: Required. A two letter representation of the detected language according - to the ISO 639-1 standard (e.g. en, fr). - :type iso6391_name: str - :param confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + :ivar name: Required. Long name of a detected language (e.g. English, French). + :vartype name: str + :ivar iso6391_name: Required. A two letter representation of the detected language according to + the ISO 639-1 standard (e.g. en, fr). + :vartype iso6391_name: str + :ivar confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. - :type confidence_score: float + :vartype confidence_score: float """ _validation = { @@ -419,6 +514,16 @@ def __init__( self, **kwargs ): + """ + :keyword name: Required. Long name of a detected language (e.g. English, French). + :paramtype name: str + :keyword iso6391_name: Required. A two letter representation of the detected language according + to the ISO 639-1 standard (e.g. en, fr). + :paramtype iso6391_name: str + :keyword confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :paramtype confidence_score: float + """ super(DetectedLanguage, self).__init__(**kwargs) self.name = kwargs['name'] self.iso6391_name = kwargs['iso6391_name'] @@ -430,15 +535,15 @@ class DocumentEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_1.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -458,6 +563,17 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentEntities, self).__init__(**kwargs) self.id = kwargs['id'] self.entities = kwargs['entities'] @@ -470,10 +586,10 @@ class DocumentError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Document Id. - :type id: str - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError + :ivar id: Required. Document Id. + :vartype id: str + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError """ _validation = { @@ -490,6 +606,12 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Document Id. + :paramtype id: str + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError + """ super(DocumentError, self).__init__(**kwargs) self.id = kwargs['id'] self.error = kwargs['error'] @@ -500,17 +622,17 @@ class DocumentHealthcareEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Healthcare entities. - :type entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntity] - :param relations: Required. Healthcare entity relations. - :type relations: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelation] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Healthcare entities. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntity] + :ivar relations: Required. Healthcare entity relations. + :vartype relations: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelation] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -532,6 +654,19 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Healthcare entities. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntity] + :keyword relations: Required. Healthcare entity relations. + :paramtype relations: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelation] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentHealthcareEntities, self).__init__(**kwargs) self.id = kwargs['id'] self.entities = kwargs['entities'] @@ -545,16 +680,16 @@ class DocumentKeyPhrases(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param key_phrases: Required. A list of representative words or phrases. The number of key + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar key_phrases: Required. A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document. - :type key_phrases: list[str] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :vartype key_phrases: list[str] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -574,6 +709,18 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :paramtype key_phrases: list[str] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentKeyPhrases, self).__init__(**kwargs) self.id = kwargs['id'] self.key_phrases = kwargs['key_phrases'] @@ -586,15 +733,15 @@ class DocumentLanguage(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param detected_language: Required. Detected Language. - :type detected_language: ~azure.ai.textanalytics.v3_1.models.DetectedLanguage - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar detected_language: Required. Detected Language. + :vartype detected_language: ~azure.ai.textanalytics.v3_1.models.DetectedLanguage + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -614,6 +761,17 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword detected_language: Required. Detected Language. + :paramtype detected_language: ~azure.ai.textanalytics.v3_1.models.DetectedLanguage + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentLanguage, self).__init__(**kwargs) self.id = kwargs['id'] self.detected_language = kwargs['detected_language'] @@ -626,15 +784,15 @@ class DocumentLinkedEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized well known entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_1.models.LinkedEntity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized well known entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.LinkedEntity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -654,6 +812,17 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized well known entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.LinkedEntity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentLinkedEntities, self).__init__(**kwargs) self.id = kwargs['id'] self.entities = kwargs['entities'] @@ -666,21 +835,22 @@ class DocumentSentiment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). Possible values include: "positive", "neutral", "negative", "mixed". - :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.DocumentSentimentValue - :param statistics: if showStats=true was specified in the request this field will contain + :vartype sentiment: str or ~azure.ai.textanalytics.v3_1.models.DocumentSentimentValue + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics - :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :ivar confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 for each sentiment class. - :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel - :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.v3_1.models.SentenceSentiment] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel + :ivar sentences: Required. Sentence level sentiment analysis. + :vartype sentences: list[~azure.ai.textanalytics.v3_1.models.SentenceSentiment] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] """ _validation = { @@ -704,6 +874,24 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_1.models.DocumentSentimentValue + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :keyword confidence_scores: Required. Document level sentiment confidence scores between 0 and + 1 for each sentiment class. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel + :keyword sentences: Required. Sentence level sentiment analysis. + :paramtype sentences: list[~azure.ai.textanalytics.v3_1.models.SentenceSentiment] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + """ super(DocumentSentiment, self).__init__(**kwargs) self.id = kwargs['id'] self.sentiment = kwargs['sentiment'] @@ -718,10 +906,10 @@ class DocumentStatistics(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param characters_count: Required. Number of text elements recognized in the document. - :type characters_count: int - :param transactions_count: Required. Number of transactions for the document. - :type transactions_count: int + :ivar characters_count: Required. Number of text elements recognized in the document. + :vartype characters_count: int + :ivar transactions_count: Required. Number of transactions for the document. + :vartype transactions_count: int """ _validation = { @@ -738,6 +926,12 @@ def __init__( self, **kwargs ): + """ + :keyword characters_count: Required. Number of text elements recognized in the document. + :paramtype characters_count: int + :keyword transactions_count: Required. Number of transactions for the document. + :paramtype transactions_count: int + """ super(DocumentStatistics, self).__init__(**kwargs) self.characters_count = kwargs['characters_count'] self.transactions_count = kwargs['transactions_count'] @@ -748,15 +942,15 @@ class EntitiesResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -776,6 +970,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(EntitiesResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -786,10 +991,10 @@ def __init__( class EntitiesTask(msrest.serialization.Model): """EntitiesTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.EntitiesTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.EntitiesTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -801,6 +1006,12 @@ def __init__( self, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.EntitiesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(EntitiesTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) self.task_name = kwargs.get('task_name', None) @@ -809,13 +1020,13 @@ def __init__( class EntitiesTaskParameters(msrest.serialization.Model): """EntitiesTaskParameters. - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + :vartype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -828,6 +1039,15 @@ def __init__( self, **kwargs ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + """ super(EntitiesTaskParameters, self).__init__(**kwargs) self.model_version = kwargs.get('model_version', "latest") self.logging_opt_out = kwargs.get('logging_opt_out', False) @@ -837,8 +1057,8 @@ def __init__( class EntitiesTaskResult(msrest.serialization.Model): """EntitiesTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult """ _attribute_map = { @@ -849,6 +1069,10 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + """ super(EntitiesTaskResult, self).__init__(**kwargs) self.results = kwargs.get('results', None) @@ -858,20 +1082,20 @@ class Entity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Entity type. - :type category: str - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Entity type. + :vartype category: str + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float """ _validation = { @@ -895,6 +1119,22 @@ def __init__( self, **kwargs ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Entity type. + :paramtype category: str + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ super(Entity, self).__init__(**kwargs) self.text = kwargs['text'] self.category = kwargs['category'] @@ -909,15 +1149,15 @@ class EntityLinkingResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLinkedEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLinkedEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -937,6 +1177,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLinkedEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(EntityLinkingResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -947,10 +1198,10 @@ def __init__( class EntityLinkingTask(msrest.serialization.Model): """EntityLinkingTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.EntityLinkingTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.EntityLinkingTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -962,6 +1213,12 @@ def __init__( self, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.EntityLinkingTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(EntityLinkingTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) self.task_name = kwargs.get('task_name', None) @@ -970,13 +1227,13 @@ def __init__( class EntityLinkingTaskParameters(msrest.serialization.Model): """EntityLinkingTaskParameters. - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + :vartype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -989,6 +1246,15 @@ def __init__( self, **kwargs ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + """ super(EntityLinkingTaskParameters, self).__init__(**kwargs) self.model_version = kwargs.get('model_version', "latest") self.logging_opt_out = kwargs.get('logging_opt_out', False) @@ -998,8 +1264,8 @@ def __init__( class EntityLinkingTaskResult(msrest.serialization.Model): """EntityLinkingTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult """ _attribute_map = { @@ -1010,6 +1276,10 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + """ super(EntityLinkingTaskResult, self).__init__(**kwargs) self.results = kwargs.get('results', None) @@ -1019,8 +1289,8 @@ class ErrorResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError """ _validation = { @@ -1035,6 +1305,10 @@ def __init__( self, **kwargs ): + """ + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError + """ super(ErrorResponse, self).__init__(**kwargs) self.error = kwargs['error'] @@ -1042,15 +1316,15 @@ def __init__( class HealthcareAssertion(msrest.serialization.Model): """HealthcareAssertion. - :param conditionality: Describes any conditionality on the entity. Possible values include: + :ivar conditionality: Describes any conditionality on the entity. Possible values include: "hypothetical", "conditional". - :type conditionality: str or ~azure.ai.textanalytics.v3_1.models.Conditionality - :param certainty: Describes the entities certainty and polarity. Possible values include: + :vartype conditionality: str or ~azure.ai.textanalytics.v3_1.models.Conditionality + :ivar certainty: Describes the entities certainty and polarity. Possible values include: "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". - :type certainty: str or ~azure.ai.textanalytics.v3_1.models.Certainty - :param association: Describes if the entity is the subject of the text or if it describes + :vartype certainty: str or ~azure.ai.textanalytics.v3_1.models.Certainty + :ivar association: Describes if the entity is the subject of the text or if it describes someone else. Possible values include: "subject", "other". - :type association: str or ~azure.ai.textanalytics.v3_1.models.Association + :vartype association: str or ~azure.ai.textanalytics.v3_1.models.Association """ _attribute_map = { @@ -1063,6 +1337,17 @@ def __init__( self, **kwargs ): + """ + :keyword conditionality: Describes any conditionality on the entity. Possible values include: + "hypothetical", "conditional". + :paramtype conditionality: str or ~azure.ai.textanalytics.v3_1.models.Conditionality + :keyword certainty: Describes the entities certainty and polarity. Possible values include: + "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". + :paramtype certainty: str or ~azure.ai.textanalytics.v3_1.models.Certainty + :keyword association: Describes if the entity is the subject of the text or if it describes + someone else. Possible values include: "subject", "other". + :paramtype association: str or ~azure.ai.textanalytics.v3_1.models.Association + """ super(HealthcareAssertion, self).__init__(**kwargs) self.conditionality = kwargs.get('conditionality', None) self.certainty = kwargs.get('certainty', None) @@ -1072,13 +1357,13 @@ def __init__( class HealthcareLinkingProperties(msrest.serialization.Model): """HealthcareLinkingProperties. - :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion - :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + :ivar assertion: + :vartype assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :ivar name: Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'. - :type name: str - :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + :vartype name: str + :ivar links: Entity references in known data sources. + :vartype links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] """ _attribute_map = { @@ -1091,6 +1376,15 @@ def __init__( self, **kwargs ): + """ + :keyword assertion: + :paramtype assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :keyword name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :paramtype name: str + :keyword links: Entity references in known data sources. + :paramtype links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + """ super(HealthcareLinkingProperties, self).__init__(**kwargs) self.assertion = kwargs.get('assertion', None) self.name = kwargs.get('name', None) @@ -1102,25 +1396,25 @@ class HealthcareEntityProperties(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Healthcare Entity Category. Possible values include: + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Healthcare Entity Category. Possible values include: "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". - :type category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' + :vartype category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float """ _validation = { @@ -1144,6 +1438,27 @@ def __init__( self, **kwargs ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :paramtype category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ super(HealthcareEntityProperties, self).__init__(**kwargs) self.text = kwargs['text'] self.category = kwargs['category'] @@ -1158,32 +1473,32 @@ class HealthcareEntity(HealthcareEntityProperties, HealthcareLinkingProperties): All required parameters must be populated in order to send to Azure. - :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion - :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + :ivar assertion: + :vartype assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :ivar name: Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'. - :type name: str - :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Healthcare Entity Category. Possible values include: + :vartype name: str + :ivar links: Entity references in known data sources. + :vartype links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Healthcare Entity Category. Possible values include: "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". - :type category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' + :vartype category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float """ _validation = { @@ -1210,6 +1525,34 @@ def __init__( self, **kwargs ): + """ + :keyword assertion: + :paramtype assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :keyword name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :paramtype name: str + :keyword links: Entity references in known data sources. + :paramtype links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :paramtype category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ super(HealthcareEntity, self).__init__(**kwargs) self.assertion = kwargs.get('assertion', None) self.name = kwargs.get('name', None) @@ -1227,10 +1570,10 @@ class HealthcareEntityLink(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. - :type data_source: str - :param id: Required. Entity id in the given source catalog. - :type id: str + :ivar data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + :vartype data_source: str + :ivar id: Required. Entity id in the given source catalog. + :vartype id: str """ _validation = { @@ -1247,6 +1590,12 @@ def __init__( self, **kwargs ): + """ + :keyword data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + :paramtype data_source: str + :keyword id: Required. Entity id in the given source catalog. + :paramtype id: str + """ super(HealthcareEntityLink, self).__init__(**kwargs) self.data_source = kwargs['data_source'] self.id = kwargs['id'] @@ -1255,10 +1604,10 @@ def __init__( class HealthcareTaskResult(msrest.serialization.Model): """HealthcareTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] """ _attribute_map = { @@ -1270,6 +1619,12 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + """ super(HealthcareTaskResult, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.errors = kwargs.get('errors', None) @@ -1280,23 +1635,23 @@ class HealthcareJobState(JobMetadata, Pagination, HealthcareTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] - :param next_link: - :type next_link: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar next_link: + :vartype next_link: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -1321,6 +1676,25 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :keyword next_link: + :paramtype next_link: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(HealthcareJobState, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.errors = kwargs.get('errors', None) @@ -1345,16 +1719,16 @@ class HealthcareRelation(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or + :ivar relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". - :type relation_type: str or ~azure.ai.textanalytics.v3_1.models.RelationType - :param entities: Required. The entities in the relation. - :type entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelationEntity] + :vartype relation_type: str or ~azure.ai.textanalytics.v3_1.models.RelationType + :ivar entities: Required. The entities in the relation. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelationEntity] """ _validation = { @@ -1371,6 +1745,18 @@ def __init__( self, **kwargs ): + """ + :keyword relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or + 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", + "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", + "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", + "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", + "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", + "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". + :paramtype relation_type: str or ~azure.ai.textanalytics.v3_1.models.RelationType + :keyword entities: Required. The entities in the relation. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelationEntity] + """ super(HealthcareRelation, self).__init__(**kwargs) self.relation_type = kwargs['relation_type'] self.entities = kwargs['entities'] @@ -1381,13 +1767,13 @@ class HealthcareRelationEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment + :ivar ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment Identifier Representation), pointing to the entity . - :type ref: str - :param role: Required. Role of entity in the relationship. For example: 'CD20-positive diffuse + :vartype ref: str + :ivar role: Required. Role of entity in the relationship. For example: 'CD20-positive diffuse large B-cell lymphoma' has the following entities with their roles in parenthesis: CD20 (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). - :type role: str + :vartype role: str """ _validation = { @@ -1404,6 +1790,15 @@ def __init__( self, **kwargs ): + """ + :keyword ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment + Identifier Representation), pointing to the entity . + :paramtype ref: str + :keyword role: Required. Role of entity in the relationship. For example: 'CD20-positive + diffuse large B-cell lymphoma' has the following entities with their roles in parenthesis: + CD20 (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). + :paramtype role: str + """ super(HealthcareRelationEntity, self).__init__(**kwargs) self.ref = kwargs['ref'] self.role = kwargs['role'] @@ -1414,15 +1809,15 @@ class HealthcareResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentHealthcareEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentHealthcareEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -1442,6 +1837,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentHealthcareEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(HealthcareResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -1454,19 +1860,19 @@ class InnerError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "InvalidParameterValue", + :ivar code: Required. Error code. Possible values include: "InvalidParameterValue", "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", "InvalidCountryHint". - :type code: str or ~azure.ai.textanalytics.v3_1.models.InnerErrorCodeValue - :param message: Required. Error message. - :type message: str - :param details: Error details. - :type details: dict[str, str] - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_1.models.InnerError + :vartype code: str or ~azure.ai.textanalytics.v3_1.models.InnerErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar details: Error details. + :vartype details: dict[str, str] + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_1.models.InnerError """ _validation = { @@ -1486,6 +1892,21 @@ def __init__( self, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "InvalidParameterValue", + "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", + "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", + "InvalidCountryHint". + :paramtype code: str or ~azure.ai.textanalytics.v3_1.models.InnerErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword details: Error details. + :paramtype details: dict[str, str] + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_1.models.InnerError + """ super(InnerError, self).__init__(**kwargs) self.code = kwargs['code'] self.message = kwargs['message'] @@ -1497,16 +1918,17 @@ def __init__( class JobManifestTasks(msrest.serialization.Model): """The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :param entity_recognition_tasks: - :type entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.EntitiesTask] - :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.PiiTask] - :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: list[~azure.ai.textanalytics.v3_1.models.KeyPhrasesTask] - :param entity_linking_tasks: - :type entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.EntityLinkingTask] - :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: list[~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTask] + :ivar entity_recognition_tasks: + :vartype entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.EntitiesTask] + :ivar entity_recognition_pii_tasks: + :vartype entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.PiiTask] + :ivar key_phrase_extraction_tasks: + :vartype key_phrase_extraction_tasks: list[~azure.ai.textanalytics.v3_1.models.KeyPhrasesTask] + :ivar entity_linking_tasks: + :vartype entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.EntityLinkingTask] + :ivar sentiment_analysis_tasks: + :vartype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTask] """ _attribute_map = { @@ -1521,6 +1943,20 @@ def __init__( self, **kwargs ): + """ + :keyword entity_recognition_tasks: + :paramtype entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.EntitiesTask] + :keyword entity_recognition_pii_tasks: + :paramtype entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.PiiTask] + :keyword key_phrase_extraction_tasks: + :paramtype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_1.models.KeyPhrasesTask] + :keyword entity_linking_tasks: + :paramtype entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.EntityLinkingTask] + :keyword sentiment_analysis_tasks: + :paramtype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTask] + """ super(JobManifestTasks, self).__init__(**kwargs) self.entity_recognition_tasks = kwargs.get('entity_recognition_tasks', None) self.entity_recognition_pii_tasks = kwargs.get('entity_recognition_pii_tasks', None) @@ -1534,15 +1970,15 @@ class KeyPhraseResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentKeyPhrases] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentKeyPhrases] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -1562,6 +1998,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentKeyPhrases] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(KeyPhraseResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -1572,10 +2019,10 @@ def __init__( class KeyPhrasesTask(msrest.serialization.Model): """KeyPhrasesTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.KeyPhrasesTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.KeyPhrasesTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -1587,6 +2034,12 @@ def __init__( self, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.KeyPhrasesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(KeyPhrasesTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) self.task_name = kwargs.get('task_name', None) @@ -1595,10 +2048,10 @@ def __init__( class KeyPhrasesTaskParameters(msrest.serialization.Model): """KeyPhrasesTaskParameters. - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool """ _attribute_map = { @@ -1610,6 +2063,12 @@ def __init__( self, **kwargs ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + """ super(KeyPhrasesTaskParameters, self).__init__(**kwargs) self.model_version = kwargs.get('model_version', "latest") self.logging_opt_out = kwargs.get('logging_opt_out', False) @@ -1618,8 +2077,8 @@ def __init__( class KeyPhraseTaskResult(msrest.serialization.Model): """KeyPhraseTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult """ _attribute_map = { @@ -1630,6 +2089,10 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + """ super(KeyPhraseTaskResult, self).__init__(**kwargs) self.results = kwargs.get('results', None) @@ -1639,8 +2102,8 @@ class LanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. - :type documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput] + :ivar documents: Required. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput] """ _validation = { @@ -1655,6 +2118,10 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput] + """ super(LanguageBatchInput, self).__init__(**kwargs) self.documents = kwargs['documents'] @@ -1664,12 +2131,12 @@ class LanguageInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param text: Required. - :type text: str - :param country_hint: - :type country_hint: str + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. + :vartype text: str + :ivar country_hint: + :vartype country_hint: str """ _validation = { @@ -1687,6 +2154,14 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. + :paramtype text: str + :keyword country_hint: + :paramtype country_hint: str + """ super(LanguageInput, self).__init__(**kwargs) self.id = kwargs['id'] self.text = kwargs['text'] @@ -1698,15 +2173,15 @@ class LanguageResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLanguage] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLanguage] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -1726,6 +2201,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLanguage] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(LanguageResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -1738,21 +2224,20 @@ class LinkedEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param name: Required. Entity Linking formal name. - :type name: str - :param matches: Required. List of instances this entity appears in the text. - :type matches: list[~azure.ai.textanalytics.v3_1.models.Match] - :param language: Required. Language used in the data source. - :type language: str - :param id: Unique identifier of the recognized entity from the data source. - :type id: str - :param url: Required. URL for the entity's page from the data source. - :type url: str - :param data_source: Required. Data source used to extract entity linking, such as Wiki/Bing - etc. - :type data_source: str - :param bing_id: Bing Entity Search API unique identifier of the recognized entity. - :type bing_id: str + :ivar name: Required. Entity Linking formal name. + :vartype name: str + :ivar matches: Required. List of instances this entity appears in the text. + :vartype matches: list[~azure.ai.textanalytics.v3_1.models.Match] + :ivar language: Required. Language used in the data source. + :vartype language: str + :ivar id: Unique identifier of the recognized entity from the data source. + :vartype id: str + :ivar url: Required. URL for the entity's page from the data source. + :vartype url: str + :ivar data_source: Required. Data source used to extract entity linking, such as Wiki/Bing etc. + :vartype data_source: str + :ivar bing_id: Bing Entity Search API unique identifier of the recognized entity. + :vartype bing_id: str """ _validation = { @@ -1777,6 +2262,23 @@ def __init__( self, **kwargs ): + """ + :keyword name: Required. Entity Linking formal name. + :paramtype name: str + :keyword matches: Required. List of instances this entity appears in the text. + :paramtype matches: list[~azure.ai.textanalytics.v3_1.models.Match] + :keyword language: Required. Language used in the data source. + :paramtype language: str + :keyword id: Unique identifier of the recognized entity from the data source. + :paramtype id: str + :keyword url: Required. URL for the entity's page from the data source. + :paramtype url: str + :keyword data_source: Required. Data source used to extract entity linking, such as Wiki/Bing + etc. + :paramtype data_source: str + :keyword bing_id: Bing Entity Search API unique identifier of the recognized entity. + :paramtype bing_id: str + """ super(LinkedEntity, self).__init__(**kwargs) self.name = kwargs['name'] self.matches = kwargs['matches'] @@ -1792,15 +2294,15 @@ class Match(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param confidence_score: Required. If a well known item is recognized, a decimal number - denoting the confidence level between 0 and 1 will be returned. - :type confidence_score: float - :param text: Required. Entity text as appears in the request. - :type text: str - :param offset: Required. Start position for the entity match text. - :type offset: int - :param length: Required. Length for the entity match text. - :type length: int + :ivar confidence_score: Required. If a well known item is recognized, a decimal number denoting + the confidence level between 0 and 1 will be returned. + :vartype confidence_score: float + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar offset: Required. Start position for the entity match text. + :vartype offset: int + :ivar length: Required. Length for the entity match text. + :vartype length: int """ _validation = { @@ -1821,6 +2323,17 @@ def __init__( self, **kwargs ): + """ + :keyword confidence_score: Required. If a well known item is recognized, a decimal number + denoting the confidence level between 0 and 1 will be returned. + :paramtype confidence_score: float + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword offset: Required. Start position for the entity match text. + :paramtype offset: int + :keyword length: Required. Length for the entity match text. + :paramtype length: int + """ super(Match, self).__init__(**kwargs) self.confidence_score = kwargs['confidence_score'] self.text = kwargs['text'] @@ -1833,8 +2346,8 @@ class MultiLanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput] + :ivar documents: Required. The set of documents to process as part of this batch. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput] """ _validation = { @@ -1849,6 +2362,10 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. The set of documents to process as part of this batch. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput] + """ super(MultiLanguageBatchInput, self).__init__(**kwargs) self.documents = kwargs['documents'] @@ -1858,14 +2375,14 @@ class MultiLanguageInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. A unique, non-empty document identifier. - :type id: str - :param text: Required. The input text to process. - :type text: str - :param language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + :ivar id: Required. A unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. The input text to process. + :vartype text: str + :ivar language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default. - :type language: str + :vartype language: str """ _validation = { @@ -1883,6 +2400,16 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. A unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. The input text to process. + :paramtype text: str + :keyword language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :paramtype language: str + """ super(MultiLanguageInput, self).__init__(**kwargs) self.id = kwargs['id'] self.text = kwargs['text'] @@ -1894,17 +2421,17 @@ class PiiDocumentEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param redacted_text: Required. Returns redacted text. - :type redacted_text: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_1.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar redacted_text: Required. Returns redacted text. + :vartype redacted_text: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -1926,6 +2453,19 @@ def __init__( self, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword redacted_text: Required. Returns redacted text. + :paramtype redacted_text: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(PiiDocumentEntities, self).__init__(**kwargs) self.id = kwargs['id'] self.redacted_text = kwargs['redacted_text'] @@ -1939,15 +2479,15 @@ class PiiResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.PiiDocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.PiiDocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -1967,6 +2507,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.PiiDocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(PiiResult, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -1977,10 +2528,10 @@ def __init__( class PiiTask(msrest.serialization.Model): """PiiTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.PiiTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.PiiTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -1992,6 +2543,12 @@ def __init__( self, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.PiiTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(PiiTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) self.task_name = kwargs.get('task_name', None) @@ -2000,17 +2557,17 @@ def __init__( class PiiTaskParameters(msrest.serialization.Model): """PiiTaskParameters. - :param domain: Possible values include: "phi", "none". Default value: "none". - :type domain: str or ~azure.ai.textanalytics.v3_1.models.PiiTaskParametersDomain - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + :ivar domain: Possible values include: "phi", "none". Default value: "none". + :vartype domain: str or ~azure.ai.textanalytics.v3_1.models.PiiTaskParametersDomain + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar pii_categories: (Optional) describes the PII categories to return. + :vartype pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + :vartype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _validation = { @@ -2029,6 +2586,19 @@ def __init__( self, **kwargs ): + """ + :keyword domain: Possible values include: "phi", "none". Default value: "none". + :paramtype domain: str or ~azure.ai.textanalytics.v3_1.models.PiiTaskParametersDomain + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword pii_categories: (Optional) describes the PII categories to return. + :paramtype pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + """ super(PiiTaskParameters, self).__init__(**kwargs) self.domain = kwargs.get('domain', "none") self.model_version = kwargs.get('model_version', "latest") @@ -2040,8 +2610,8 @@ def __init__( class PiiTaskResult(msrest.serialization.Model): """PiiTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.PiiResult + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.PiiResult """ _attribute_map = { @@ -2052,6 +2622,10 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.PiiResult + """ super(PiiTaskResult, self).__init__(**kwargs) self.results = kwargs.get('results', None) @@ -2061,16 +2635,16 @@ class RequestStatistics(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents_count: Required. Number of documents submitted in the request. - :type documents_count: int - :param valid_documents_count: Required. Number of valid documents. This excludes empty, + :ivar documents_count: Required. Number of documents submitted in the request. + :vartype documents_count: int + :ivar valid_documents_count: Required. Number of valid documents. This excludes empty, over-size limit or non-supported languages documents. - :type valid_documents_count: int - :param erroneous_documents_count: Required. Number of invalid documents. This includes empty, + :vartype valid_documents_count: int + :ivar erroneous_documents_count: Required. Number of invalid documents. This includes empty, over-size limit or non-supported languages documents. - :type erroneous_documents_count: int - :param transactions_count: Required. Number of transactions for the request. - :type transactions_count: long + :vartype erroneous_documents_count: int + :ivar transactions_count: Required. Number of transactions for the request. + :vartype transactions_count: long """ _validation = { @@ -2091,6 +2665,18 @@ def __init__( self, **kwargs ): + """ + :keyword documents_count: Required. Number of documents submitted in the request. + :paramtype documents_count: int + :keyword valid_documents_count: Required. Number of valid documents. This excludes empty, + over-size limit or non-supported languages documents. + :paramtype valid_documents_count: int + :keyword erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :paramtype erroneous_documents_count: int + :keyword transactions_count: Required. Number of transactions for the request. + :paramtype transactions_count: long + """ super(RequestStatistics, self).__init__(**kwargs) self.documents_count = kwargs['documents_count'] self.valid_documents_count = kwargs['valid_documents_count'] @@ -2103,19 +2689,19 @@ class SentenceAssessment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param sentiment: Required. Assessment sentiment in the sentence. Possible values include: + :ivar sentiment: Required. Assessment sentiment in the sentence. Possible values include: "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue - :param confidence_scores: Required. Assessment sentiment confidence scores in the sentence. - :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel - :param offset: Required. The assessment offset from the start of the sentence. - :type offset: int - :param length: Required. The length of the assessment. - :type length: int - :param text: Required. The assessment text detected. - :type text: str - :param is_negated: Required. The indicator representing if the assessment is negated. - :type is_negated: bool + :vartype sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue + :ivar confidence_scores: Required. Assessment sentiment confidence scores in the sentence. + :vartype confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel + :ivar offset: Required. The assessment offset from the start of the sentence. + :vartype offset: int + :ivar length: Required. The length of the assessment. + :vartype length: int + :ivar text: Required. The assessment text detected. + :vartype text: str + :ivar is_negated: Required. The indicator representing if the assessment is negated. + :vartype is_negated: bool """ _validation = { @@ -2140,6 +2726,21 @@ def __init__( self, **kwargs ): + """ + :keyword sentiment: Required. Assessment sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue + :keyword confidence_scores: Required. Assessment sentiment confidence scores in the sentence. + :paramtype confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel + :keyword offset: Required. The assessment offset from the start of the sentence. + :paramtype offset: int + :keyword length: Required. The length of the assessment. + :paramtype length: int + :keyword text: Required. The assessment text detected. + :paramtype text: str + :keyword is_negated: Required. The indicator representing if the assessment is negated. + :paramtype is_negated: bool + """ super(SentenceAssessment, self).__init__(**kwargs) self.sentiment = kwargs['sentiment'] self.confidence_scores = kwargs['confidence_scores'] @@ -2154,22 +2755,23 @@ class SentenceSentiment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. The sentence text. - :type text: str - :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: + :ivar text: Required. The sentence text. + :vartype text: str + :ivar sentiment: Required. The predicted Sentiment for the sentence. Possible values include: "positive", "neutral", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.SentenceSentimentValue - :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + :vartype sentiment: str or ~azure.ai.textanalytics.v3_1.models.SentenceSentimentValue + :ivar confidence_scores: Required. The sentiment confidence score between 0 and 1 for the sentence for all classes. - :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel - :param offset: Required. The sentence offset from the start of the document. - :type offset: int - :param length: Required. The length of the sentence. - :type length: int - :param targets: The array of sentence targets for the sentence. - :type targets: list[~azure.ai.textanalytics.v3_1.models.SentenceTarget] - :param assessments: The array of assessments for the sentence. - :type assessments: list[~azure.ai.textanalytics.v3_1.models.SentenceAssessment] + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel + :ivar offset: Required. The sentence offset from the start of the document. + :vartype offset: int + :ivar length: Required. The length of the sentence. + :vartype length: int + :ivar targets: The array of sentence targets for the sentence. + :vartype targets: list[~azure.ai.textanalytics.v3_1.models.SentenceTarget] + :ivar assessments: The array of assessments for the sentence. + :vartype assessments: list[~azure.ai.textanalytics.v3_1.models.SentenceAssessment] """ _validation = { @@ -2194,6 +2796,25 @@ def __init__( self, **kwargs ): + """ + :keyword text: Required. The sentence text. + :paramtype text: str + :keyword sentiment: Required. The predicted Sentiment for the sentence. Possible values + include: "positive", "neutral", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_1.models.SentenceSentimentValue + :keyword confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel + :keyword offset: Required. The sentence offset from the start of the document. + :paramtype offset: int + :keyword length: Required. The length of the sentence. + :paramtype length: int + :keyword targets: The array of sentence targets for the sentence. + :paramtype targets: list[~azure.ai.textanalytics.v3_1.models.SentenceTarget] + :keyword assessments: The array of assessments for the sentence. + :paramtype assessments: list[~azure.ai.textanalytics.v3_1.models.SentenceAssessment] + """ super(SentenceSentiment, self).__init__(**kwargs) self.text = kwargs['text'] self.sentiment = kwargs['sentiment'] @@ -2209,21 +2830,21 @@ class SentenceTarget(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param sentiment: Required. Targeted sentiment in the sentence. Possible values include: + :ivar sentiment: Required. Targeted sentiment in the sentence. Possible values include: "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue - :param confidence_scores: Required. Target sentiment confidence scores for the target in the + :vartype sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue + :ivar confidence_scores: Required. Target sentiment confidence scores for the target in the sentence. - :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel - :param offset: Required. The target offset from the start of the sentence. - :type offset: int - :param length: Required. The length of the target. - :type length: int - :param text: Required. The target text detected. - :type text: str - :param relations: Required. The array of either assessment or target objects which is related - to the target. - :type relations: list[~azure.ai.textanalytics.v3_1.models.TargetRelation] + :vartype confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel + :ivar offset: Required. The target offset from the start of the sentence. + :vartype offset: int + :ivar length: Required. The length of the target. + :vartype length: int + :ivar text: Required. The target text detected. + :vartype text: str + :ivar relations: Required. The array of either assessment or target objects which is related to + the target. + :vartype relations: list[~azure.ai.textanalytics.v3_1.models.TargetRelation] """ _validation = { @@ -2248,6 +2869,23 @@ def __init__( self, **kwargs ): + """ + :keyword sentiment: Required. Targeted sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue + :keyword confidence_scores: Required. Target sentiment confidence scores for the target in the + sentence. + :paramtype confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel + :keyword offset: Required. The target offset from the start of the sentence. + :paramtype offset: int + :keyword length: Required. The length of the target. + :paramtype length: int + :keyword text: Required. The target text detected. + :paramtype text: str + :keyword relations: Required. The array of either assessment or target objects which is related + to the target. + :paramtype relations: list[~azure.ai.textanalytics.v3_1.models.TargetRelation] + """ super(SentenceTarget, self).__init__(**kwargs) self.sentiment = kwargs['sentiment'] self.confidence_scores = kwargs['confidence_scores'] @@ -2260,10 +2898,10 @@ def __init__( class SentimentAnalysisTask(msrest.serialization.Model): """SentimentAnalysisTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -2275,6 +2913,12 @@ def __init__( self, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(SentimentAnalysisTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) self.task_name = kwargs.get('task_name', None) @@ -2283,15 +2927,15 @@ def __init__( class SentimentAnalysisTaskParameters(msrest.serialization.Model): """SentimentAnalysisTaskParameters. - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param opinion_mining: - :type opinion_mining: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar opinion_mining: + :vartype opinion_mining: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + :vartype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -2305,6 +2949,17 @@ def __init__( self, **kwargs ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword opinion_mining: + :paramtype opinion_mining: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + """ super(SentimentAnalysisTaskParameters, self).__init__(**kwargs) self.model_version = kwargs.get('model_version', "latest") self.logging_opt_out = kwargs.get('logging_opt_out', False) @@ -2317,12 +2972,12 @@ class SentimentConfidenceScorePerLabel(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param positive: Required. - :type positive: float - :param neutral: Required. - :type neutral: float - :param negative: Required. - :type negative: float + :ivar positive: Required. + :vartype positive: float + :ivar neutral: Required. + :vartype neutral: float + :ivar negative: Required. + :vartype negative: float """ _validation = { @@ -2341,6 +2996,14 @@ def __init__( self, **kwargs ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword neutral: Required. + :paramtype neutral: float + :keyword negative: Required. + :paramtype negative: float + """ super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) self.positive = kwargs['positive'] self.neutral = kwargs['neutral'] @@ -2352,15 +3015,15 @@ class SentimentResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Sentiment analysis per document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentSentiment] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Sentiment analysis per document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentSentiment] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -2380,6 +3043,17 @@ def __init__( self, **kwargs ): + """ + :keyword documents: Required. Sentiment analysis per document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentSentiment] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(SentimentResponse, self).__init__(**kwargs) self.documents = kwargs['documents'] self.errors = kwargs['errors'] @@ -2390,8 +3064,8 @@ def __init__( class SentimentTaskResult(msrest.serialization.Model): """SentimentTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse """ _attribute_map = { @@ -2402,6 +3076,10 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + """ super(SentimentTaskResult, self).__init__(**kwargs) self.results = kwargs.get('results', None) @@ -2411,10 +3089,10 @@ class TargetConfidenceScoreLabel(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param positive: Required. - :type positive: float - :param negative: Required. - :type negative: float + :ivar positive: Required. + :vartype positive: float + :ivar negative: Required. + :vartype negative: float """ _validation = { @@ -2431,6 +3109,12 @@ def __init__( self, **kwargs ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword negative: Required. + :paramtype negative: float + """ super(TargetConfidenceScoreLabel, self).__init__(**kwargs) self.positive = kwargs['positive'] self.negative = kwargs['negative'] @@ -2441,11 +3125,11 @@ class TargetRelation(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param relation_type: Required. The type related to the target. Possible values include: + :ivar relation_type: Required. The type related to the target. Possible values include: "assessment", "target". - :type relation_type: str or ~azure.ai.textanalytics.v3_1.models.TargetRelationType - :param ref: Required. The JSON pointer indicating the linked object. - :type ref: str + :vartype relation_type: str or ~azure.ai.textanalytics.v3_1.models.TargetRelationType + :ivar ref: Required. The JSON pointer indicating the linked object. + :vartype ref: str """ _validation = { @@ -2462,6 +3146,13 @@ def __init__( self, **kwargs ): + """ + :keyword relation_type: Required. The type related to the target. Possible values include: + "assessment", "target". + :paramtype relation_type: str or ~azure.ai.textanalytics.v3_1.models.TargetRelationType + :keyword ref: Required. The JSON pointer indicating the linked object. + :paramtype ref: str + """ super(TargetRelation, self).__init__(**kwargs) self.relation_type = kwargs['relation_type'] self.ref = kwargs['ref'] @@ -2472,28 +3163,28 @@ class TasksStateTasks(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param completed: Required. - :type completed: int - :param failed: Required. - :type failed: int - :param in_progress: Required. - :type in_progress: int - :param total: Required. - :type total: int - :param entity_recognition_tasks: - :type entity_recognition_tasks: + :ivar completed: Required. + :vartype completed: int + :ivar failed: Required. + :vartype failed: int + :ivar in_progress: Required. + :vartype in_progress: int + :ivar total: Required. + :vartype total: int + :ivar entity_recognition_tasks: + :vartype entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionTasksItem] - :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: + :ivar entity_recognition_pii_tasks: + :vartype entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionPiiTasksItem] - :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: + :ivar key_phrase_extraction_tasks: + :vartype key_phrase_extraction_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksKeyPhraseExtractionTasksItem] - :param entity_linking_tasks: - :type entity_linking_tasks: + :ivar entity_linking_tasks: + :vartype entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityLinkingTasksItem] - :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: + :ivar sentiment_analysis_tasks: + :vartype sentiment_analysis_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksSentimentAnalysisTasksItem] """ @@ -2520,6 +3211,31 @@ def __init__( self, **kwargs ): + """ + :keyword completed: Required. + :paramtype completed: int + :keyword failed: Required. + :paramtype failed: int + :keyword in_progress: Required. + :paramtype in_progress: int + :keyword total: Required. + :paramtype total: int + :keyword entity_recognition_tasks: + :paramtype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionTasksItem] + :keyword entity_recognition_pii_tasks: + :paramtype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionPiiTasksItem] + :keyword key_phrase_extraction_tasks: + :paramtype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksKeyPhraseExtractionTasksItem] + :keyword entity_linking_tasks: + :paramtype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityLinkingTasksItem] + :keyword sentiment_analysis_tasks: + :paramtype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksSentimentAnalysisTasksItem] + """ super(TasksStateTasks, self).__init__(**kwargs) self.completed = kwargs['completed'] self.failed = kwargs['failed'] @@ -2537,13 +3253,13 @@ class TaskState(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -2562,6 +3278,15 @@ def __init__( self, **kwargs ): + """ + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TaskState, self).__init__(**kwargs) self.last_update_date_time = kwargs['last_update_date_time'] self.task_name = kwargs['task_name'] @@ -2573,15 +3298,15 @@ class TasksStateTasksEntityLinkingTasksItem(TaskState, EntityLinkingTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -2601,6 +3326,17 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksEntityLinkingTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] @@ -2613,15 +3349,15 @@ class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, PiiTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.PiiResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.PiiResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -2641,6 +3377,17 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.PiiResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksEntityRecognitionPiiTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] @@ -2653,15 +3400,15 @@ class TasksStateTasksEntityRecognitionTasksItem(TaskState, EntitiesTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -2681,6 +3428,17 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksEntityRecognitionTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] @@ -2693,15 +3451,15 @@ class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, KeyPhraseTaskResult All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -2721,6 +3479,17 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksKeyPhraseExtractionTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] @@ -2733,15 +3502,15 @@ class TasksStateTasksSentimentAnalysisTasksItem(TaskState, SentimentTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -2761,6 +3530,17 @@ def __init__( self, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksSentimentAnalysisTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] @@ -2773,17 +3553,17 @@ class TextAnalyticsError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "InvalidRequest", - "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". - :type code: str or ~azure.ai.textanalytics.v3_1.models.ErrorCodeValue - :param message: Required. Error message. - :type message: str - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_1.models.InnerError - :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar code: Required. Error code. Possible values include: "InvalidRequest", "InvalidArgument", + "InternalServerError", "ServiceUnavailable", "NotFound". + :vartype code: str or ~azure.ai.textanalytics.v3_1.models.ErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_1.models.InnerError + :ivar details: Details about specific errors that led to this reported error. + :vartype details: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] """ _validation = { @@ -2803,6 +3583,19 @@ def __init__( self, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "InvalidRequest", + "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". + :paramtype code: str or ~azure.ai.textanalytics.v3_1.models.ErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_1.models.InnerError + :keyword details: Details about specific errors that led to this reported error. + :paramtype details: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + """ super(TextAnalyticsError, self).__init__(**kwargs) self.code = kwargs['code'] self.message = kwargs['message'] @@ -2816,13 +3609,13 @@ class TextAnalyticsWarning(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "LongWordsInDocument", + :ivar code: Required. Error code. Possible values include: "LongWordsInDocument", "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.v3_1.models.WarningCodeValue - :param message: Required. Warning message. - :type message: str - :param target_ref: A JSON pointer reference indicating the target object. - :type target_ref: str + :vartype code: str or ~azure.ai.textanalytics.v3_1.models.WarningCodeValue + :ivar message: Required. Warning message. + :vartype message: str + :ivar target_ref: A JSON pointer reference indicating the target object. + :vartype target_ref: str """ _validation = { @@ -2840,6 +3633,15 @@ def __init__( self, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :paramtype code: str or ~azure.ai.textanalytics.v3_1.models.WarningCodeValue + :keyword message: Required. Warning message. + :paramtype message: str + :keyword target_ref: A JSON pointer reference indicating the target object. + :paramtype target_ref: str + """ super(TextAnalyticsWarning, self).__init__(**kwargs) self.code = kwargs['code'] self.message = kwargs['message'] diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models_py3.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models_py3.py index 956013a60c86..bd19b6e79753 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models_py3.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models_py3.py @@ -20,9 +20,9 @@ class AnalysisInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param analysis_input: Required. Contains a set of input documents to be analyzed by the + :ivar analysis_input: Required. Contains a set of input documents to be analyzed by the service. - :type analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + :vartype analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput """ _validation = { @@ -39,6 +39,11 @@ def __init__( analysis_input: "MultiLanguageBatchInput", **kwargs ): + """ + :keyword analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :paramtype analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + """ super(AnalysisInput, self).__init__(**kwargs) self.analysis_input = analysis_input @@ -48,9 +53,9 @@ class JobManifest(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the + :ivar tasks: Required. The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks + :vartype tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks """ _validation = { @@ -67,6 +72,11 @@ def __init__( tasks: "JobManifestTasks", **kwargs ): + """ + :keyword tasks: Required. The set of tasks to execute on the input documents. Cannot specify + the same task more than once. + :paramtype tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks + """ super(JobManifest, self).__init__(**kwargs) self.tasks = tasks @@ -74,8 +84,8 @@ def __init__( class JobDescriptor(msrest.serialization.Model): """JobDescriptor. - :param display_name: Optional display name for the analysis job. - :type display_name: str + :ivar display_name: Optional display name for the analysis job. + :vartype display_name: str """ _attribute_map = { @@ -88,6 +98,10 @@ def __init__( display_name: Optional[str] = None, **kwargs ): + """ + :keyword display_name: Optional display name for the analysis job. + :paramtype display_name: str + """ super(JobDescriptor, self).__init__(**kwargs) self.display_name = display_name @@ -97,14 +111,14 @@ class AnalyzeBatchInput(JobDescriptor, AnalysisInput, JobManifest): All required parameters must be populated in order to send to Azure. - :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the + :ivar tasks: Required. The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks - :param analysis_input: Required. Contains a set of input documents to be analyzed by the + :vartype tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks + :ivar analysis_input: Required. Contains a set of input documents to be analyzed by the service. - :type analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput - :param display_name: Optional display name for the analysis job. - :type display_name: str + :vartype analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + :ivar display_name: Optional display name for the analysis job. + :vartype display_name: str """ _validation = { @@ -126,6 +140,16 @@ def __init__( display_name: Optional[str] = None, **kwargs ): + """ + :keyword tasks: Required. The set of tasks to execute on the input documents. Cannot specify + the same task more than once. + :paramtype tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks + :keyword analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :paramtype analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + :keyword display_name: Optional display name for the analysis job. + :paramtype display_name: str + """ super(AnalyzeBatchInput, self).__init__(display_name=display_name, analysis_input=analysis_input, tasks=tasks, **kwargs) self.tasks = tasks self.analysis_input = analysis_input @@ -138,8 +162,8 @@ def __init__( class AnalyzeJobDisplayName(msrest.serialization.Model): """AnalyzeJobDisplayName. - :param display_name: - :type display_name: str + :ivar display_name: + :vartype display_name: str """ _attribute_map = { @@ -152,6 +176,10 @@ def __init__( display_name: Optional[str] = None, **kwargs ): + """ + :keyword display_name: + :paramtype display_name: str + """ super(AnalyzeJobDisplayName, self).__init__(**kwargs) self.display_name = display_name @@ -159,11 +187,11 @@ def __init__( class AnalyzeJobErrorsAndStatistics(msrest.serialization.Model): """AnalyzeJobErrorsAndStatistics. - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics """ _attribute_map = { @@ -178,6 +206,13 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + """ super(AnalyzeJobErrorsAndStatistics, self).__init__(**kwargs) self.errors = errors self.statistics = statistics @@ -188,17 +223,17 @@ class JobMetadata(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -226,6 +261,19 @@ def __init__( expiration_date_time: Optional[datetime.datetime] = None, **kwargs ): + """ + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(JobMetadata, self).__init__(**kwargs) self.created_date_time = created_date_time self.expiration_date_time = expiration_date_time @@ -239,19 +287,19 @@ class AnalyzeJobMetadata(JobMetadata, AnalyzeJobDisplayName): All required parameters must be populated in order to send to Azure. - :param display_name: - :type display_name: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar display_name: + :vartype display_name: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -281,6 +329,21 @@ def __init__( expiration_date_time: Optional[datetime.datetime] = None, **kwargs ): + """ + :keyword display_name: + :paramtype display_name: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(AnalyzeJobMetadata, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, display_name=display_name, **kwargs) self.display_name = display_name self.created_date_time = created_date_time @@ -293,8 +356,8 @@ def __init__( class Pagination(msrest.serialization.Model): """Pagination. - :param next_link: - :type next_link: str + :ivar next_link: + :vartype next_link: str """ _attribute_map = { @@ -307,6 +370,10 @@ def __init__( next_link: Optional[str] = None, **kwargs ): + """ + :keyword next_link: + :paramtype next_link: str + """ super(Pagination, self).__init__(**kwargs) self.next_link = next_link @@ -316,8 +383,8 @@ class TasksState(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + :ivar tasks: Required. + :vartype tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks """ _validation = { @@ -334,6 +401,10 @@ def __init__( tasks: "TasksStateTasks", **kwargs ): + """ + :keyword tasks: Required. + :paramtype tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + """ super(TasksState, self).__init__(**kwargs) self.tasks = tasks @@ -343,28 +414,28 @@ class AnalyzeJobState(AnalyzeJobMetadata, TasksState, AnalyzeJobErrorsAndStatist All required parameters must be populated in order to send to Azure. - :param next_link: - :type next_link: str - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar next_link: + :vartype next_link: str + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks - :param display_name: - :type display_name: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar tasks: Required. + :vartype tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + :ivar display_name: + :vartype display_name: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -403,6 +474,30 @@ def __init__( expiration_date_time: Optional[datetime.datetime] = None, **kwargs ): + """ + :keyword next_link: + :paramtype next_link: str + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword tasks: Required. + :paramtype tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + :keyword display_name: + :paramtype display_name: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(AnalyzeJobState, self).__init__(display_name=display_name, created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, tasks=tasks, errors=errors, statistics=statistics, next_link=next_link, **kwargs) self.next_link = next_link self.errors = errors @@ -441,14 +536,14 @@ class DetectedLanguage(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param name: Required. Long name of a detected language (e.g. English, French). - :type name: str - :param iso6391_name: Required. A two letter representation of the detected language according - to the ISO 639-1 standard (e.g. en, fr). - :type iso6391_name: str - :param confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + :ivar name: Required. Long name of a detected language (e.g. English, French). + :vartype name: str + :ivar iso6391_name: Required. A two letter representation of the detected language according to + the ISO 639-1 standard (e.g. en, fr). + :vartype iso6391_name: str + :ivar confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. - :type confidence_score: float + :vartype confidence_score: float """ _validation = { @@ -471,6 +566,16 @@ def __init__( confidence_score: float, **kwargs ): + """ + :keyword name: Required. Long name of a detected language (e.g. English, French). + :paramtype name: str + :keyword iso6391_name: Required. A two letter representation of the detected language according + to the ISO 639-1 standard (e.g. en, fr). + :paramtype iso6391_name: str + :keyword confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :paramtype confidence_score: float + """ super(DetectedLanguage, self).__init__(**kwargs) self.name = name self.iso6391_name = iso6391_name @@ -482,15 +587,15 @@ class DocumentEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_1.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -515,6 +620,17 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentEntities, self).__init__(**kwargs) self.id = id self.entities = entities @@ -527,10 +643,10 @@ class DocumentError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Document Id. - :type id: str - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError + :ivar id: Required. Document Id. + :vartype id: str + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError """ _validation = { @@ -550,6 +666,12 @@ def __init__( error: "TextAnalyticsError", **kwargs ): + """ + :keyword id: Required. Document Id. + :paramtype id: str + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError + """ super(DocumentError, self).__init__(**kwargs) self.id = id self.error = error @@ -560,17 +682,17 @@ class DocumentHealthcareEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Healthcare entities. - :type entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntity] - :param relations: Required. Healthcare entity relations. - :type relations: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelation] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Healthcare entities. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntity] + :ivar relations: Required. Healthcare entity relations. + :vartype relations: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelation] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -598,6 +720,19 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Healthcare entities. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntity] + :keyword relations: Required. Healthcare entity relations. + :paramtype relations: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelation] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentHealthcareEntities, self).__init__(**kwargs) self.id = id self.entities = entities @@ -611,16 +746,16 @@ class DocumentKeyPhrases(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param key_phrases: Required. A list of representative words or phrases. The number of key + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar key_phrases: Required. A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document. - :type key_phrases: list[str] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :vartype key_phrases: list[str] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -645,6 +780,18 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :paramtype key_phrases: list[str] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentKeyPhrases, self).__init__(**kwargs) self.id = id self.key_phrases = key_phrases @@ -657,15 +804,15 @@ class DocumentLanguage(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param detected_language: Required. Detected Language. - :type detected_language: ~azure.ai.textanalytics.v3_1.models.DetectedLanguage - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar detected_language: Required. Detected Language. + :vartype detected_language: ~azure.ai.textanalytics.v3_1.models.DetectedLanguage + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -690,6 +837,17 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword detected_language: Required. Detected Language. + :paramtype detected_language: ~azure.ai.textanalytics.v3_1.models.DetectedLanguage + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentLanguage, self).__init__(**kwargs) self.id = id self.detected_language = detected_language @@ -702,15 +860,15 @@ class DocumentLinkedEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized well known entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_1.models.LinkedEntity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized well known entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.LinkedEntity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -735,6 +893,17 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized well known entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.LinkedEntity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(DocumentLinkedEntities, self).__init__(**kwargs) self.id = id self.entities = entities @@ -747,21 +916,22 @@ class DocumentSentiment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). Possible values include: "positive", "neutral", "negative", "mixed". - :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.DocumentSentimentValue - :param statistics: if showStats=true was specified in the request this field will contain + :vartype sentiment: str or ~azure.ai.textanalytics.v3_1.models.DocumentSentimentValue + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics - :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :ivar confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 for each sentiment class. - :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel - :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.v3_1.models.SentenceSentiment] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel + :ivar sentences: Required. Sentence level sentiment analysis. + :vartype sentences: list[~azure.ai.textanalytics.v3_1.models.SentenceSentiment] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] """ _validation = { @@ -792,6 +962,24 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_1.models.DocumentSentimentValue + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :keyword confidence_scores: Required. Document level sentiment confidence scores between 0 and + 1 for each sentiment class. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel + :keyword sentences: Required. Sentence level sentiment analysis. + :paramtype sentences: list[~azure.ai.textanalytics.v3_1.models.SentenceSentiment] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + """ super(DocumentSentiment, self).__init__(**kwargs) self.id = id self.sentiment = sentiment @@ -806,10 +994,10 @@ class DocumentStatistics(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param characters_count: Required. Number of text elements recognized in the document. - :type characters_count: int - :param transactions_count: Required. Number of transactions for the document. - :type transactions_count: int + :ivar characters_count: Required. Number of text elements recognized in the document. + :vartype characters_count: int + :ivar transactions_count: Required. Number of transactions for the document. + :vartype transactions_count: int """ _validation = { @@ -829,6 +1017,12 @@ def __init__( transactions_count: int, **kwargs ): + """ + :keyword characters_count: Required. Number of text elements recognized in the document. + :paramtype characters_count: int + :keyword transactions_count: Required. Number of transactions for the document. + :paramtype transactions_count: int + """ super(DocumentStatistics, self).__init__(**kwargs) self.characters_count = characters_count self.transactions_count = transactions_count @@ -839,15 +1033,15 @@ class EntitiesResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -872,6 +1066,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(EntitiesResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -882,10 +1087,10 @@ def __init__( class EntitiesTask(msrest.serialization.Model): """EntitiesTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.EntitiesTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.EntitiesTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -900,6 +1105,12 @@ def __init__( task_name: Optional[str] = None, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.EntitiesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(EntitiesTask, self).__init__(**kwargs) self.parameters = parameters self.task_name = task_name @@ -908,13 +1119,13 @@ def __init__( class EntitiesTaskParameters(msrest.serialization.Model): """EntitiesTaskParameters. - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + :vartype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -931,6 +1142,15 @@ def __init__( string_index_type: Optional[Union[str, "StringIndexType"]] = None, **kwargs ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + """ super(EntitiesTaskParameters, self).__init__(**kwargs) self.model_version = model_version self.logging_opt_out = logging_opt_out @@ -940,8 +1160,8 @@ def __init__( class EntitiesTaskResult(msrest.serialization.Model): """EntitiesTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult """ _attribute_map = { @@ -954,6 +1174,10 @@ def __init__( results: Optional["EntitiesResult"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + """ super(EntitiesTaskResult, self).__init__(**kwargs) self.results = results @@ -963,20 +1187,20 @@ class Entity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Entity type. - :type category: str - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Entity type. + :vartype category: str + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float """ _validation = { @@ -1007,6 +1231,22 @@ def __init__( subcategory: Optional[str] = None, **kwargs ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Entity type. + :paramtype category: str + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ super(Entity, self).__init__(**kwargs) self.text = text self.category = category @@ -1021,15 +1261,15 @@ class EntityLinkingResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLinkedEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLinkedEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -1054,6 +1294,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLinkedEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(EntityLinkingResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -1064,10 +1315,10 @@ def __init__( class EntityLinkingTask(msrest.serialization.Model): """EntityLinkingTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.EntityLinkingTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.EntityLinkingTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -1082,6 +1333,12 @@ def __init__( task_name: Optional[str] = None, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.EntityLinkingTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(EntityLinkingTask, self).__init__(**kwargs) self.parameters = parameters self.task_name = task_name @@ -1090,13 +1347,13 @@ def __init__( class EntityLinkingTaskParameters(msrest.serialization.Model): """EntityLinkingTaskParameters. - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + :vartype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -1113,6 +1370,15 @@ def __init__( string_index_type: Optional[Union[str, "StringIndexType"]] = None, **kwargs ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + """ super(EntityLinkingTaskParameters, self).__init__(**kwargs) self.model_version = model_version self.logging_opt_out = logging_opt_out @@ -1122,8 +1388,8 @@ def __init__( class EntityLinkingTaskResult(msrest.serialization.Model): """EntityLinkingTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult """ _attribute_map = { @@ -1136,6 +1402,10 @@ def __init__( results: Optional["EntityLinkingResult"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + """ super(EntityLinkingTaskResult, self).__init__(**kwargs) self.results = results @@ -1145,8 +1415,8 @@ class ErrorResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError """ _validation = { @@ -1163,6 +1433,10 @@ def __init__( error: "TextAnalyticsError", **kwargs ): + """ + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError + """ super(ErrorResponse, self).__init__(**kwargs) self.error = error @@ -1170,15 +1444,15 @@ def __init__( class HealthcareAssertion(msrest.serialization.Model): """HealthcareAssertion. - :param conditionality: Describes any conditionality on the entity. Possible values include: + :ivar conditionality: Describes any conditionality on the entity. Possible values include: "hypothetical", "conditional". - :type conditionality: str or ~azure.ai.textanalytics.v3_1.models.Conditionality - :param certainty: Describes the entities certainty and polarity. Possible values include: + :vartype conditionality: str or ~azure.ai.textanalytics.v3_1.models.Conditionality + :ivar certainty: Describes the entities certainty and polarity. Possible values include: "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". - :type certainty: str or ~azure.ai.textanalytics.v3_1.models.Certainty - :param association: Describes if the entity is the subject of the text or if it describes + :vartype certainty: str or ~azure.ai.textanalytics.v3_1.models.Certainty + :ivar association: Describes if the entity is the subject of the text or if it describes someone else. Possible values include: "subject", "other". - :type association: str or ~azure.ai.textanalytics.v3_1.models.Association + :vartype association: str or ~azure.ai.textanalytics.v3_1.models.Association """ _attribute_map = { @@ -1195,6 +1469,17 @@ def __init__( association: Optional[Union[str, "Association"]] = None, **kwargs ): + """ + :keyword conditionality: Describes any conditionality on the entity. Possible values include: + "hypothetical", "conditional". + :paramtype conditionality: str or ~azure.ai.textanalytics.v3_1.models.Conditionality + :keyword certainty: Describes the entities certainty and polarity. Possible values include: + "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". + :paramtype certainty: str or ~azure.ai.textanalytics.v3_1.models.Certainty + :keyword association: Describes if the entity is the subject of the text or if it describes + someone else. Possible values include: "subject", "other". + :paramtype association: str or ~azure.ai.textanalytics.v3_1.models.Association + """ super(HealthcareAssertion, self).__init__(**kwargs) self.conditionality = conditionality self.certainty = certainty @@ -1204,13 +1489,13 @@ def __init__( class HealthcareLinkingProperties(msrest.serialization.Model): """HealthcareLinkingProperties. - :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion - :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + :ivar assertion: + :vartype assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :ivar name: Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'. - :type name: str - :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + :vartype name: str + :ivar links: Entity references in known data sources. + :vartype links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] """ _attribute_map = { @@ -1227,6 +1512,15 @@ def __init__( links: Optional[List["HealthcareEntityLink"]] = None, **kwargs ): + """ + :keyword assertion: + :paramtype assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :keyword name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :paramtype name: str + :keyword links: Entity references in known data sources. + :paramtype links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + """ super(HealthcareLinkingProperties, self).__init__(**kwargs) self.assertion = assertion self.name = name @@ -1238,25 +1532,25 @@ class HealthcareEntityProperties(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Healthcare Entity Category. Possible values include: + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Healthcare Entity Category. Possible values include: "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". - :type category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' + :vartype category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float """ _validation = { @@ -1287,6 +1581,27 @@ def __init__( subcategory: Optional[str] = None, **kwargs ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :paramtype category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ super(HealthcareEntityProperties, self).__init__(**kwargs) self.text = text self.category = category @@ -1301,32 +1616,32 @@ class HealthcareEntity(HealthcareEntityProperties, HealthcareLinkingProperties): All required parameters must be populated in order to send to Azure. - :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion - :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + :ivar assertion: + :vartype assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :ivar name: Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'. - :type name: str - :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Healthcare Entity Category. Possible values include: + :vartype name: str + :ivar links: Entity references in known data sources. + :vartype links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Healthcare Entity Category. Possible values include: "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". - :type category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' + :vartype category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float """ _validation = { @@ -1363,6 +1678,34 @@ def __init__( subcategory: Optional[str] = None, **kwargs ): + """ + :keyword assertion: + :paramtype assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :keyword name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :paramtype name: str + :keyword links: Entity references in known data sources. + :paramtype links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :paramtype category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ super(HealthcareEntity, self).__init__(text=text, category=category, subcategory=subcategory, offset=offset, length=length, confidence_score=confidence_score, assertion=assertion, name=name, links=links, **kwargs) self.assertion = assertion self.name = name @@ -1380,10 +1723,10 @@ class HealthcareEntityLink(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. - :type data_source: str - :param id: Required. Entity id in the given source catalog. - :type id: str + :ivar data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + :vartype data_source: str + :ivar id: Required. Entity id in the given source catalog. + :vartype id: str """ _validation = { @@ -1403,6 +1746,12 @@ def __init__( id: str, **kwargs ): + """ + :keyword data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + :paramtype data_source: str + :keyword id: Required. Entity id in the given source catalog. + :paramtype id: str + """ super(HealthcareEntityLink, self).__init__(**kwargs) self.data_source = data_source self.id = id @@ -1411,10 +1760,10 @@ def __init__( class HealthcareTaskResult(msrest.serialization.Model): """HealthcareTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] """ _attribute_map = { @@ -1429,6 +1778,12 @@ def __init__( errors: Optional[List["TextAnalyticsError"]] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + """ super(HealthcareTaskResult, self).__init__(**kwargs) self.results = results self.errors = errors @@ -1439,23 +1794,23 @@ class HealthcareJobState(JobMetadata, Pagination, HealthcareTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] - :param next_link: - :type next_link: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar next_link: + :vartype next_link: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -1489,6 +1844,25 @@ def __init__( expiration_date_time: Optional[datetime.datetime] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :keyword next_link: + :paramtype next_link: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(HealthcareJobState, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, next_link=next_link, results=results, errors=errors, **kwargs) self.results = results self.errors = errors @@ -1513,16 +1887,16 @@ class HealthcareRelation(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or + :ivar relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". - :type relation_type: str or ~azure.ai.textanalytics.v3_1.models.RelationType - :param entities: Required. The entities in the relation. - :type entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelationEntity] + :vartype relation_type: str or ~azure.ai.textanalytics.v3_1.models.RelationType + :ivar entities: Required. The entities in the relation. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelationEntity] """ _validation = { @@ -1542,6 +1916,18 @@ def __init__( entities: List["HealthcareRelationEntity"], **kwargs ): + """ + :keyword relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or + 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", + "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", + "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", + "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", + "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", + "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". + :paramtype relation_type: str or ~azure.ai.textanalytics.v3_1.models.RelationType + :keyword entities: Required. The entities in the relation. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelationEntity] + """ super(HealthcareRelation, self).__init__(**kwargs) self.relation_type = relation_type self.entities = entities @@ -1552,13 +1938,13 @@ class HealthcareRelationEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment + :ivar ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment Identifier Representation), pointing to the entity . - :type ref: str - :param role: Required. Role of entity in the relationship. For example: 'CD20-positive diffuse + :vartype ref: str + :ivar role: Required. Role of entity in the relationship. For example: 'CD20-positive diffuse large B-cell lymphoma' has the following entities with their roles in parenthesis: CD20 (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). - :type role: str + :vartype role: str """ _validation = { @@ -1578,6 +1964,15 @@ def __init__( role: str, **kwargs ): + """ + :keyword ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment + Identifier Representation), pointing to the entity . + :paramtype ref: str + :keyword role: Required. Role of entity in the relationship. For example: 'CD20-positive + diffuse large B-cell lymphoma' has the following entities with their roles in parenthesis: + CD20 (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). + :paramtype role: str + """ super(HealthcareRelationEntity, self).__init__(**kwargs) self.ref = ref self.role = role @@ -1588,15 +1983,15 @@ class HealthcareResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentHealthcareEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentHealthcareEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -1621,6 +2016,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentHealthcareEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(HealthcareResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -1633,19 +2039,19 @@ class InnerError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "InvalidParameterValue", + :ivar code: Required. Error code. Possible values include: "InvalidParameterValue", "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", "InvalidCountryHint". - :type code: str or ~azure.ai.textanalytics.v3_1.models.InnerErrorCodeValue - :param message: Required. Error message. - :type message: str - :param details: Error details. - :type details: dict[str, str] - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_1.models.InnerError + :vartype code: str or ~azure.ai.textanalytics.v3_1.models.InnerErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar details: Error details. + :vartype details: dict[str, str] + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_1.models.InnerError """ _validation = { @@ -1671,6 +2077,21 @@ def __init__( innererror: Optional["InnerError"] = None, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "InvalidParameterValue", + "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", + "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", + "InvalidCountryHint". + :paramtype code: str or ~azure.ai.textanalytics.v3_1.models.InnerErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword details: Error details. + :paramtype details: dict[str, str] + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_1.models.InnerError + """ super(InnerError, self).__init__(**kwargs) self.code = code self.message = message @@ -1682,16 +2103,17 @@ def __init__( class JobManifestTasks(msrest.serialization.Model): """The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :param entity_recognition_tasks: - :type entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.EntitiesTask] - :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.PiiTask] - :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: list[~azure.ai.textanalytics.v3_1.models.KeyPhrasesTask] - :param entity_linking_tasks: - :type entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.EntityLinkingTask] - :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: list[~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTask] + :ivar entity_recognition_tasks: + :vartype entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.EntitiesTask] + :ivar entity_recognition_pii_tasks: + :vartype entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.PiiTask] + :ivar key_phrase_extraction_tasks: + :vartype key_phrase_extraction_tasks: list[~azure.ai.textanalytics.v3_1.models.KeyPhrasesTask] + :ivar entity_linking_tasks: + :vartype entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.EntityLinkingTask] + :ivar sentiment_analysis_tasks: + :vartype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTask] """ _attribute_map = { @@ -1712,6 +2134,20 @@ def __init__( sentiment_analysis_tasks: Optional[List["SentimentAnalysisTask"]] = None, **kwargs ): + """ + :keyword entity_recognition_tasks: + :paramtype entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.EntitiesTask] + :keyword entity_recognition_pii_tasks: + :paramtype entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.PiiTask] + :keyword key_phrase_extraction_tasks: + :paramtype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_1.models.KeyPhrasesTask] + :keyword entity_linking_tasks: + :paramtype entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.EntityLinkingTask] + :keyword sentiment_analysis_tasks: + :paramtype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTask] + """ super(JobManifestTasks, self).__init__(**kwargs) self.entity_recognition_tasks = entity_recognition_tasks self.entity_recognition_pii_tasks = entity_recognition_pii_tasks @@ -1725,15 +2161,15 @@ class KeyPhraseResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentKeyPhrases] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentKeyPhrases] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -1758,6 +2194,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentKeyPhrases] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(KeyPhraseResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -1768,10 +2215,10 @@ def __init__( class KeyPhrasesTask(msrest.serialization.Model): """KeyPhrasesTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.KeyPhrasesTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.KeyPhrasesTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -1786,6 +2233,12 @@ def __init__( task_name: Optional[str] = None, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.KeyPhrasesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(KeyPhrasesTask, self).__init__(**kwargs) self.parameters = parameters self.task_name = task_name @@ -1794,10 +2247,10 @@ def __init__( class KeyPhrasesTaskParameters(msrest.serialization.Model): """KeyPhrasesTaskParameters. - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool """ _attribute_map = { @@ -1812,6 +2265,12 @@ def __init__( logging_opt_out: Optional[bool] = False, **kwargs ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + """ super(KeyPhrasesTaskParameters, self).__init__(**kwargs) self.model_version = model_version self.logging_opt_out = logging_opt_out @@ -1820,8 +2279,8 @@ def __init__( class KeyPhraseTaskResult(msrest.serialization.Model): """KeyPhraseTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult """ _attribute_map = { @@ -1834,6 +2293,10 @@ def __init__( results: Optional["KeyPhraseResult"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + """ super(KeyPhraseTaskResult, self).__init__(**kwargs) self.results = results @@ -1843,8 +2306,8 @@ class LanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. - :type documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput] + :ivar documents: Required. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput] """ _validation = { @@ -1861,6 +2324,10 @@ def __init__( documents: List["LanguageInput"], **kwargs ): + """ + :keyword documents: Required. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput] + """ super(LanguageBatchInput, self).__init__(**kwargs) self.documents = documents @@ -1870,12 +2337,12 @@ class LanguageInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param text: Required. - :type text: str - :param country_hint: - :type country_hint: str + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. + :vartype text: str + :ivar country_hint: + :vartype country_hint: str """ _validation = { @@ -1897,6 +2364,14 @@ def __init__( country_hint: Optional[str] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. + :paramtype text: str + :keyword country_hint: + :paramtype country_hint: str + """ super(LanguageInput, self).__init__(**kwargs) self.id = id self.text = text @@ -1908,15 +2383,15 @@ class LanguageResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLanguage] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLanguage] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -1941,6 +2416,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLanguage] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(LanguageResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -1953,21 +2439,20 @@ class LinkedEntity(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param name: Required. Entity Linking formal name. - :type name: str - :param matches: Required. List of instances this entity appears in the text. - :type matches: list[~azure.ai.textanalytics.v3_1.models.Match] - :param language: Required. Language used in the data source. - :type language: str - :param id: Unique identifier of the recognized entity from the data source. - :type id: str - :param url: Required. URL for the entity's page from the data source. - :type url: str - :param data_source: Required. Data source used to extract entity linking, such as Wiki/Bing - etc. - :type data_source: str - :param bing_id: Bing Entity Search API unique identifier of the recognized entity. - :type bing_id: str + :ivar name: Required. Entity Linking formal name. + :vartype name: str + :ivar matches: Required. List of instances this entity appears in the text. + :vartype matches: list[~azure.ai.textanalytics.v3_1.models.Match] + :ivar language: Required. Language used in the data source. + :vartype language: str + :ivar id: Unique identifier of the recognized entity from the data source. + :vartype id: str + :ivar url: Required. URL for the entity's page from the data source. + :vartype url: str + :ivar data_source: Required. Data source used to extract entity linking, such as Wiki/Bing etc. + :vartype data_source: str + :ivar bing_id: Bing Entity Search API unique identifier of the recognized entity. + :vartype bing_id: str """ _validation = { @@ -2000,6 +2485,23 @@ def __init__( bing_id: Optional[str] = None, **kwargs ): + """ + :keyword name: Required. Entity Linking formal name. + :paramtype name: str + :keyword matches: Required. List of instances this entity appears in the text. + :paramtype matches: list[~azure.ai.textanalytics.v3_1.models.Match] + :keyword language: Required. Language used in the data source. + :paramtype language: str + :keyword id: Unique identifier of the recognized entity from the data source. + :paramtype id: str + :keyword url: Required. URL for the entity's page from the data source. + :paramtype url: str + :keyword data_source: Required. Data source used to extract entity linking, such as Wiki/Bing + etc. + :paramtype data_source: str + :keyword bing_id: Bing Entity Search API unique identifier of the recognized entity. + :paramtype bing_id: str + """ super(LinkedEntity, self).__init__(**kwargs) self.name = name self.matches = matches @@ -2015,15 +2517,15 @@ class Match(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param confidence_score: Required. If a well known item is recognized, a decimal number - denoting the confidence level between 0 and 1 will be returned. - :type confidence_score: float - :param text: Required. Entity text as appears in the request. - :type text: str - :param offset: Required. Start position for the entity match text. - :type offset: int - :param length: Required. Length for the entity match text. - :type length: int + :ivar confidence_score: Required. If a well known item is recognized, a decimal number denoting + the confidence level between 0 and 1 will be returned. + :vartype confidence_score: float + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar offset: Required. Start position for the entity match text. + :vartype offset: int + :ivar length: Required. Length for the entity match text. + :vartype length: int """ _validation = { @@ -2049,6 +2551,17 @@ def __init__( length: int, **kwargs ): + """ + :keyword confidence_score: Required. If a well known item is recognized, a decimal number + denoting the confidence level between 0 and 1 will be returned. + :paramtype confidence_score: float + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword offset: Required. Start position for the entity match text. + :paramtype offset: int + :keyword length: Required. Length for the entity match text. + :paramtype length: int + """ super(Match, self).__init__(**kwargs) self.confidence_score = confidence_score self.text = text @@ -2061,8 +2574,8 @@ class MultiLanguageBatchInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput] + :ivar documents: Required. The set of documents to process as part of this batch. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput] """ _validation = { @@ -2079,6 +2592,10 @@ def __init__( documents: List["MultiLanguageInput"], **kwargs ): + """ + :keyword documents: Required. The set of documents to process as part of this batch. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput] + """ super(MultiLanguageBatchInput, self).__init__(**kwargs) self.documents = documents @@ -2088,14 +2605,14 @@ class MultiLanguageInput(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. A unique, non-empty document identifier. - :type id: str - :param text: Required. The input text to process. - :type text: str - :param language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + :ivar id: Required. A unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. The input text to process. + :vartype text: str + :ivar language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default. - :type language: str + :vartype language: str """ _validation = { @@ -2117,6 +2634,16 @@ def __init__( language: Optional[str] = None, **kwargs ): + """ + :keyword id: Required. A unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. The input text to process. + :paramtype text: str + :keyword language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :paramtype language: str + """ super(MultiLanguageInput, self).__init__(**kwargs) self.id = id self.text = text @@ -2128,17 +2655,17 @@ class PiiDocumentEntities(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param redacted_text: Required. Returns redacted text. - :type redacted_text: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_1.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar redacted_text: Required. Returns redacted text. + :vartype redacted_text: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_1.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -2166,6 +2693,19 @@ def __init__( statistics: Optional["DocumentStatistics"] = None, **kwargs ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword redacted_text: Required. Returns redacted text. + :paramtype redacted_text: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_1.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics + """ super(PiiDocumentEntities, self).__init__(**kwargs) self.id = id self.redacted_text = redacted_text @@ -2179,15 +2719,15 @@ class PiiResult(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.PiiDocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.PiiDocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -2212,6 +2752,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.PiiDocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(PiiResult, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -2222,10 +2773,10 @@ def __init__( class PiiTask(msrest.serialization.Model): """PiiTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.PiiTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.PiiTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -2240,6 +2791,12 @@ def __init__( task_name: Optional[str] = None, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.PiiTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(PiiTask, self).__init__(**kwargs) self.parameters = parameters self.task_name = task_name @@ -2248,17 +2805,17 @@ def __init__( class PiiTaskParameters(msrest.serialization.Model): """PiiTaskParameters. - :param domain: Possible values include: "phi", "none". Default value: "none". - :type domain: str or ~azure.ai.textanalytics.v3_1.models.PiiTaskParametersDomain - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + :ivar domain: Possible values include: "phi", "none". Default value: "none". + :vartype domain: str or ~azure.ai.textanalytics.v3_1.models.PiiTaskParametersDomain + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar pii_categories: (Optional) describes the PII categories to return. + :vartype pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + :vartype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _validation = { @@ -2283,6 +2840,19 @@ def __init__( string_index_type: Optional[Union[str, "StringIndexType"]] = None, **kwargs ): + """ + :keyword domain: Possible values include: "phi", "none". Default value: "none". + :paramtype domain: str or ~azure.ai.textanalytics.v3_1.models.PiiTaskParametersDomain + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword pii_categories: (Optional) describes the PII categories to return. + :paramtype pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + """ super(PiiTaskParameters, self).__init__(**kwargs) self.domain = domain self.model_version = model_version @@ -2294,8 +2864,8 @@ def __init__( class PiiTaskResult(msrest.serialization.Model): """PiiTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.PiiResult + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.PiiResult """ _attribute_map = { @@ -2308,6 +2878,10 @@ def __init__( results: Optional["PiiResult"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.PiiResult + """ super(PiiTaskResult, self).__init__(**kwargs) self.results = results @@ -2317,16 +2891,16 @@ class RequestStatistics(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents_count: Required. Number of documents submitted in the request. - :type documents_count: int - :param valid_documents_count: Required. Number of valid documents. This excludes empty, + :ivar documents_count: Required. Number of documents submitted in the request. + :vartype documents_count: int + :ivar valid_documents_count: Required. Number of valid documents. This excludes empty, over-size limit or non-supported languages documents. - :type valid_documents_count: int - :param erroneous_documents_count: Required. Number of invalid documents. This includes empty, + :vartype valid_documents_count: int + :ivar erroneous_documents_count: Required. Number of invalid documents. This includes empty, over-size limit or non-supported languages documents. - :type erroneous_documents_count: int - :param transactions_count: Required. Number of transactions for the request. - :type transactions_count: long + :vartype erroneous_documents_count: int + :ivar transactions_count: Required. Number of transactions for the request. + :vartype transactions_count: long """ _validation = { @@ -2352,6 +2926,18 @@ def __init__( transactions_count: int, **kwargs ): + """ + :keyword documents_count: Required. Number of documents submitted in the request. + :paramtype documents_count: int + :keyword valid_documents_count: Required. Number of valid documents. This excludes empty, + over-size limit or non-supported languages documents. + :paramtype valid_documents_count: int + :keyword erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :paramtype erroneous_documents_count: int + :keyword transactions_count: Required. Number of transactions for the request. + :paramtype transactions_count: long + """ super(RequestStatistics, self).__init__(**kwargs) self.documents_count = documents_count self.valid_documents_count = valid_documents_count @@ -2364,19 +2950,19 @@ class SentenceAssessment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param sentiment: Required. Assessment sentiment in the sentence. Possible values include: + :ivar sentiment: Required. Assessment sentiment in the sentence. Possible values include: "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue - :param confidence_scores: Required. Assessment sentiment confidence scores in the sentence. - :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel - :param offset: Required. The assessment offset from the start of the sentence. - :type offset: int - :param length: Required. The length of the assessment. - :type length: int - :param text: Required. The assessment text detected. - :type text: str - :param is_negated: Required. The indicator representing if the assessment is negated. - :type is_negated: bool + :vartype sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue + :ivar confidence_scores: Required. Assessment sentiment confidence scores in the sentence. + :vartype confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel + :ivar offset: Required. The assessment offset from the start of the sentence. + :vartype offset: int + :ivar length: Required. The length of the assessment. + :vartype length: int + :ivar text: Required. The assessment text detected. + :vartype text: str + :ivar is_negated: Required. The indicator representing if the assessment is negated. + :vartype is_negated: bool """ _validation = { @@ -2408,6 +2994,21 @@ def __init__( is_negated: bool, **kwargs ): + """ + :keyword sentiment: Required. Assessment sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue + :keyword confidence_scores: Required. Assessment sentiment confidence scores in the sentence. + :paramtype confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel + :keyword offset: Required. The assessment offset from the start of the sentence. + :paramtype offset: int + :keyword length: Required. The length of the assessment. + :paramtype length: int + :keyword text: Required. The assessment text detected. + :paramtype text: str + :keyword is_negated: Required. The indicator representing if the assessment is negated. + :paramtype is_negated: bool + """ super(SentenceAssessment, self).__init__(**kwargs) self.sentiment = sentiment self.confidence_scores = confidence_scores @@ -2422,22 +3023,23 @@ class SentenceSentiment(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param text: Required. The sentence text. - :type text: str - :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: + :ivar text: Required. The sentence text. + :vartype text: str + :ivar sentiment: Required. The predicted Sentiment for the sentence. Possible values include: "positive", "neutral", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.SentenceSentimentValue - :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + :vartype sentiment: str or ~azure.ai.textanalytics.v3_1.models.SentenceSentimentValue + :ivar confidence_scores: Required. The sentiment confidence score between 0 and 1 for the sentence for all classes. - :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel - :param offset: Required. The sentence offset from the start of the document. - :type offset: int - :param length: Required. The length of the sentence. - :type length: int - :param targets: The array of sentence targets for the sentence. - :type targets: list[~azure.ai.textanalytics.v3_1.models.SentenceTarget] - :param assessments: The array of assessments for the sentence. - :type assessments: list[~azure.ai.textanalytics.v3_1.models.SentenceAssessment] + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel + :ivar offset: Required. The sentence offset from the start of the document. + :vartype offset: int + :ivar length: Required. The length of the sentence. + :vartype length: int + :ivar targets: The array of sentence targets for the sentence. + :vartype targets: list[~azure.ai.textanalytics.v3_1.models.SentenceTarget] + :ivar assessments: The array of assessments for the sentence. + :vartype assessments: list[~azure.ai.textanalytics.v3_1.models.SentenceAssessment] """ _validation = { @@ -2470,6 +3072,25 @@ def __init__( assessments: Optional[List["SentenceAssessment"]] = None, **kwargs ): + """ + :keyword text: Required. The sentence text. + :paramtype text: str + :keyword sentiment: Required. The predicted Sentiment for the sentence. Possible values + include: "positive", "neutral", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_1.models.SentenceSentimentValue + :keyword confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel + :keyword offset: Required. The sentence offset from the start of the document. + :paramtype offset: int + :keyword length: Required. The length of the sentence. + :paramtype length: int + :keyword targets: The array of sentence targets for the sentence. + :paramtype targets: list[~azure.ai.textanalytics.v3_1.models.SentenceTarget] + :keyword assessments: The array of assessments for the sentence. + :paramtype assessments: list[~azure.ai.textanalytics.v3_1.models.SentenceAssessment] + """ super(SentenceSentiment, self).__init__(**kwargs) self.text = text self.sentiment = sentiment @@ -2485,21 +3106,21 @@ class SentenceTarget(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param sentiment: Required. Targeted sentiment in the sentence. Possible values include: + :ivar sentiment: Required. Targeted sentiment in the sentence. Possible values include: "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue - :param confidence_scores: Required. Target sentiment confidence scores for the target in the + :vartype sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue + :ivar confidence_scores: Required. Target sentiment confidence scores for the target in the sentence. - :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel - :param offset: Required. The target offset from the start of the sentence. - :type offset: int - :param length: Required. The length of the target. - :type length: int - :param text: Required. The target text detected. - :type text: str - :param relations: Required. The array of either assessment or target objects which is related - to the target. - :type relations: list[~azure.ai.textanalytics.v3_1.models.TargetRelation] + :vartype confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel + :ivar offset: Required. The target offset from the start of the sentence. + :vartype offset: int + :ivar length: Required. The length of the target. + :vartype length: int + :ivar text: Required. The target text detected. + :vartype text: str + :ivar relations: Required. The array of either assessment or target objects which is related to + the target. + :vartype relations: list[~azure.ai.textanalytics.v3_1.models.TargetRelation] """ _validation = { @@ -2531,6 +3152,23 @@ def __init__( relations: List["TargetRelation"], **kwargs ): + """ + :keyword sentiment: Required. Targeted sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue + :keyword confidence_scores: Required. Target sentiment confidence scores for the target in the + sentence. + :paramtype confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel + :keyword offset: Required. The target offset from the start of the sentence. + :paramtype offset: int + :keyword length: Required. The length of the target. + :paramtype length: int + :keyword text: Required. The target text detected. + :paramtype text: str + :keyword relations: Required. The array of either assessment or target objects which is related + to the target. + :paramtype relations: list[~azure.ai.textanalytics.v3_1.models.TargetRelation] + """ super(SentenceTarget, self).__init__(**kwargs) self.sentiment = sentiment self.confidence_scores = confidence_scores @@ -2543,10 +3181,10 @@ def __init__( class SentimentAnalysisTask(msrest.serialization.Model): """SentimentAnalysisTask. - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTaskParameters - :param task_name: - :type task_name: str + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTaskParameters + :ivar task_name: + :vartype task_name: str """ _attribute_map = { @@ -2561,6 +3199,12 @@ def __init__( task_name: Optional[str] = None, **kwargs ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTaskParameters + :keyword task_name: + :paramtype task_name: str + """ super(SentimentAnalysisTask, self).__init__(**kwargs) self.parameters = parameters self.task_name = task_name @@ -2569,15 +3213,15 @@ def __init__( class SentimentAnalysisTaskParameters(msrest.serialization.Model): """SentimentAnalysisTaskParameters. - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param opinion_mining: - :type opinion_mining: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar opinion_mining: + :vartype opinion_mining: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + :vartype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -2596,6 +3240,17 @@ def __init__( string_index_type: Optional[Union[str, "StringIndexType"]] = None, **kwargs ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword opinion_mining: + :paramtype opinion_mining: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType + """ super(SentimentAnalysisTaskParameters, self).__init__(**kwargs) self.model_version = model_version self.logging_opt_out = logging_opt_out @@ -2608,12 +3263,12 @@ class SentimentConfidenceScorePerLabel(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param positive: Required. - :type positive: float - :param neutral: Required. - :type neutral: float - :param negative: Required. - :type negative: float + :ivar positive: Required. + :vartype positive: float + :ivar neutral: Required. + :vartype neutral: float + :ivar negative: Required. + :vartype negative: float """ _validation = { @@ -2636,6 +3291,14 @@ def __init__( negative: float, **kwargs ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword neutral: Required. + :paramtype neutral: float + :keyword negative: Required. + :paramtype negative: float + """ super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) self.positive = positive self.neutral = neutral @@ -2647,15 +3310,15 @@ class SentimentResponse(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param documents: Required. Sentiment analysis per document. - :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentSentiment] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain + :ivar documents: Required. Sentiment analysis per document. + :vartype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentSentiment] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str + :vartype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str """ _validation = { @@ -2680,6 +3343,17 @@ def __init__( statistics: Optional["RequestStatistics"] = None, **kwargs ): + """ + :keyword documents: Required. Sentiment analysis per document. + :paramtype documents: list[~azure.ai.textanalytics.v3_1.models.DocumentSentiment] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_1.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ super(SentimentResponse, self).__init__(**kwargs) self.documents = documents self.errors = errors @@ -2690,8 +3364,8 @@ def __init__( class SentimentTaskResult(msrest.serialization.Model): """SentimentTaskResult. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse """ _attribute_map = { @@ -2704,6 +3378,10 @@ def __init__( results: Optional["SentimentResponse"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + """ super(SentimentTaskResult, self).__init__(**kwargs) self.results = results @@ -2713,10 +3391,10 @@ class TargetConfidenceScoreLabel(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param positive: Required. - :type positive: float - :param negative: Required. - :type negative: float + :ivar positive: Required. + :vartype positive: float + :ivar negative: Required. + :vartype negative: float """ _validation = { @@ -2736,6 +3414,12 @@ def __init__( negative: float, **kwargs ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword negative: Required. + :paramtype negative: float + """ super(TargetConfidenceScoreLabel, self).__init__(**kwargs) self.positive = positive self.negative = negative @@ -2746,11 +3430,11 @@ class TargetRelation(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param relation_type: Required. The type related to the target. Possible values include: + :ivar relation_type: Required. The type related to the target. Possible values include: "assessment", "target". - :type relation_type: str or ~azure.ai.textanalytics.v3_1.models.TargetRelationType - :param ref: Required. The JSON pointer indicating the linked object. - :type ref: str + :vartype relation_type: str or ~azure.ai.textanalytics.v3_1.models.TargetRelationType + :ivar ref: Required. The JSON pointer indicating the linked object. + :vartype ref: str """ _validation = { @@ -2770,6 +3454,13 @@ def __init__( ref: str, **kwargs ): + """ + :keyword relation_type: Required. The type related to the target. Possible values include: + "assessment", "target". + :paramtype relation_type: str or ~azure.ai.textanalytics.v3_1.models.TargetRelationType + :keyword ref: Required. The JSON pointer indicating the linked object. + :paramtype ref: str + """ super(TargetRelation, self).__init__(**kwargs) self.relation_type = relation_type self.ref = ref @@ -2780,28 +3471,28 @@ class TasksStateTasks(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param completed: Required. - :type completed: int - :param failed: Required. - :type failed: int - :param in_progress: Required. - :type in_progress: int - :param total: Required. - :type total: int - :param entity_recognition_tasks: - :type entity_recognition_tasks: + :ivar completed: Required. + :vartype completed: int + :ivar failed: Required. + :vartype failed: int + :ivar in_progress: Required. + :vartype in_progress: int + :ivar total: Required. + :vartype total: int + :ivar entity_recognition_tasks: + :vartype entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionTasksItem] - :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: + :ivar entity_recognition_pii_tasks: + :vartype entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionPiiTasksItem] - :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: + :ivar key_phrase_extraction_tasks: + :vartype key_phrase_extraction_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksKeyPhraseExtractionTasksItem] - :param entity_linking_tasks: - :type entity_linking_tasks: + :ivar entity_linking_tasks: + :vartype entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityLinkingTasksItem] - :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: + :ivar sentiment_analysis_tasks: + :vartype sentiment_analysis_tasks: list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksSentimentAnalysisTasksItem] """ @@ -2838,6 +3529,31 @@ def __init__( sentiment_analysis_tasks: Optional[List["TasksStateTasksSentimentAnalysisTasksItem"]] = None, **kwargs ): + """ + :keyword completed: Required. + :paramtype completed: int + :keyword failed: Required. + :paramtype failed: int + :keyword in_progress: Required. + :paramtype in_progress: int + :keyword total: Required. + :paramtype total: int + :keyword entity_recognition_tasks: + :paramtype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionTasksItem] + :keyword entity_recognition_pii_tasks: + :paramtype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionPiiTasksItem] + :keyword key_phrase_extraction_tasks: + :paramtype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksKeyPhraseExtractionTasksItem] + :keyword entity_linking_tasks: + :paramtype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityLinkingTasksItem] + :keyword sentiment_analysis_tasks: + :paramtype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksSentimentAnalysisTasksItem] + """ super(TasksStateTasks, self).__init__(**kwargs) self.completed = completed self.failed = failed @@ -2855,13 +3571,13 @@ class TaskState(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -2884,6 +3600,15 @@ def __init__( status: Union[str, "State"], **kwargs ): + """ + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TaskState, self).__init__(**kwargs) self.last_update_date_time = last_update_date_time self.task_name = task_name @@ -2895,15 +3620,15 @@ class TasksStateTasksEntityLinkingTasksItem(TaskState, EntityLinkingTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -2928,6 +3653,17 @@ def __init__( results: Optional["EntityLinkingResult"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksEntityLinkingTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time @@ -2940,15 +3676,15 @@ class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, PiiTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.PiiResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.PiiResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -2973,6 +3709,17 @@ def __init__( results: Optional["PiiResult"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.PiiResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksEntityRecognitionPiiTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time @@ -2985,15 +3732,15 @@ class TasksStateTasksEntityRecognitionTasksItem(TaskState, EntitiesTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -3018,6 +3765,17 @@ def __init__( results: Optional["EntitiesResult"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksEntityRecognitionTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time @@ -3030,15 +3788,15 @@ class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, KeyPhraseTaskResult All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -3063,6 +3821,17 @@ def __init__( results: Optional["KeyPhraseResult"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksKeyPhraseExtractionTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time @@ -3075,15 +3844,15 @@ class TasksStateTasksSentimentAnalysisTasksItem(TaskState, SentimentTaskResult): All required parameters must be populated in order to send to Azure. - :param results: - :type results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_1.models.State + :vartype status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -3108,6 +3877,17 @@ def __init__( results: Optional["SentimentResponse"] = None, **kwargs ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_1.models.State + """ super(TasksStateTasksSentimentAnalysisTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time @@ -3120,17 +3900,17 @@ class TextAnalyticsError(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "InvalidRequest", - "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". - :type code: str or ~azure.ai.textanalytics.v3_1.models.ErrorCodeValue - :param message: Required. Error message. - :type message: str - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_1.models.InnerError - :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :ivar code: Required. Error code. Possible values include: "InvalidRequest", "InvalidArgument", + "InternalServerError", "ServiceUnavailable", "NotFound". + :vartype code: str or ~azure.ai.textanalytics.v3_1.models.ErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_1.models.InnerError + :ivar details: Details about specific errors that led to this reported error. + :vartype details: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] """ _validation = { @@ -3156,6 +3936,19 @@ def __init__( details: Optional[List["TextAnalyticsError"]] = None, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "InvalidRequest", + "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". + :paramtype code: str or ~azure.ai.textanalytics.v3_1.models.ErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_1.models.InnerError + :keyword details: Details about specific errors that led to this reported error. + :paramtype details: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + """ super(TextAnalyticsError, self).__init__(**kwargs) self.code = code self.message = message @@ -3169,13 +3962,13 @@ class TextAnalyticsWarning(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param code: Required. Error code. Possible values include: "LongWordsInDocument", + :ivar code: Required. Error code. Possible values include: "LongWordsInDocument", "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.v3_1.models.WarningCodeValue - :param message: Required. Warning message. - :type message: str - :param target_ref: A JSON pointer reference indicating the target object. - :type target_ref: str + :vartype code: str or ~azure.ai.textanalytics.v3_1.models.WarningCodeValue + :ivar message: Required. Warning message. + :vartype message: str + :ivar target_ref: A JSON pointer reference indicating the target object. + :vartype target_ref: str """ _validation = { @@ -3197,6 +3990,15 @@ def __init__( target_ref: Optional[str] = None, **kwargs ): + """ + :keyword code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :paramtype code: str or ~azure.ai.textanalytics.v3_1.models.WarningCodeValue + :keyword message: Required. Warning message. + :paramtype message: str + :keyword target_ref: A JSON pointer reference indicating the target object. + :paramtype target_ref: str + """ super(TextAnalyticsWarning, self).__init__(**kwargs) self.code = code self.message = message diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_text_analytics_client_enums.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_text_analytics_client_enums.py index 615a94221ab2..1f5a08ecd567 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_text_analytics_client_enums.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_text_analytics_client_enums.py @@ -6,34 +6,19 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from enum import Enum, EnumMeta +from enum import Enum from six import with_metaclass +from azure.core import CaseInsensitiveEnumMeta -class _CaseInsensitiveEnumMeta(EnumMeta): - def __getitem__(self, name): - return super().__getitem__(name.upper()) - def __getattr__(cls, name): - """Return the enum member matching `name` - We use __getattr__ instead of descriptors or inserting into the enum - class' __dict__ in order to support `name` and `value` being both - properties for enum members (which live in the class' __dict__) and - enum members themselves. - """ - try: - return cls._member_map_[name.upper()] - except KeyError: - raise AttributeError(name) - - -class Association(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class Association(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Describes if the entity is the subject of the text or if it describes someone else. """ SUBJECT = "subject" OTHER = "other" -class Certainty(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class Certainty(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Describes the entities certainty and polarity. """ @@ -43,14 +28,14 @@ class Certainty(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): NEGATIVE_POSSIBLE = "negativePossible" NEGATIVE = "negative" -class Conditionality(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class Conditionality(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Describes any conditionality on the entity. """ HYPOTHETICAL = "hypothetical" CONDITIONAL = "conditional" -class DocumentSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class DocumentSentimentValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). """ @@ -59,7 +44,7 @@ class DocumentSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum) NEGATIVE = "negative" MIXED = "mixed" -class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class ErrorCodeValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ @@ -69,7 +54,7 @@ class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SERVICE_UNAVAILABLE = "ServiceUnavailable" NOT_FOUND = "NotFound" -class HealthcareEntityCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class HealthcareEntityCategory(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Healthcare Entity Category. """ @@ -100,7 +85,7 @@ class HealthcareEntityCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enu FAMILY_RELATION = "FAMILY_RELATION" TREATMENT_NAME = "TREATMENT_NAME" -class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class InnerErrorCodeValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ @@ -114,7 +99,7 @@ class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): UNSUPPORTED_LANGUAGE_CODE = "UnsupportedLanguageCode" INVALID_COUNTRY_HINT = "InvalidCountryHint" -class PiiCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class PiiCategory(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): ABA_ROUTING_NUMBER = "ABARoutingNumber" AR_NATIONAL_IDENTITY_NUMBER = "ARNationalIdentityNumber" @@ -290,12 +275,12 @@ class PiiCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): ALL = "All" DEFAULT = "Default" -class PiiTaskParametersDomain(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class PiiTaskParametersDomain(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): PHI = "phi" NONE = "none" -class RelationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class RelationType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Type of relation. Examples include: ``DosageOfMedication`` or 'FrequencyOfMedication', etc. """ @@ -321,7 +306,7 @@ class RelationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): VALUE_OF_CONDITION = "ValueOfCondition" VALUE_OF_EXAMINATION = "ValueOfExamination" -class SentenceSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class SentenceSentimentValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """The predicted Sentiment for the sentence. """ @@ -329,7 +314,7 @@ class SentenceSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum) NEUTRAL = "neutral" NEGATIVE = "negative" -class State(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class State(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): NOT_STARTED = "notStarted" RUNNING = "running" @@ -339,7 +324,7 @@ class State(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): CANCELLED = "cancelled" CANCELLING = "cancelling" -class StringIndexType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class StringIndexType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): #: Returned offset and length values will correspond to TextElements (Graphemes and Grapheme #: clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is @@ -352,14 +337,14 @@ class StringIndexType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): #: application is written in a language that support Unicode, for example Java, JavaScript. UTF16_CODE_UNIT = "Utf16CodeUnit" -class TargetRelationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class TargetRelationType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """The type related to the target. """ ASSESSMENT = "assessment" TARGET = "target" -class TokenSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class TokenSentimentValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Targeted sentiment in the sentence. """ @@ -367,7 +352,7 @@ class TokenSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MIXED = "mixed" NEGATIVE = "negative" -class WarningCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class WarningCodeValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/operations/_text_analytics_client_operations.py index 4ce4a4ccb437..213b8704da59 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/operations/_text_analytics_client_operations.py @@ -5,17 +5,22 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import functools from typing import TYPE_CHECKING import warnings from ...._lro import AnalyzeActionsLROPoller, AnalyzeActionsLROPollingMethod, AnalyzeHealthcareEntitiesLROPoller, AnalyzeHealthcareEntitiesLROPollingMethod from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.pipeline.transport import HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod from azure.core.polling.base_polling import LROBasePolling +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from msrest import Serializer from .. import models as _models +from .._vendor import _convert_request, _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -24,6 +29,419 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +_SERIALIZER = Serializer() +# fmt: off + +def build_analyze_request_initial( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/analyze') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + headers=header_parameters, + **kwargs + ) + + +def build_analyze_status_request( + job_id, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + top = kwargs.pop('top', 20) # type: Optional[int] + skip = kwargs.pop('skip', 0) # type: Optional[int] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/analyze/jobs/{jobId}') + path_format_arguments = { + "jobId": _SERIALIZER.url("job_id", job_id, 'str'), + } + + url = _format_url_section(url, **path_format_arguments) + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if top is not None: + query_parameters['$top'] = _SERIALIZER.query("top", top, 'int', maximum=50, minimum=1) + if skip is not None: + query_parameters['$skip'] = _SERIALIZER.query("skip", skip, 'int', minimum=0) + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_health_status_request( + job_id, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + top = kwargs.pop('top', 20) # type: Optional[int] + skip = kwargs.pop('skip', 0) # type: Optional[int] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/health/jobs/{jobId}') + path_format_arguments = { + "jobId": _SERIALIZER.url("job_id", job_id, 'str'), + } + + url = _format_url_section(url, **path_format_arguments) + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if top is not None: + query_parameters['$top'] = _SERIALIZER.query("top", top, 'int', maximum=50, minimum=1) + if skip is not None: + query_parameters['$skip'] = _SERIALIZER.query("skip", skip, 'int', minimum=0) + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_cancel_health_job_request_initial( + job_id, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/health/jobs/{jobId}') + path_format_arguments = { + "jobId": _SERIALIZER.url("job_id", job_id, 'str'), + } + + url = _format_url_section(url, **path_format_arguments) + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="DELETE", + url=url, + headers=header_parameters, + **kwargs + ) + + +def build_health_request_initial( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/health/jobs') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_entities_recognition_general_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/recognition/general') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_entities_recognition_pii_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + domain = kwargs.pop('domain', None) # type: Optional[str] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + pii_categories = kwargs.pop('pii_categories', None) # type: Optional[List[Union[str, "_models.PiiCategory"]]] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/recognition/pii') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + if domain is not None: + query_parameters['domain'] = _SERIALIZER.query("domain", domain, 'str') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + if pii_categories is not None: + query_parameters['piiCategories'] = _SERIALIZER.query("pii_categories", pii_categories, '[str]', div=',') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_entities_linking_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/linking') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_key_phrases_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/keyPhrases') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_languages_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/languages') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_sentiment_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + opinion_mining = kwargs.pop('opinion_mining', None) # type: Optional[bool] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/sentiment') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + if opinion_mining is not None: + query_parameters['opinionMining'] = _SERIALIZER.query("opinion_mining", opinion_mining, 'bool') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + +# fmt: on class TextAnalyticsClientOperationsMixin(object): def _analyze_initial( @@ -37,53 +455,50 @@ def _analyze_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" - # Construct URL - url = self._analyze_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] if body is not None: - body_content = self._serialize.body(body, 'AnalyzeBatchInput') + json = self._serialize.body(body, 'AnalyzeBatchInput') else: - body_content = None - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + json = None + + request = build_analyze_request_initial( + content_type=content_type, + json=json, + template_url=self._analyze_initial.metadata['url'], + ) + request = _convert_request(request) + path_format_arguments = { + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) - response_headers = {} deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('AnalyzeJobState', pipeline_response) if response.status_code == 202: response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized + _analyze_initial.metadata = {'url': '/analyze'} # type: ignore + + @distributed_trace def begin_analyze( self, body=None, # type: Optional["_models.AnalyzeBatchInput"] @@ -99,15 +514,19 @@ def begin_analyze( :type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. Pass + in False for this operation to not poll, or pass in your own initialized polling object for a + personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the + result of cls(response) :rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.AnalyzeJobState"] lro_delay = kwargs.pop( 'polling_interval', @@ -117,25 +536,25 @@ def begin_analyze( if cont_token is None: raw_result = self._analyze_initial( body=body, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('AnalyzeJobState', pipeline_response) - if cls: return cls(pipeline_response, deserialized, {}) return deserialized + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AnalyzeActionsLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AnalyzeActionsLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -147,8 +566,10 @@ def get_long_running_output(pipeline_response): ) else: return AnalyzeActionsLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze.metadata = {'url': '/analyze'} # type: ignore + @distributed_trace def analyze_status( self, job_id, # type: str @@ -185,36 +606,27 @@ def analyze_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self.analyze_status.metadata['url'] # type: ignore + + request = build_analyze_status_request( + job_id=job_id, + show_stats=show_stats, + top=top, + skip=skip, + template_url=self.analyze_status.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=50, minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0) - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('AnalyzeJobState', pipeline_response) @@ -223,8 +635,11 @@ def analyze_status( return cls(pipeline_response, deserialized, {}) return deserialized + analyze_status.metadata = {'url': '/analyze/jobs/{jobId}'} # type: ignore + + @distributed_trace def health_status( self, job_id, # type: str @@ -259,36 +674,27 @@ def health_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self.health_status.metadata['url'] # type: ignore + + request = build_health_status_request( + job_id=job_id, + top=top, + skip=skip, + show_stats=show_stats, + template_url=self.health_status.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=50, minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0) - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('HealthcareJobState', pipeline_response) @@ -297,8 +703,10 @@ def health_status( return cls(pipeline_response, deserialized, {}) return deserialized + health_status.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore + def _cancel_health_job_initial( self, job_id, # type: str @@ -310,40 +718,36 @@ def _cancel_health_job_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self._cancel_health_job_initial.metadata['url'] # type: ignore + + request = build_cancel_health_job_request_initial( + job_id=job_id, + template_url=self._cancel_health_job_initial.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) response_headers = {} response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, None, response_headers) _cancel_health_job_initial.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore + + @distributed_trace def begin_cancel_health_job( self, job_id, # type: str @@ -358,15 +762,17 @@ def begin_cancel_health_job( :type job_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be LROBasePolling. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be LROBasePolling. Pass in False for + this operation to not poll, or pass in your own initialized polling object for a personal + polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -379,20 +785,18 @@ def begin_cancel_health_job( cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = LROBasePolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = LROBasePolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -404,6 +808,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_cancel_health_job.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore def _health_initial( @@ -421,57 +826,50 @@ def _health_initial( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self._health_initial.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_health_request_initial( + content_type=content_type, + model_version=model_version, + string_index_type=string_index_type, + logging_opt_out=logging_opt_out, + json=json, + template_url=self._health_initial.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) - response_headers = {} deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('HealthcareJobState', pipeline_response) if response.status_code == 202: response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized + _health_initial.metadata = {'url': '/entities/health/jobs'} # type: ignore + + @distributed_trace def begin_health( self, documents, # type: List["_models.MultiLanguageInput"] @@ -505,15 +903,20 @@ def begin_health( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AnalyzeHealthcareEntitiesLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be + AnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll, or + pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either + HealthcareJobState or the result of cls(response) + :rtype: + ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.HealthcareJobState"] lro_delay = kwargs.pop( 'polling_interval', @@ -526,25 +929,25 @@ def begin_health( model_version=model_version, string_index_type=string_index_type, logging_opt_out=logging_opt_out, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('HealthcareJobState', pipeline_response) - if cls: return cls(pipeline_response, deserialized, {}) return deserialized + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AnalyzeHealthcareEntitiesLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AnalyzeHealthcareEntitiesLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -556,8 +959,10 @@ def get_long_running_output(pipeline_response): ) else: return AnalyzeHealthcareEntitiesLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_health.metadata = {'url': '/entities/health/jobs'} # type: ignore + @distributed_trace def entities_recognition_general( self, documents, # type: List["_models.MultiLanguageInput"] @@ -606,43 +1011,32 @@ def entities_recognition_general( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_general.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_general_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + string_index_type=string_index_type, + json=json, + template_url=self.entities_recognition_general.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntitiesResult', pipeline_response) @@ -651,8 +1045,11 @@ def entities_recognition_general( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore + + @distributed_trace def entities_recognition_pii( self, documents, # type: List["_models.MultiLanguageInput"] @@ -709,47 +1106,34 @@ def entities_recognition_pii( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_pii.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_pii_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + domain=domain, + string_index_type=string_index_type, + pii_categories=pii_categories, + json=json, + template_url=self.entities_recognition_pii.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if domain is not None: - query_parameters['domain'] = self._serialize.query("domain", domain, 'str') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - if pii_categories is not None: - query_parameters['piiCategories'] = self._serialize.query("pii_categories", pii_categories, '[str]', div=',') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('PiiResult', pipeline_response) @@ -758,8 +1142,11 @@ def entities_recognition_pii( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_pii.metadata = {'url': '/entities/recognition/pii'} # type: ignore + + @distributed_trace def entities_linking( self, documents, # type: List["_models.MultiLanguageInput"] @@ -807,43 +1194,32 @@ def entities_linking( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_linking.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_linking_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + string_index_type=string_index_type, + json=json, + template_url=self.entities_linking.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntityLinkingResult', pipeline_response) @@ -852,8 +1228,11 @@ def entities_linking( return cls(pipeline_response, deserialized, {}) return deserialized + entities_linking.metadata = {'url': '/entities/linking'} # type: ignore + + @distributed_trace def key_phrases( self, documents, # type: List["_models.MultiLanguageInput"] @@ -896,41 +1275,31 @@ def key_phrases( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.key_phrases.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_key_phrases_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + json=json, + template_url=self.key_phrases.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('KeyPhraseResult', pipeline_response) @@ -939,8 +1308,11 @@ def key_phrases( return cls(pipeline_response, deserialized, {}) return deserialized + key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore + + @distributed_trace def languages( self, documents, # type: List["_models.LanguageInput"] @@ -984,41 +1356,31 @@ def languages( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.LanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.languages.metadata['url'] # type: ignore + _input = _models.LanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'LanguageBatchInput') + + request = build_languages_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + json=json, + template_url=self.languages.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'LanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('LanguageResult', pipeline_response) @@ -1027,8 +1389,11 @@ def languages( return cls(pipeline_response, deserialized, {}) return deserialized + languages.metadata = {'url': '/languages'} # type: ignore + + @distributed_trace def sentiment( self, documents, # type: List["_models.MultiLanguageInput"] @@ -1080,45 +1445,33 @@ def sentiment( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.sentiment.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_sentiment_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + opinion_mining=opinion_mining, + string_index_type=string_index_type, + json=json, + template_url=self.sentiment.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if opinion_mining is not None: - query_parameters['opinionMining'] = self._serialize.query("opinion_mining", opinion_mining, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SentimentResponse', pipeline_response) @@ -1127,4 +1480,6 @@ def sentiment( return cls(pipeline_response, deserialized, {}) return deserialized + sentiment.metadata = {'url': '/sentiment'} # type: ignore + diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/_models.py deleted file mode 100644 index 4b7704342caa..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/_models.py +++ /dev/null @@ -1,3106 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - - -class AnalysisInput(msrest.serialization.Model): - """AnalysisInput. - - All required parameters must be populated in order to send to Azure. - - :param analysis_input: Required. Contains a set of input documents to be analyzed by the - service. - :type analysis_input: ~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageBatchInput - """ - - _validation = { - 'analysis_input': {'required': True}, - } - - _attribute_map = { - 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, - } - - def __init__( - self, - **kwargs - ): - super(AnalysisInput, self).__init__(**kwargs) - self.analysis_input = kwargs['analysis_input'] - - -class JobManifest(msrest.serialization.Model): - """JobManifest. - - All required parameters must be populated in order to send to Azure. - - :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the - same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_2_preview_1.models.JobManifestTasks - """ - - _validation = { - 'tasks': {'required': True}, - } - - _attribute_map = { - 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, - } - - def __init__( - self, - **kwargs - ): - super(JobManifest, self).__init__(**kwargs) - self.tasks = kwargs['tasks'] - - -class JobDescriptor(msrest.serialization.Model): - """JobDescriptor. - - :param display_name: Optional display name for the analysis job. - :type display_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(JobDescriptor, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - - -class AnalyzeBatchInput(JobDescriptor, AnalysisInput, JobManifest): - """AnalyzeBatchInput. - - All required parameters must be populated in order to send to Azure. - - :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the - same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_2_preview_1.models.JobManifestTasks - :param analysis_input: Required. Contains a set of input documents to be analyzed by the - service. - :type analysis_input: ~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageBatchInput - :param display_name: Optional display name for the analysis job. - :type display_name: str - """ - - _validation = { - 'tasks': {'required': True}, - 'analysis_input': {'required': True}, - } - - _attribute_map = { - 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, - 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AnalyzeBatchInput, self).__init__(**kwargs) - self.tasks = kwargs['tasks'] - self.analysis_input = kwargs['analysis_input'] - self.tasks = kwargs['tasks'] - self.display_name = kwargs.get('display_name', None) - self.analysis_input = kwargs['analysis_input'] - self.display_name = kwargs.get('display_name', None) - - -class AnalyzeJobDisplayName(msrest.serialization.Model): - """AnalyzeJobDisplayName. - - :param display_name: - :type display_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AnalyzeJobDisplayName, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - - -class AnalyzeJobErrorsAndStatistics(msrest.serialization.Model): - """AnalyzeJobErrorsAndStatistics. - - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - } - - def __init__( - self, - **kwargs - ): - super(AnalyzeJobErrorsAndStatistics, self).__init__(**kwargs) - self.errors = kwargs.get('errors', None) - self.statistics = kwargs.get('statistics', None) - - -class JobMetadata(msrest.serialization.Model): - """JobMetadata. - - All required parameters must be populated in order to send to Azure. - - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'created_date_time': {'required': True}, - 'job_id': {'required': True}, - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, - 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(JobMetadata, self).__init__(**kwargs) - self.created_date_time = kwargs['created_date_time'] - self.expiration_date_time = kwargs.get('expiration_date_time', None) - self.job_id = kwargs['job_id'] - self.last_update_date_time = kwargs['last_update_date_time'] - self.status = kwargs['status'] - - -class AnalyzeJobMetadata(JobMetadata, AnalyzeJobDisplayName): - """AnalyzeJobMetadata. - - All required parameters must be populated in order to send to Azure. - - :param display_name: - :type display_name: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'created_date_time': {'required': True}, - 'job_id': {'required': True}, - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, - 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AnalyzeJobMetadata, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.created_date_time = kwargs['created_date_time'] - self.expiration_date_time = kwargs.get('expiration_date_time', None) - self.job_id = kwargs['job_id'] - self.last_update_date_time = kwargs['last_update_date_time'] - self.status = kwargs['status'] - - -class Pagination(msrest.serialization.Model): - """Pagination. - - :param next_link: - :type next_link: str - """ - - _attribute_map = { - 'next_link': {'key': '@nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Pagination, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - - -class TasksState(msrest.serialization.Model): - """TasksState. - - All required parameters must be populated in order to send to Azure. - - :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasks - """ - - _validation = { - 'tasks': {'required': True}, - } - - _attribute_map = { - 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, - } - - def __init__( - self, - **kwargs - ): - super(TasksState, self).__init__(**kwargs) - self.tasks = kwargs['tasks'] - - -class AnalyzeJobState(AnalyzeJobMetadata, TasksState, AnalyzeJobErrorsAndStatistics, Pagination): - """AnalyzeJobState. - - All required parameters must be populated in order to send to Azure. - - :param next_link: - :type next_link: str - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasks - :param display_name: - :type display_name: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'tasks': {'required': True}, - 'created_date_time': {'required': True}, - 'job_id': {'required': True}, - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'next_link': {'key': '@nextLink', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, - 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AnalyzeJobState, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - self.errors = kwargs.get('errors', None) - self.statistics = kwargs.get('statistics', None) - self.tasks = kwargs['tasks'] - self.next_link = kwargs.get('next_link', None) - self.errors = kwargs.get('errors', None) - self.statistics = kwargs.get('statistics', None) - self.display_name = kwargs.get('display_name', None) - self.created_date_time = kwargs['created_date_time'] - self.expiration_date_time = kwargs.get('expiration_date_time', None) - self.job_id = kwargs['job_id'] - self.last_update_date_time = kwargs['last_update_date_time'] - self.status = kwargs['status'] - self.next_link = kwargs.get('next_link', None) - self.tasks = kwargs['tasks'] - self.display_name = kwargs.get('display_name', None) - self.created_date_time = kwargs['created_date_time'] - self.expiration_date_time = kwargs.get('expiration_date_time', None) - self.job_id = kwargs['job_id'] - self.last_update_date_time = kwargs['last_update_date_time'] - self.status = kwargs['status'] - self.errors = kwargs.get('errors', None) - self.statistics = kwargs.get('statistics', None) - self.tasks = kwargs['tasks'] - self.display_name = kwargs.get('display_name', None) - self.created_date_time = kwargs['created_date_time'] - self.expiration_date_time = kwargs.get('expiration_date_time', None) - self.job_id = kwargs['job_id'] - self.last_update_date_time = kwargs['last_update_date_time'] - self.status = kwargs['status'] - - -class DetectedLanguage(msrest.serialization.Model): - """DetectedLanguage. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Long name of a detected language (e.g. English, French). - :type name: str - :param iso6391_name: Required. A two letter representation of the detected language according - to the ISO 639-1 standard (e.g. en, fr). - :type iso6391_name: str - :param confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 - indicate 100% certainty that the identified language is true. - :type confidence_score: float - """ - - _validation = { - 'name': {'required': True}, - 'iso6391_name': {'required': True}, - 'confidence_score': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'iso6391_name': {'key': 'iso6391Name', 'type': 'str'}, - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - } - - def __init__( - self, - **kwargs - ): - super(DetectedLanguage, self).__init__(**kwargs) - self.name = kwargs['name'] - self.iso6391_name = kwargs['iso6391_name'] - self.confidence_score = kwargs['confidence_score'] - - -class DocumentEntities(msrest.serialization.Model): - """DocumentEntities. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'entities': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[Entity]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - **kwargs - ): - super(DocumentEntities, self).__init__(**kwargs) - self.id = kwargs['id'] - self.entities = kwargs['entities'] - self.warnings = kwargs['warnings'] - self.statistics = kwargs.get('statistics', None) - - -class DocumentError(msrest.serialization.Model): - """DocumentError. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Document Id. - :type id: str - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError - """ - - _validation = { - 'id': {'required': True}, - 'error': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, - } - - def __init__( - self, - **kwargs - ): - super(DocumentError, self).__init__(**kwargs) - self.id = kwargs['id'] - self.error = kwargs['error'] - - -class DocumentHealthcareEntities(msrest.serialization.Model): - """DocumentHealthcareEntities. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Healthcare entities. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntity] - :param relations: Required. Healthcare entity relations. - :type relations: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareRelation] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'entities': {'required': True}, - 'relations': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[HealthcareEntity]'}, - 'relations': {'key': 'relations', 'type': '[HealthcareRelation]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - **kwargs - ): - super(DocumentHealthcareEntities, self).__init__(**kwargs) - self.id = kwargs['id'] - self.entities = kwargs['entities'] - self.relations = kwargs['relations'] - self.warnings = kwargs['warnings'] - self.statistics = kwargs.get('statistics', None) - - -class DocumentKeyPhrases(msrest.serialization.Model): - """DocumentKeyPhrases. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param key_phrases: Required. A list of representative words or phrases. The number of key - phrases returned is proportional to the number of words in the input document. - :type key_phrases: list[str] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'key_phrases': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'key_phrases': {'key': 'keyPhrases', 'type': '[str]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - **kwargs - ): - super(DocumentKeyPhrases, self).__init__(**kwargs) - self.id = kwargs['id'] - self.key_phrases = kwargs['key_phrases'] - self.warnings = kwargs['warnings'] - self.statistics = kwargs.get('statistics', None) - - -class DocumentLanguage(msrest.serialization.Model): - """DocumentLanguage. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param detected_language: Required. Detected Language. - :type detected_language: ~azure.ai.textanalytics.v3_2_preview_1.models.DetectedLanguage - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'detected_language': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'detected_language': {'key': 'detectedLanguage', 'type': 'DetectedLanguage'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - **kwargs - ): - super(DocumentLanguage, self).__init__(**kwargs) - self.id = kwargs['id'] - self.detected_language = kwargs['detected_language'] - self.warnings = kwargs['warnings'] - self.statistics = kwargs.get('statistics', None) - - -class DocumentLinkedEntities(msrest.serialization.Model): - """DocumentLinkedEntities. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized well known entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.LinkedEntity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'entities': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[LinkedEntity]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - **kwargs - ): - super(DocumentLinkedEntities, self).__init__(**kwargs) - self.id = kwargs['id'] - self.entities = kwargs['entities'] - self.warnings = kwargs['warnings'] - self.statistics = kwargs.get('statistics', None) - - -class DocumentSentiment(msrest.serialization.Model): - """DocumentSentiment. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or - Mixed). Possible values include: "positive", "neutral", "negative", "mixed". - :type sentiment: str or ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentSentimentValue - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 - for each sentiment class. - :type confidence_scores: - ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentConfidenceScorePerLabel - :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.v3_2_preview_1.models.SentenceSentiment] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - """ - - _validation = { - 'id': {'required': True}, - 'sentiment': {'required': True}, - 'confidence_scores': {'required': True}, - 'sentences': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'sentiment': {'key': 'sentiment', 'type': 'str'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, - 'sentences': {'key': 'sentences', 'type': '[SentenceSentiment]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - } - - def __init__( - self, - **kwargs - ): - super(DocumentSentiment, self).__init__(**kwargs) - self.id = kwargs['id'] - self.sentiment = kwargs['sentiment'] - self.statistics = kwargs.get('statistics', None) - self.confidence_scores = kwargs['confidence_scores'] - self.sentences = kwargs['sentences'] - self.warnings = kwargs['warnings'] - - -class DocumentStatistics(msrest.serialization.Model): - """if showStats=true was specified in the request this field will contain information about the document payload. - - All required parameters must be populated in order to send to Azure. - - :param characters_count: Required. Number of text elements recognized in the document. - :type characters_count: int - :param transactions_count: Required. Number of transactions for the document. - :type transactions_count: int - """ - - _validation = { - 'characters_count': {'required': True}, - 'transactions_count': {'required': True}, - } - - _attribute_map = { - 'characters_count': {'key': 'charactersCount', 'type': 'int'}, - 'transactions_count': {'key': 'transactionsCount', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - super(DocumentStatistics, self).__init__(**kwargs) - self.characters_count = kwargs['characters_count'] - self.transactions_count = kwargs['transactions_count'] - - -class EntitiesResult(msrest.serialization.Model): - """EntitiesResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentEntities]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(EntitiesResult, self).__init__(**kwargs) - self.documents = kwargs['documents'] - self.errors = kwargs['errors'] - self.statistics = kwargs.get('statistics', None) - self.model_version = kwargs['model_version'] - - -class EntitiesTask(msrest.serialization.Model): - """EntitiesTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'EntitiesTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(EntitiesTask, self).__init__(**kwargs) - self.parameters = kwargs.get('parameters', None) - self.task_name = kwargs.get('task_name', None) - - -class EntitiesTaskParameters(msrest.serialization.Model): - """EntitiesTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(EntitiesTaskParameters, self).__init__(**kwargs) - self.model_version = kwargs.get('model_version', "latest") - self.logging_opt_out = kwargs.get('logging_opt_out', False) - self.string_index_type = kwargs.get('string_index_type', None) - - -class EntitiesTaskResult(msrest.serialization.Model): - """EntitiesTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntitiesResult'}, - } - - def __init__( - self, - **kwargs - ): - super(EntitiesTaskResult, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class Entity(msrest.serialization.Model): - """Entity. - - All required parameters must be populated in order to send to Azure. - - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Entity type. - :type category: str - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' - values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values - can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float - """ - - _validation = { - 'text': {'required': True}, - 'category': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'confidence_score': {'required': True}, - } - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'subcategory': {'key': 'subcategory', 'type': 'str'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - } - - def __init__( - self, - **kwargs - ): - super(Entity, self).__init__(**kwargs) - self.text = kwargs['text'] - self.category = kwargs['category'] - self.subcategory = kwargs.get('subcategory', None) - self.offset = kwargs['offset'] - self.length = kwargs['length'] - self.confidence_score = kwargs['confidence_score'] - - -class EntityLinkingResult(msrest.serialization.Model): - """EntityLinkingResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentLinkedEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentLinkedEntities]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(EntityLinkingResult, self).__init__(**kwargs) - self.documents = kwargs['documents'] - self.errors = kwargs['errors'] - self.statistics = kwargs.get('statistics', None) - self.model_version = kwargs['model_version'] - - -class EntityLinkingTask(msrest.serialization.Model): - """EntityLinkingTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'EntityLinkingTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(EntityLinkingTask, self).__init__(**kwargs) - self.parameters = kwargs.get('parameters', None) - self.task_name = kwargs.get('task_name', None) - - -class EntityLinkingTaskParameters(msrest.serialization.Model): - """EntityLinkingTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(EntityLinkingTaskParameters, self).__init__(**kwargs) - self.model_version = kwargs.get('model_version', "latest") - self.logging_opt_out = kwargs.get('logging_opt_out', False) - self.string_index_type = kwargs.get('string_index_type', None) - - -class EntityLinkingTaskResult(msrest.serialization.Model): - """EntityLinkingTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, - } - - def __init__( - self, - **kwargs - ): - super(EntityLinkingTaskResult, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class ErrorResponse(msrest.serialization.Model): - """ErrorResponse. - - All required parameters must be populated in order to send to Azure. - - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError - """ - - _validation = { - 'error': {'required': True}, - } - - _attribute_map = { - 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorResponse, self).__init__(**kwargs) - self.error = kwargs['error'] - - -class ExtractedDocumentSummary(msrest.serialization.Model): - """ExtractedDocumentSummary. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param sentences: Required. A ranked list of sentences representing the extracted summary. - :type sentences: list[~azure.ai.textanalytics.v3_2_preview_1.models.ExtractedSummarySentence] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'sentences': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'sentences': {'key': 'sentences', 'type': '[ExtractedSummarySentence]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtractedDocumentSummary, self).__init__(**kwargs) - self.id = kwargs['id'] - self.sentences = kwargs['sentences'] - self.warnings = kwargs['warnings'] - self.statistics = kwargs.get('statistics', None) - - -class ExtractedSummarySentence(msrest.serialization.Model): - """ExtractedSummarySentence. - - All required parameters must be populated in order to send to Azure. - - :param text: Required. The extracted sentence text. - :type text: str - :param rank_score: Required. A double value representing the relevance of the sentence within - the summary. Higher values indicate higher importance. - :type rank_score: float - :param offset: Required. The sentence offset from the start of the document, based on the value - of the parameter StringIndexType. - :type offset: int - :param length: Required. The length of the sentence. - :type length: int - """ - - _validation = { - 'text': {'required': True}, - 'rank_score': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - } - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'rank_score': {'key': 'rankScore', 'type': 'float'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtractedSummarySentence, self).__init__(**kwargs) - self.text = kwargs['text'] - self.rank_score = kwargs['rank_score'] - self.offset = kwargs['offset'] - self.length = kwargs['length'] - - -class ExtractiveSummarizationResult(msrest.serialization.Model): - """ExtractiveSummarizationResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.ExtractedDocumentSummary] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[ExtractedDocumentSummary]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtractiveSummarizationResult, self).__init__(**kwargs) - self.documents = kwargs['documents'] - self.errors = kwargs['errors'] - self.statistics = kwargs.get('statistics', None) - self.model_version = kwargs['model_version'] - - -class ExtractiveSummarizationTask(msrest.serialization.Model): - """ExtractiveSummarizationTask. - - :param parameters: - :type parameters: - ~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'ExtractiveSummarizationTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtractiveSummarizationTask, self).__init__(**kwargs) - self.parameters = kwargs.get('parameters', None) - self.task_name = kwargs.get('task_name', None) - - -class ExtractiveSummarizationTaskParameters(msrest.serialization.Model): - """ExtractiveSummarizationTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - :param sentence_count: - :type sentence_count: int - :param sort_by: Possible values include: "Offset", "Rank". Default value: "Offset". - :type sort_by: str or - ~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationTaskParametersSortBy - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - 'sentence_count': {'key': 'sentenceCount', 'type': 'int'}, - 'sort_by': {'key': 'sortBy', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtractiveSummarizationTaskParameters, self).__init__(**kwargs) - self.model_version = kwargs.get('model_version', "latest") - self.logging_opt_out = kwargs.get('logging_opt_out', False) - self.string_index_type = kwargs.get('string_index_type', None) - self.sentence_count = kwargs.get('sentence_count', 3) - self.sort_by = kwargs.get('sort_by', "Offset") - - -class ExtractiveSummarizationTaskResult(msrest.serialization.Model): - """ExtractiveSummarizationTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'ExtractiveSummarizationResult'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtractiveSummarizationTaskResult, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class HealthcareAssertion(msrest.serialization.Model): - """HealthcareAssertion. - - :param conditionality: Describes any conditionality on the entity. Possible values include: - "hypothetical", "conditional". - :type conditionality: str or ~azure.ai.textanalytics.v3_2_preview_1.models.Conditionality - :param certainty: Describes the entities certainty and polarity. Possible values include: - "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". - :type certainty: str or ~azure.ai.textanalytics.v3_2_preview_1.models.Certainty - :param association: Describes if the entity is the subject of the text or if it describes - someone else. Possible values include: "subject", "other". - :type association: str or ~azure.ai.textanalytics.v3_2_preview_1.models.Association - """ - - _attribute_map = { - 'conditionality': {'key': 'conditionality', 'type': 'str'}, - 'certainty': {'key': 'certainty', 'type': 'str'}, - 'association': {'key': 'association', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareAssertion, self).__init__(**kwargs) - self.conditionality = kwargs.get('conditionality', None) - self.certainty = kwargs.get('certainty', None) - self.association = kwargs.get('association', None) - - -class HealthcareLinkingProperties(msrest.serialization.Model): - """HealthcareLinkingProperties. - - :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareAssertion - :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of - 'histologic'. - :type name: str - :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntityLink] - """ - - _attribute_map = { - 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, - 'name': {'key': 'name', 'type': 'str'}, - 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareLinkingProperties, self).__init__(**kwargs) - self.assertion = kwargs.get('assertion', None) - self.name = kwargs.get('name', None) - self.links = kwargs.get('links', None) - - -class HealthcareEntityProperties(msrest.serialization.Model): - """HealthcareEntityProperties. - - All required parameters must be populated in order to send to Azure. - - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Healthcare Entity Category. Possible values include: - "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", - "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", - "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", - "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", - "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". - :type category: str or ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntityCategory - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' - values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values - can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float - """ - - _validation = { - 'text': {'required': True}, - 'category': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'confidence_score': {'required': True}, - } - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'subcategory': {'key': 'subcategory', 'type': 'str'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareEntityProperties, self).__init__(**kwargs) - self.text = kwargs['text'] - self.category = kwargs['category'] - self.subcategory = kwargs.get('subcategory', None) - self.offset = kwargs['offset'] - self.length = kwargs['length'] - self.confidence_score = kwargs['confidence_score'] - - -class HealthcareEntity(HealthcareEntityProperties, HealthcareLinkingProperties): - """HealthcareEntity. - - All required parameters must be populated in order to send to Azure. - - :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareAssertion - :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of - 'histologic'. - :type name: str - :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntityLink] - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Healthcare Entity Category. Possible values include: - "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", - "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", - "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", - "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", - "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". - :type category: str or ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntityCategory - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' - values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values - can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float - """ - - _validation = { - 'text': {'required': True}, - 'category': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'confidence_score': {'required': True}, - } - - _attribute_map = { - 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, - 'name': {'key': 'name', 'type': 'str'}, - 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, - 'text': {'key': 'text', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'subcategory': {'key': 'subcategory', 'type': 'str'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareEntity, self).__init__(**kwargs) - self.assertion = kwargs.get('assertion', None) - self.name = kwargs.get('name', None) - self.links = kwargs.get('links', None) - self.text = kwargs['text'] - self.category = kwargs['category'] - self.subcategory = kwargs.get('subcategory', None) - self.offset = kwargs['offset'] - self.length = kwargs['length'] - self.confidence_score = kwargs['confidence_score'] - - -class HealthcareEntityLink(msrest.serialization.Model): - """HealthcareEntityLink. - - All required parameters must be populated in order to send to Azure. - - :param data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. - :type data_source: str - :param id: Required. Entity id in the given source catalog. - :type id: str - """ - - _validation = { - 'data_source': {'required': True}, - 'id': {'required': True}, - } - - _attribute_map = { - 'data_source': {'key': 'dataSource', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareEntityLink, self).__init__(**kwargs) - self.data_source = kwargs['data_source'] - self.id = kwargs['id'] - - -class HealthcareTaskResult(msrest.serialization.Model): - """HealthcareTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'HealthcareResult'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareTaskResult, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - self.errors = kwargs.get('errors', None) - - -class HealthcareJobState(JobMetadata, Pagination, HealthcareTaskResult): - """HealthcareJobState. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - :param next_link: - :type next_link: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'created_date_time': {'required': True}, - 'job_id': {'required': True}, - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'HealthcareResult'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - 'next_link': {'key': '@nextLink', 'type': 'str'}, - 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, - 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareJobState, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - self.errors = kwargs.get('errors', None) - self.next_link = kwargs.get('next_link', None) - self.results = kwargs.get('results', None) - self.errors = kwargs.get('errors', None) - self.created_date_time = kwargs['created_date_time'] - self.expiration_date_time = kwargs.get('expiration_date_time', None) - self.job_id = kwargs['job_id'] - self.last_update_date_time = kwargs['last_update_date_time'] - self.status = kwargs['status'] - self.next_link = kwargs.get('next_link', None) - self.created_date_time = kwargs['created_date_time'] - self.expiration_date_time = kwargs.get('expiration_date_time', None) - self.job_id = kwargs['job_id'] - self.last_update_date_time = kwargs['last_update_date_time'] - self.status = kwargs['status'] - - -class HealthcareRelation(msrest.serialization.Model): - """Every relation is an entity graph of a certain relationType, where all entities are connected and have specific roles within the relation context. - - All required parameters must be populated in order to send to Azure. - - :param relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or - 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", - "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", - "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", - "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", - "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", - "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". - :type relation_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.RelationType - :param entities: Required. The entities in the relation. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareRelationEntity] - """ - - _validation = { - 'relation_type': {'required': True}, - 'entities': {'required': True}, - } - - _attribute_map = { - 'relation_type': {'key': 'relationType', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[HealthcareRelationEntity]'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareRelation, self).__init__(**kwargs) - self.relation_type = kwargs['relation_type'] - self.entities = kwargs['entities'] - - -class HealthcareRelationEntity(msrest.serialization.Model): - """HealthcareRelationEntity. - - All required parameters must be populated in order to send to Azure. - - :param ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment - Identifier Representation), pointing to the entity . - :type ref: str - :param role: Required. Role of entity in the relationship. For example: 'CD20-positive diffuse - large B-cell lymphoma' has the following entities with their roles in parenthesis: CD20 - (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). - :type role: str - """ - - _validation = { - 'ref': {'required': True}, - 'role': {'required': True}, - } - - _attribute_map = { - 'ref': {'key': 'ref', 'type': 'str'}, - 'role': {'key': 'role', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareRelationEntity, self).__init__(**kwargs) - self.ref = kwargs['ref'] - self.role = kwargs['role'] - - -class HealthcareResult(msrest.serialization.Model): - """HealthcareResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentHealthcareEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentHealthcareEntities]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(HealthcareResult, self).__init__(**kwargs) - self.documents = kwargs['documents'] - self.errors = kwargs['errors'] - self.statistics = kwargs.get('statistics', None) - self.model_version = kwargs['model_version'] - - -class InnerError(msrest.serialization.Model): - """InnerError. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. Error code. Possible values include: "InvalidParameterValue", - "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", - "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", - "InvalidCountryHint". - :type code: str or ~azure.ai.textanalytics.v3_2_preview_1.models.InnerErrorCodeValue - :param message: Required. Error message. - :type message: str - :param details: Error details. - :type details: dict[str, str] - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_2_preview_1.models.InnerError - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '{str}'}, - 'target': {'key': 'target', 'type': 'str'}, - 'innererror': {'key': 'innererror', 'type': 'InnerError'}, - } - - def __init__( - self, - **kwargs - ): - super(InnerError, self).__init__(**kwargs) - self.code = kwargs['code'] - self.message = kwargs['message'] - self.details = kwargs.get('details', None) - self.target = kwargs.get('target', None) - self.innererror = kwargs.get('innererror', None) - - -class JobManifestTasks(msrest.serialization.Model): - """The set of tasks to execute on the input documents. Cannot specify the same task more than once. - - :param entity_recognition_tasks: - :type entity_recognition_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesTask] - :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_2_preview_1.models.PiiTask] - :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhrasesTask] - :param entity_linking_tasks: - :type entity_linking_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingTask] - :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.SentimentAnalysisTask] - :param extractive_summarization_tasks: - :type extractive_summarization_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationTask] - """ - - _attribute_map = { - 'entity_recognition_tasks': {'key': 'entityRecognitionTasks', 'type': '[EntitiesTask]'}, - 'entity_recognition_pii_tasks': {'key': 'entityRecognitionPiiTasks', 'type': '[PiiTask]'}, - 'key_phrase_extraction_tasks': {'key': 'keyPhraseExtractionTasks', 'type': '[KeyPhrasesTask]'}, - 'entity_linking_tasks': {'key': 'entityLinkingTasks', 'type': '[EntityLinkingTask]'}, - 'sentiment_analysis_tasks': {'key': 'sentimentAnalysisTasks', 'type': '[SentimentAnalysisTask]'}, - 'extractive_summarization_tasks': {'key': 'extractiveSummarizationTasks', 'type': '[ExtractiveSummarizationTask]'}, - } - - def __init__( - self, - **kwargs - ): - super(JobManifestTasks, self).__init__(**kwargs) - self.entity_recognition_tasks = kwargs.get('entity_recognition_tasks', None) - self.entity_recognition_pii_tasks = kwargs.get('entity_recognition_pii_tasks', None) - self.key_phrase_extraction_tasks = kwargs.get('key_phrase_extraction_tasks', None) - self.entity_linking_tasks = kwargs.get('entity_linking_tasks', None) - self.sentiment_analysis_tasks = kwargs.get('sentiment_analysis_tasks', None) - self.extractive_summarization_tasks = kwargs.get('extractive_summarization_tasks', None) - - -class KeyPhraseResult(msrest.serialization.Model): - """KeyPhraseResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentKeyPhrases] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentKeyPhrases]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(KeyPhraseResult, self).__init__(**kwargs) - self.documents = kwargs['documents'] - self.errors = kwargs['errors'] - self.statistics = kwargs.get('statistics', None) - self.model_version = kwargs['model_version'] - - -class KeyPhrasesTask(msrest.serialization.Model): - """KeyPhrasesTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhrasesTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'KeyPhrasesTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(KeyPhrasesTask, self).__init__(**kwargs) - self.parameters = kwargs.get('parameters', None) - self.task_name = kwargs.get('task_name', None) - - -class KeyPhrasesTaskParameters(msrest.serialization.Model): - """KeyPhrasesTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(KeyPhrasesTaskParameters, self).__init__(**kwargs) - self.model_version = kwargs.get('model_version', "latest") - self.logging_opt_out = kwargs.get('logging_opt_out', False) - - -class KeyPhraseTaskResult(msrest.serialization.Model): - """KeyPhraseTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhraseResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, - } - - def __init__( - self, - **kwargs - ): - super(KeyPhraseTaskResult, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class LanguageBatchInput(msrest.serialization.Model): - """LanguageBatchInput. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.LanguageInput] - """ - - _validation = { - 'documents': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[LanguageInput]'}, - } - - def __init__( - self, - **kwargs - ): - super(LanguageBatchInput, self).__init__(**kwargs) - self.documents = kwargs['documents'] - - -class LanguageInput(msrest.serialization.Model): - """LanguageInput. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param text: Required. - :type text: str - :param country_hint: - :type country_hint: str - """ - - _validation = { - 'id': {'required': True}, - 'text': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'}, - 'country_hint': {'key': 'countryHint', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(LanguageInput, self).__init__(**kwargs) - self.id = kwargs['id'] - self.text = kwargs['text'] - self.country_hint = kwargs.get('country_hint', None) - - -class LanguageResult(msrest.serialization.Model): - """LanguageResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentLanguage] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentLanguage]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(LanguageResult, self).__init__(**kwargs) - self.documents = kwargs['documents'] - self.errors = kwargs['errors'] - self.statistics = kwargs.get('statistics', None) - self.model_version = kwargs['model_version'] - - -class LinkedEntity(msrest.serialization.Model): - """LinkedEntity. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Entity Linking formal name. - :type name: str - :param matches: Required. List of instances this entity appears in the text. - :type matches: list[~azure.ai.textanalytics.v3_2_preview_1.models.Match] - :param language: Required. Language used in the data source. - :type language: str - :param id: Unique identifier of the recognized entity from the data source. - :type id: str - :param url: Required. URL for the entity's page from the data source. - :type url: str - :param data_source: Required. Data source used to extract entity linking, such as Wiki/Bing - etc. - :type data_source: str - :param bing_id: Bing Entity Search API unique identifier of the recognized entity. - :type bing_id: str - """ - - _validation = { - 'name': {'required': True}, - 'matches': {'required': True}, - 'language': {'required': True}, - 'url': {'required': True}, - 'data_source': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'matches': {'key': 'matches', 'type': '[Match]'}, - 'language': {'key': 'language', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'data_source': {'key': 'dataSource', 'type': 'str'}, - 'bing_id': {'key': 'bingId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(LinkedEntity, self).__init__(**kwargs) - self.name = kwargs['name'] - self.matches = kwargs['matches'] - self.language = kwargs['language'] - self.id = kwargs.get('id', None) - self.url = kwargs['url'] - self.data_source = kwargs['data_source'] - self.bing_id = kwargs.get('bing_id', None) - - -class Match(msrest.serialization.Model): - """Match. - - All required parameters must be populated in order to send to Azure. - - :param confidence_score: Required. If a well known item is recognized, a decimal number - denoting the confidence level between 0 and 1 will be returned. - :type confidence_score: float - :param text: Required. Entity text as appears in the request. - :type text: str - :param offset: Required. Start position for the entity match text. - :type offset: int - :param length: Required. Length for the entity match text. - :type length: int - """ - - _validation = { - 'confidence_score': {'required': True}, - 'text': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - } - - _attribute_map = { - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - 'text': {'key': 'text', 'type': 'str'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - super(Match, self).__init__(**kwargs) - self.confidence_score = kwargs['confidence_score'] - self.text = kwargs['text'] - self.offset = kwargs['offset'] - self.length = kwargs['length'] - - -class MultiLanguageBatchInput(msrest.serialization.Model): - """Contains a set of input documents to be analyzed by the service. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] - """ - - _validation = { - 'documents': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[MultiLanguageInput]'}, - } - - def __init__( - self, - **kwargs - ): - super(MultiLanguageBatchInput, self).__init__(**kwargs) - self.documents = kwargs['documents'] - - -class MultiLanguageInput(msrest.serialization.Model): - """Contains an input document to be analyzed by the service. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. A unique, non-empty document identifier. - :type id: str - :param text: Required. The input text to process. - :type text: str - :param language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For - example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as - default. - :type language: str - """ - - _validation = { - 'id': {'required': True}, - 'text': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(MultiLanguageInput, self).__init__(**kwargs) - self.id = kwargs['id'] - self.text = kwargs['text'] - self.language = kwargs.get('language', None) - - -class PiiDocumentEntities(msrest.serialization.Model): - """PiiDocumentEntities. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param redacted_text: Required. Returns redacted text. - :type redacted_text: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'redacted_text': {'required': True}, - 'entities': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'redacted_text': {'key': 'redactedText', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[Entity]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - **kwargs - ): - super(PiiDocumentEntities, self).__init__(**kwargs) - self.id = kwargs['id'] - self.redacted_text = kwargs['redacted_text'] - self.entities = kwargs['entities'] - self.warnings = kwargs['warnings'] - self.statistics = kwargs.get('statistics', None) - - -class PiiResult(msrest.serialization.Model): - """PiiResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.PiiDocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[PiiDocumentEntities]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PiiResult, self).__init__(**kwargs) - self.documents = kwargs['documents'] - self.errors = kwargs['errors'] - self.statistics = kwargs.get('statistics', None) - self.model_version = kwargs['model_version'] - - -class PiiTask(msrest.serialization.Model): - """PiiTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'PiiTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PiiTask, self).__init__(**kwargs) - self.parameters = kwargs.get('parameters', None) - self.task_name = kwargs.get('task_name', None) - - -class PiiTaskParameters(msrest.serialization.Model): - """PiiTaskParameters. - - :param domain: Possible values include: "phi", "none". Default value: "none". - :type domain: str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiTaskParametersDomain - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiCategory] - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - """ - - _validation = { - 'pii_categories': {'unique': True}, - } - - _attribute_map = { - 'domain': {'key': 'domain', 'type': 'str'}, - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'pii_categories': {'key': 'piiCategories', 'type': '[str]'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PiiTaskParameters, self).__init__(**kwargs) - self.domain = kwargs.get('domain', "none") - self.model_version = kwargs.get('model_version', "latest") - self.logging_opt_out = kwargs.get('logging_opt_out', True) - self.pii_categories = kwargs.get('pii_categories', None) - self.string_index_type = kwargs.get('string_index_type', None) - - -class PiiTaskResult(msrest.serialization.Model): - """PiiTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'PiiResult'}, - } - - def __init__( - self, - **kwargs - ): - super(PiiTaskResult, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class RequestStatistics(msrest.serialization.Model): - """if showStats=true was specified in the request this field will contain information about the request payload. - - All required parameters must be populated in order to send to Azure. - - :param documents_count: Required. Number of documents submitted in the request. - :type documents_count: int - :param valid_documents_count: Required. Number of valid documents. This excludes empty, - over-size limit or non-supported languages documents. - :type valid_documents_count: int - :param erroneous_documents_count: Required. Number of invalid documents. This includes empty, - over-size limit or non-supported languages documents. - :type erroneous_documents_count: int - :param transactions_count: Required. Number of transactions for the request. - :type transactions_count: long - """ - - _validation = { - 'documents_count': {'required': True}, - 'valid_documents_count': {'required': True}, - 'erroneous_documents_count': {'required': True}, - 'transactions_count': {'required': True}, - } - - _attribute_map = { - 'documents_count': {'key': 'documentsCount', 'type': 'int'}, - 'valid_documents_count': {'key': 'validDocumentsCount', 'type': 'int'}, - 'erroneous_documents_count': {'key': 'erroneousDocumentsCount', 'type': 'int'}, - 'transactions_count': {'key': 'transactionsCount', 'type': 'long'}, - } - - def __init__( - self, - **kwargs - ): - super(RequestStatistics, self).__init__(**kwargs) - self.documents_count = kwargs['documents_count'] - self.valid_documents_count = kwargs['valid_documents_count'] - self.erroneous_documents_count = kwargs['erroneous_documents_count'] - self.transactions_count = kwargs['transactions_count'] - - -class SentenceAssessment(msrest.serialization.Model): - """SentenceAssessment. - - All required parameters must be populated in order to send to Azure. - - :param sentiment: Required. Assessment sentiment in the sentence. Possible values include: - "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_2_preview_1.models.TokenSentimentValue - :param confidence_scores: Required. Assessment sentiment confidence scores in the sentence. - :type confidence_scores: - ~azure.ai.textanalytics.v3_2_preview_1.models.TargetConfidenceScoreLabel - :param offset: Required. The assessment offset from the start of the sentence. - :type offset: int - :param length: Required. The length of the assessment. - :type length: int - :param text: Required. The assessment text detected. - :type text: str - :param is_negated: Required. The indicator representing if the assessment is negated. - :type is_negated: bool - """ - - _validation = { - 'sentiment': {'required': True}, - 'confidence_scores': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'text': {'required': True}, - 'is_negated': {'required': True}, - } - - _attribute_map = { - 'sentiment': {'key': 'sentiment', 'type': 'str'}, - 'confidence_scores': {'key': 'confidenceScores', 'type': 'TargetConfidenceScoreLabel'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'text': {'key': 'text', 'type': 'str'}, - 'is_negated': {'key': 'isNegated', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - super(SentenceAssessment, self).__init__(**kwargs) - self.sentiment = kwargs['sentiment'] - self.confidence_scores = kwargs['confidence_scores'] - self.offset = kwargs['offset'] - self.length = kwargs['length'] - self.text = kwargs['text'] - self.is_negated = kwargs['is_negated'] - - -class SentenceSentiment(msrest.serialization.Model): - """SentenceSentiment. - - All required parameters must be populated in order to send to Azure. - - :param text: Required. The sentence text. - :type text: str - :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: - "positive", "neutral", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_2_preview_1.models.SentenceSentimentValue - :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the - sentence for all classes. - :type confidence_scores: - ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentConfidenceScorePerLabel - :param offset: Required. The sentence offset from the start of the document. - :type offset: int - :param length: Required. The length of the sentence. - :type length: int - :param targets: The array of sentence targets for the sentence. - :type targets: list[~azure.ai.textanalytics.v3_2_preview_1.models.SentenceTarget] - :param assessments: The array of assessments for the sentence. - :type assessments: list[~azure.ai.textanalytics.v3_2_preview_1.models.SentenceAssessment] - """ - - _validation = { - 'text': {'required': True}, - 'sentiment': {'required': True}, - 'confidence_scores': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - } - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'sentiment': {'key': 'sentiment', 'type': 'str'}, - 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'targets': {'key': 'targets', 'type': '[SentenceTarget]'}, - 'assessments': {'key': 'assessments', 'type': '[SentenceAssessment]'}, - } - - def __init__( - self, - **kwargs - ): - super(SentenceSentiment, self).__init__(**kwargs) - self.text = kwargs['text'] - self.sentiment = kwargs['sentiment'] - self.confidence_scores = kwargs['confidence_scores'] - self.offset = kwargs['offset'] - self.length = kwargs['length'] - self.targets = kwargs.get('targets', None) - self.assessments = kwargs.get('assessments', None) - - -class SentenceTarget(msrest.serialization.Model): - """SentenceTarget. - - All required parameters must be populated in order to send to Azure. - - :param sentiment: Required. Targeted sentiment in the sentence. Possible values include: - "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_2_preview_1.models.TokenSentimentValue - :param confidence_scores: Required. Target sentiment confidence scores for the target in the - sentence. - :type confidence_scores: - ~azure.ai.textanalytics.v3_2_preview_1.models.TargetConfidenceScoreLabel - :param offset: Required. The target offset from the start of the sentence. - :type offset: int - :param length: Required. The length of the target. - :type length: int - :param text: Required. The target text detected. - :type text: str - :param relations: Required. The array of either assessment or target objects which is related - to the target. - :type relations: list[~azure.ai.textanalytics.v3_2_preview_1.models.TargetRelation] - """ - - _validation = { - 'sentiment': {'required': True}, - 'confidence_scores': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'text': {'required': True}, - 'relations': {'required': True}, - } - - _attribute_map = { - 'sentiment': {'key': 'sentiment', 'type': 'str'}, - 'confidence_scores': {'key': 'confidenceScores', 'type': 'TargetConfidenceScoreLabel'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'text': {'key': 'text', 'type': 'str'}, - 'relations': {'key': 'relations', 'type': '[TargetRelation]'}, - } - - def __init__( - self, - **kwargs - ): - super(SentenceTarget, self).__init__(**kwargs) - self.sentiment = kwargs['sentiment'] - self.confidence_scores = kwargs['confidence_scores'] - self.offset = kwargs['offset'] - self.length = kwargs['length'] - self.text = kwargs['text'] - self.relations = kwargs['relations'] - - -class SentimentAnalysisTask(msrest.serialization.Model): - """SentimentAnalysisTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentAnalysisTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'SentimentAnalysisTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SentimentAnalysisTask, self).__init__(**kwargs) - self.parameters = kwargs.get('parameters', None) - self.task_name = kwargs.get('task_name', None) - - -class SentimentAnalysisTaskParameters(msrest.serialization.Model): - """SentimentAnalysisTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param opinion_mining: - :type opinion_mining: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'opinion_mining': {'key': 'opinionMining', 'type': 'bool'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SentimentAnalysisTaskParameters, self).__init__(**kwargs) - self.model_version = kwargs.get('model_version', "latest") - self.logging_opt_out = kwargs.get('logging_opt_out', False) - self.opinion_mining = kwargs.get('opinion_mining', False) - self.string_index_type = kwargs.get('string_index_type', None) - - -class SentimentConfidenceScorePerLabel(msrest.serialization.Model): - """Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative. - - All required parameters must be populated in order to send to Azure. - - :param positive: Required. - :type positive: float - :param neutral: Required. - :type neutral: float - :param negative: Required. - :type negative: float - """ - - _validation = { - 'positive': {'required': True}, - 'neutral': {'required': True}, - 'negative': {'required': True}, - } - - _attribute_map = { - 'positive': {'key': 'positive', 'type': 'float'}, - 'neutral': {'key': 'neutral', 'type': 'float'}, - 'negative': {'key': 'negative', 'type': 'float'}, - } - - def __init__( - self, - **kwargs - ): - super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) - self.positive = kwargs['positive'] - self.neutral = kwargs['neutral'] - self.negative = kwargs['negative'] - - -class SentimentResponse(msrest.serialization.Model): - """SentimentResponse. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Sentiment analysis per document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentSentiment] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentSentiment]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SentimentResponse, self).__init__(**kwargs) - self.documents = kwargs['documents'] - self.errors = kwargs['errors'] - self.statistics = kwargs.get('statistics', None) - self.model_version = kwargs['model_version'] - - -class SentimentTaskResult(msrest.serialization.Model): - """SentimentTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'SentimentResponse'}, - } - - def __init__( - self, - **kwargs - ): - super(SentimentTaskResult, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class TargetConfidenceScoreLabel(msrest.serialization.Model): - """Represents the confidence scores across all sentiment classes: positive, neutral, negative. - - All required parameters must be populated in order to send to Azure. - - :param positive: Required. - :type positive: float - :param negative: Required. - :type negative: float - """ - - _validation = { - 'positive': {'required': True}, - 'negative': {'required': True}, - } - - _attribute_map = { - 'positive': {'key': 'positive', 'type': 'float'}, - 'negative': {'key': 'negative', 'type': 'float'}, - } - - def __init__( - self, - **kwargs - ): - super(TargetConfidenceScoreLabel, self).__init__(**kwargs) - self.positive = kwargs['positive'] - self.negative = kwargs['negative'] - - -class TargetRelation(msrest.serialization.Model): - """TargetRelation. - - All required parameters must be populated in order to send to Azure. - - :param relation_type: Required. The type related to the target. Possible values include: - "assessment", "target". - :type relation_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.TargetRelationType - :param ref: Required. The JSON pointer indicating the linked object. - :type ref: str - """ - - _validation = { - 'relation_type': {'required': True}, - 'ref': {'required': True}, - } - - _attribute_map = { - 'relation_type': {'key': 'relationType', 'type': 'str'}, - 'ref': {'key': 'ref', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TargetRelation, self).__init__(**kwargs) - self.relation_type = kwargs['relation_type'] - self.ref = kwargs['ref'] - - -class TasksStateTasks(msrest.serialization.Model): - """TasksStateTasks. - - All required parameters must be populated in order to send to Azure. - - :param completed: Required. - :type completed: int - :param failed: Required. - :type failed: int - :param in_progress: Required. - :type in_progress: int - :param total: Required. - :type total: int - :param entity_recognition_tasks: - :type entity_recognition_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksEntityRecognitionTasksItem] - :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksEntityRecognitionPiiTasksItem] - :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksKeyPhraseExtractionTasksItem] - :param entity_linking_tasks: - :type entity_linking_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksEntityLinkingTasksItem] - :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksSentimentAnalysisTasksItem] - :param extractive_summarization_tasks: - :type extractive_summarization_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksExtractiveSummarizationTasksItem] - """ - - _validation = { - 'completed': {'required': True}, - 'failed': {'required': True}, - 'in_progress': {'required': True}, - 'total': {'required': True}, - } - - _attribute_map = { - 'completed': {'key': 'completed', 'type': 'int'}, - 'failed': {'key': 'failed', 'type': 'int'}, - 'in_progress': {'key': 'inProgress', 'type': 'int'}, - 'total': {'key': 'total', 'type': 'int'}, - 'entity_recognition_tasks': {'key': 'entityRecognitionTasks', 'type': '[TasksStateTasksEntityRecognitionTasksItem]'}, - 'entity_recognition_pii_tasks': {'key': 'entityRecognitionPiiTasks', 'type': '[TasksStateTasksEntityRecognitionPiiTasksItem]'}, - 'key_phrase_extraction_tasks': {'key': 'keyPhraseExtractionTasks', 'type': '[TasksStateTasksKeyPhraseExtractionTasksItem]'}, - 'entity_linking_tasks': {'key': 'entityLinkingTasks', 'type': '[TasksStateTasksEntityLinkingTasksItem]'}, - 'sentiment_analysis_tasks': {'key': 'sentimentAnalysisTasks', 'type': '[TasksStateTasksSentimentAnalysisTasksItem]'}, - 'extractive_summarization_tasks': {'key': 'extractiveSummarizationTasks', 'type': '[TasksStateTasksExtractiveSummarizationTasksItem]'}, - } - - def __init__( - self, - **kwargs - ): - super(TasksStateTasks, self).__init__(**kwargs) - self.completed = kwargs['completed'] - self.failed = kwargs['failed'] - self.in_progress = kwargs['in_progress'] - self.total = kwargs['total'] - self.entity_recognition_tasks = kwargs.get('entity_recognition_tasks', None) - self.entity_recognition_pii_tasks = kwargs.get('entity_recognition_pii_tasks', None) - self.key_phrase_extraction_tasks = kwargs.get('key_phrase_extraction_tasks', None) - self.entity_linking_tasks = kwargs.get('entity_linking_tasks', None) - self.sentiment_analysis_tasks = kwargs.get('sentiment_analysis_tasks', None) - self.extractive_summarization_tasks = kwargs.get('extractive_summarization_tasks', None) - - -class TaskState(msrest.serialization.Model): - """TaskState. - - All required parameters must be populated in order to send to Azure. - - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TaskState, self).__init__(**kwargs) - self.last_update_date_time = kwargs['last_update_date_time'] - self.task_name = kwargs['task_name'] - self.status = kwargs['status'] - - -class TasksStateTasksEntityLinkingTasksItem(TaskState, EntityLinkingTaskResult): - """TasksStateTasksEntityLinkingTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TasksStateTasksEntityLinkingTasksItem, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - self.last_update_date_time = kwargs['last_update_date_time'] - self.task_name = kwargs['task_name'] - self.status = kwargs['status'] - - -class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, PiiTaskResult): - """TasksStateTasksEntityRecognitionPiiTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'PiiResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TasksStateTasksEntityRecognitionPiiTasksItem, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - self.last_update_date_time = kwargs['last_update_date_time'] - self.task_name = kwargs['task_name'] - self.status = kwargs['status'] - - -class TasksStateTasksEntityRecognitionTasksItem(TaskState, EntitiesTaskResult): - """TasksStateTasksEntityRecognitionTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntitiesResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TasksStateTasksEntityRecognitionTasksItem, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - self.last_update_date_time = kwargs['last_update_date_time'] - self.task_name = kwargs['task_name'] - self.status = kwargs['status'] - - -class TasksStateTasksExtractiveSummarizationTasksItem(TaskState, ExtractiveSummarizationTaskResult): - """TasksStateTasksExtractiveSummarizationTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'ExtractiveSummarizationResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TasksStateTasksExtractiveSummarizationTasksItem, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - self.last_update_date_time = kwargs['last_update_date_time'] - self.task_name = kwargs['task_name'] - self.status = kwargs['status'] - - -class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, KeyPhraseTaskResult): - """TasksStateTasksKeyPhraseExtractionTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhraseResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TasksStateTasksKeyPhraseExtractionTasksItem, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - self.last_update_date_time = kwargs['last_update_date_time'] - self.task_name = kwargs['task_name'] - self.status = kwargs['status'] - - -class TasksStateTasksSentimentAnalysisTasksItem(TaskState, SentimentTaskResult): - """TasksStateTasksSentimentAnalysisTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'SentimentResponse'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TasksStateTasksSentimentAnalysisTasksItem, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - self.last_update_date_time = kwargs['last_update_date_time'] - self.task_name = kwargs['task_name'] - self.status = kwargs['status'] - - -class TextAnalyticsError(msrest.serialization.Model): - """TextAnalyticsError. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. Error code. Possible values include: "InvalidRequest", - "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". - :type code: str or ~azure.ai.textanalytics.v3_2_preview_1.models.ErrorCodeValue - :param message: Required. Error message. - :type message: str - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_2_preview_1.models.InnerError - :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'innererror': {'key': 'innererror', 'type': 'InnerError'}, - 'details': {'key': 'details', 'type': '[TextAnalyticsError]'}, - } - - def __init__( - self, - **kwargs - ): - super(TextAnalyticsError, self).__init__(**kwargs) - self.code = kwargs['code'] - self.message = kwargs['message'] - self.target = kwargs.get('target', None) - self.innererror = kwargs.get('innererror', None) - self.details = kwargs.get('details', None) - - -class TextAnalyticsWarning(msrest.serialization.Model): - """TextAnalyticsWarning. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. Error code. Possible values include: "LongWordsInDocument", - "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.v3_2_preview_1.models.WarningCodeValue - :param message: Required. Warning message. - :type message: str - :param target_ref: A JSON pointer reference indicating the target object. - :type target_ref: str - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target_ref': {'key': 'targetRef', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TextAnalyticsWarning, self).__init__(**kwargs) - self.code = kwargs['code'] - self.message = kwargs['message'] - self.target_ref = kwargs.get('target_ref', None) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/_models_py3.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/_models_py3.py deleted file mode 100644 index c4991dc07db7..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/_models_py3.py +++ /dev/null @@ -1,3496 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -from typing import Dict, List, Optional, Union - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - -from ._text_analytics_client_enums import * - - -class AnalysisInput(msrest.serialization.Model): - """AnalysisInput. - - All required parameters must be populated in order to send to Azure. - - :param analysis_input: Required. Contains a set of input documents to be analyzed by the - service. - :type analysis_input: ~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageBatchInput - """ - - _validation = { - 'analysis_input': {'required': True}, - } - - _attribute_map = { - 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, - } - - def __init__( - self, - *, - analysis_input: "MultiLanguageBatchInput", - **kwargs - ): - super(AnalysisInput, self).__init__(**kwargs) - self.analysis_input = analysis_input - - -class JobManifest(msrest.serialization.Model): - """JobManifest. - - All required parameters must be populated in order to send to Azure. - - :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the - same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_2_preview_1.models.JobManifestTasks - """ - - _validation = { - 'tasks': {'required': True}, - } - - _attribute_map = { - 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, - } - - def __init__( - self, - *, - tasks: "JobManifestTasks", - **kwargs - ): - super(JobManifest, self).__init__(**kwargs) - self.tasks = tasks - - -class JobDescriptor(msrest.serialization.Model): - """JobDescriptor. - - :param display_name: Optional display name for the analysis job. - :type display_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - } - - def __init__( - self, - *, - display_name: Optional[str] = None, - **kwargs - ): - super(JobDescriptor, self).__init__(**kwargs) - self.display_name = display_name - - -class AnalyzeBatchInput(JobDescriptor, AnalysisInput, JobManifest): - """AnalyzeBatchInput. - - All required parameters must be populated in order to send to Azure. - - :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the - same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_2_preview_1.models.JobManifestTasks - :param analysis_input: Required. Contains a set of input documents to be analyzed by the - service. - :type analysis_input: ~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageBatchInput - :param display_name: Optional display name for the analysis job. - :type display_name: str - """ - - _validation = { - 'tasks': {'required': True}, - 'analysis_input': {'required': True}, - } - - _attribute_map = { - 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, - 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - } - - def __init__( - self, - *, - tasks: "JobManifestTasks", - analysis_input: "MultiLanguageBatchInput", - display_name: Optional[str] = None, - **kwargs - ): - super(AnalyzeBatchInput, self).__init__(display_name=display_name, analysis_input=analysis_input, tasks=tasks, **kwargs) - self.tasks = tasks - self.analysis_input = analysis_input - self.tasks = tasks - self.display_name = display_name - self.analysis_input = analysis_input - self.display_name = display_name - - -class AnalyzeJobDisplayName(msrest.serialization.Model): - """AnalyzeJobDisplayName. - - :param display_name: - :type display_name: str - """ - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - } - - def __init__( - self, - *, - display_name: Optional[str] = None, - **kwargs - ): - super(AnalyzeJobDisplayName, self).__init__(**kwargs) - self.display_name = display_name - - -class AnalyzeJobErrorsAndStatistics(msrest.serialization.Model): - """AnalyzeJobErrorsAndStatistics. - - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - """ - - _attribute_map = { - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - } - - def __init__( - self, - *, - errors: Optional[List["TextAnalyticsError"]] = None, - statistics: Optional["RequestStatistics"] = None, - **kwargs - ): - super(AnalyzeJobErrorsAndStatistics, self).__init__(**kwargs) - self.errors = errors - self.statistics = statistics - - -class JobMetadata(msrest.serialization.Model): - """JobMetadata. - - All required parameters must be populated in order to send to Azure. - - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'created_date_time': {'required': True}, - 'job_id': {'required': True}, - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, - 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - created_date_time: datetime.datetime, - job_id: str, - last_update_date_time: datetime.datetime, - status: Union[str, "State"], - expiration_date_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(JobMetadata, self).__init__(**kwargs) - self.created_date_time = created_date_time - self.expiration_date_time = expiration_date_time - self.job_id = job_id - self.last_update_date_time = last_update_date_time - self.status = status - - -class AnalyzeJobMetadata(JobMetadata, AnalyzeJobDisplayName): - """AnalyzeJobMetadata. - - All required parameters must be populated in order to send to Azure. - - :param display_name: - :type display_name: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'created_date_time': {'required': True}, - 'job_id': {'required': True}, - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, - 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - created_date_time: datetime.datetime, - job_id: str, - last_update_date_time: datetime.datetime, - status: Union[str, "State"], - display_name: Optional[str] = None, - expiration_date_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(AnalyzeJobMetadata, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, display_name=display_name, **kwargs) - self.display_name = display_name - self.created_date_time = created_date_time - self.expiration_date_time = expiration_date_time - self.job_id = job_id - self.last_update_date_time = last_update_date_time - self.status = status - - -class Pagination(msrest.serialization.Model): - """Pagination. - - :param next_link: - :type next_link: str - """ - - _attribute_map = { - 'next_link': {'key': '@nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - next_link: Optional[str] = None, - **kwargs - ): - super(Pagination, self).__init__(**kwargs) - self.next_link = next_link - - -class TasksState(msrest.serialization.Model): - """TasksState. - - All required parameters must be populated in order to send to Azure. - - :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasks - """ - - _validation = { - 'tasks': {'required': True}, - } - - _attribute_map = { - 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, - } - - def __init__( - self, - *, - tasks: "TasksStateTasks", - **kwargs - ): - super(TasksState, self).__init__(**kwargs) - self.tasks = tasks - - -class AnalyzeJobState(AnalyzeJobMetadata, TasksState, AnalyzeJobErrorsAndStatistics, Pagination): - """AnalyzeJobState. - - All required parameters must be populated in order to send to Azure. - - :param next_link: - :type next_link: str - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasks - :param display_name: - :type display_name: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'tasks': {'required': True}, - 'created_date_time': {'required': True}, - 'job_id': {'required': True}, - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'next_link': {'key': '@nextLink', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, - 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - tasks: "TasksStateTasks", - created_date_time: datetime.datetime, - job_id: str, - last_update_date_time: datetime.datetime, - status: Union[str, "State"], - next_link: Optional[str] = None, - errors: Optional[List["TextAnalyticsError"]] = None, - statistics: Optional["RequestStatistics"] = None, - display_name: Optional[str] = None, - expiration_date_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(AnalyzeJobState, self).__init__(display_name=display_name, created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, tasks=tasks, errors=errors, statistics=statistics, next_link=next_link, **kwargs) - self.next_link = next_link - self.errors = errors - self.statistics = statistics - self.tasks = tasks - self.next_link = next_link - self.errors = errors - self.statistics = statistics - self.display_name = display_name - self.created_date_time = created_date_time - self.expiration_date_time = expiration_date_time - self.job_id = job_id - self.last_update_date_time = last_update_date_time - self.status = status - self.next_link = next_link - self.tasks = tasks - self.display_name = display_name - self.created_date_time = created_date_time - self.expiration_date_time = expiration_date_time - self.job_id = job_id - self.last_update_date_time = last_update_date_time - self.status = status - self.errors = errors - self.statistics = statistics - self.tasks = tasks - self.display_name = display_name - self.created_date_time = created_date_time - self.expiration_date_time = expiration_date_time - self.job_id = job_id - self.last_update_date_time = last_update_date_time - self.status = status - - -class DetectedLanguage(msrest.serialization.Model): - """DetectedLanguage. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Long name of a detected language (e.g. English, French). - :type name: str - :param iso6391_name: Required. A two letter representation of the detected language according - to the ISO 639-1 standard (e.g. en, fr). - :type iso6391_name: str - :param confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 - indicate 100% certainty that the identified language is true. - :type confidence_score: float - """ - - _validation = { - 'name': {'required': True}, - 'iso6391_name': {'required': True}, - 'confidence_score': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'iso6391_name': {'key': 'iso6391Name', 'type': 'str'}, - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - } - - def __init__( - self, - *, - name: str, - iso6391_name: str, - confidence_score: float, - **kwargs - ): - super(DetectedLanguage, self).__init__(**kwargs) - self.name = name - self.iso6391_name = iso6391_name - self.confidence_score = confidence_score - - -class DocumentEntities(msrest.serialization.Model): - """DocumentEntities. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'entities': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[Entity]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - *, - id: str, - entities: List["Entity"], - warnings: List["TextAnalyticsWarning"], - statistics: Optional["DocumentStatistics"] = None, - **kwargs - ): - super(DocumentEntities, self).__init__(**kwargs) - self.id = id - self.entities = entities - self.warnings = warnings - self.statistics = statistics - - -class DocumentError(msrest.serialization.Model): - """DocumentError. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Document Id. - :type id: str - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError - """ - - _validation = { - 'id': {'required': True}, - 'error': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, - } - - def __init__( - self, - *, - id: str, - error: "TextAnalyticsError", - **kwargs - ): - super(DocumentError, self).__init__(**kwargs) - self.id = id - self.error = error - - -class DocumentHealthcareEntities(msrest.serialization.Model): - """DocumentHealthcareEntities. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Healthcare entities. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntity] - :param relations: Required. Healthcare entity relations. - :type relations: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareRelation] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'entities': {'required': True}, - 'relations': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[HealthcareEntity]'}, - 'relations': {'key': 'relations', 'type': '[HealthcareRelation]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - *, - id: str, - entities: List["HealthcareEntity"], - relations: List["HealthcareRelation"], - warnings: List["TextAnalyticsWarning"], - statistics: Optional["DocumentStatistics"] = None, - **kwargs - ): - super(DocumentHealthcareEntities, self).__init__(**kwargs) - self.id = id - self.entities = entities - self.relations = relations - self.warnings = warnings - self.statistics = statistics - - -class DocumentKeyPhrases(msrest.serialization.Model): - """DocumentKeyPhrases. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param key_phrases: Required. A list of representative words or phrases. The number of key - phrases returned is proportional to the number of words in the input document. - :type key_phrases: list[str] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'key_phrases': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'key_phrases': {'key': 'keyPhrases', 'type': '[str]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - *, - id: str, - key_phrases: List[str], - warnings: List["TextAnalyticsWarning"], - statistics: Optional["DocumentStatistics"] = None, - **kwargs - ): - super(DocumentKeyPhrases, self).__init__(**kwargs) - self.id = id - self.key_phrases = key_phrases - self.warnings = warnings - self.statistics = statistics - - -class DocumentLanguage(msrest.serialization.Model): - """DocumentLanguage. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param detected_language: Required. Detected Language. - :type detected_language: ~azure.ai.textanalytics.v3_2_preview_1.models.DetectedLanguage - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'detected_language': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'detected_language': {'key': 'detectedLanguage', 'type': 'DetectedLanguage'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - *, - id: str, - detected_language: "DetectedLanguage", - warnings: List["TextAnalyticsWarning"], - statistics: Optional["DocumentStatistics"] = None, - **kwargs - ): - super(DocumentLanguage, self).__init__(**kwargs) - self.id = id - self.detected_language = detected_language - self.warnings = warnings - self.statistics = statistics - - -class DocumentLinkedEntities(msrest.serialization.Model): - """DocumentLinkedEntities. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param entities: Required. Recognized well known entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.LinkedEntity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'entities': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[LinkedEntity]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - *, - id: str, - entities: List["LinkedEntity"], - warnings: List["TextAnalyticsWarning"], - statistics: Optional["DocumentStatistics"] = None, - **kwargs - ): - super(DocumentLinkedEntities, self).__init__(**kwargs) - self.id = id - self.entities = entities - self.warnings = warnings - self.statistics = statistics - - -class DocumentSentiment(msrest.serialization.Model): - """DocumentSentiment. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or - Mixed). Possible values include: "positive", "neutral", "negative", "mixed". - :type sentiment: str or ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentSentimentValue - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - :param confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 - for each sentiment class. - :type confidence_scores: - ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentConfidenceScorePerLabel - :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.v3_2_preview_1.models.SentenceSentiment] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - """ - - _validation = { - 'id': {'required': True}, - 'sentiment': {'required': True}, - 'confidence_scores': {'required': True}, - 'sentences': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'sentiment': {'key': 'sentiment', 'type': 'str'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, - 'sentences': {'key': 'sentences', 'type': '[SentenceSentiment]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - } - - def __init__( - self, - *, - id: str, - sentiment: Union[str, "DocumentSentimentValue"], - confidence_scores: "SentimentConfidenceScorePerLabel", - sentences: List["SentenceSentiment"], - warnings: List["TextAnalyticsWarning"], - statistics: Optional["DocumentStatistics"] = None, - **kwargs - ): - super(DocumentSentiment, self).__init__(**kwargs) - self.id = id - self.sentiment = sentiment - self.statistics = statistics - self.confidence_scores = confidence_scores - self.sentences = sentences - self.warnings = warnings - - -class DocumentStatistics(msrest.serialization.Model): - """if showStats=true was specified in the request this field will contain information about the document payload. - - All required parameters must be populated in order to send to Azure. - - :param characters_count: Required. Number of text elements recognized in the document. - :type characters_count: int - :param transactions_count: Required. Number of transactions for the document. - :type transactions_count: int - """ - - _validation = { - 'characters_count': {'required': True}, - 'transactions_count': {'required': True}, - } - - _attribute_map = { - 'characters_count': {'key': 'charactersCount', 'type': 'int'}, - 'transactions_count': {'key': 'transactionsCount', 'type': 'int'}, - } - - def __init__( - self, - *, - characters_count: int, - transactions_count: int, - **kwargs - ): - super(DocumentStatistics, self).__init__(**kwargs) - self.characters_count = characters_count - self.transactions_count = transactions_count - - -class EntitiesResult(msrest.serialization.Model): - """EntitiesResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentEntities]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - *, - documents: List["DocumentEntities"], - errors: List["DocumentError"], - model_version: str, - statistics: Optional["RequestStatistics"] = None, - **kwargs - ): - super(EntitiesResult, self).__init__(**kwargs) - self.documents = documents - self.errors = errors - self.statistics = statistics - self.model_version = model_version - - -class EntitiesTask(msrest.serialization.Model): - """EntitiesTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'EntitiesTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - *, - parameters: Optional["EntitiesTaskParameters"] = None, - task_name: Optional[str] = None, - **kwargs - ): - super(EntitiesTask, self).__init__(**kwargs) - self.parameters = parameters - self.task_name = task_name - - -class EntitiesTaskParameters(msrest.serialization.Model): - """EntitiesTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - } - - def __init__( - self, - *, - model_version: Optional[str] = "latest", - logging_opt_out: Optional[bool] = False, - string_index_type: Optional[Union[str, "StringIndexType"]] = None, - **kwargs - ): - super(EntitiesTaskParameters, self).__init__(**kwargs) - self.model_version = model_version - self.logging_opt_out = logging_opt_out - self.string_index_type = string_index_type - - -class EntitiesTaskResult(msrest.serialization.Model): - """EntitiesTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntitiesResult'}, - } - - def __init__( - self, - *, - results: Optional["EntitiesResult"] = None, - **kwargs - ): - super(EntitiesTaskResult, self).__init__(**kwargs) - self.results = results - - -class Entity(msrest.serialization.Model): - """Entity. - - All required parameters must be populated in order to send to Azure. - - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Entity type. - :type category: str - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' - values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values - can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float - """ - - _validation = { - 'text': {'required': True}, - 'category': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'confidence_score': {'required': True}, - } - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'subcategory': {'key': 'subcategory', 'type': 'str'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - } - - def __init__( - self, - *, - text: str, - category: str, - offset: int, - length: int, - confidence_score: float, - subcategory: Optional[str] = None, - **kwargs - ): - super(Entity, self).__init__(**kwargs) - self.text = text - self.category = category - self.subcategory = subcategory - self.offset = offset - self.length = length - self.confidence_score = confidence_score - - -class EntityLinkingResult(msrest.serialization.Model): - """EntityLinkingResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentLinkedEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentLinkedEntities]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - *, - documents: List["DocumentLinkedEntities"], - errors: List["DocumentError"], - model_version: str, - statistics: Optional["RequestStatistics"] = None, - **kwargs - ): - super(EntityLinkingResult, self).__init__(**kwargs) - self.documents = documents - self.errors = errors - self.statistics = statistics - self.model_version = model_version - - -class EntityLinkingTask(msrest.serialization.Model): - """EntityLinkingTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'EntityLinkingTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - *, - parameters: Optional["EntityLinkingTaskParameters"] = None, - task_name: Optional[str] = None, - **kwargs - ): - super(EntityLinkingTask, self).__init__(**kwargs) - self.parameters = parameters - self.task_name = task_name - - -class EntityLinkingTaskParameters(msrest.serialization.Model): - """EntityLinkingTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - } - - def __init__( - self, - *, - model_version: Optional[str] = "latest", - logging_opt_out: Optional[bool] = False, - string_index_type: Optional[Union[str, "StringIndexType"]] = None, - **kwargs - ): - super(EntityLinkingTaskParameters, self).__init__(**kwargs) - self.model_version = model_version - self.logging_opt_out = logging_opt_out - self.string_index_type = string_index_type - - -class EntityLinkingTaskResult(msrest.serialization.Model): - """EntityLinkingTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, - } - - def __init__( - self, - *, - results: Optional["EntityLinkingResult"] = None, - **kwargs - ): - super(EntityLinkingTaskResult, self).__init__(**kwargs) - self.results = results - - -class ErrorResponse(msrest.serialization.Model): - """ErrorResponse. - - All required parameters must be populated in order to send to Azure. - - :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError - """ - - _validation = { - 'error': {'required': True}, - } - - _attribute_map = { - 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, - } - - def __init__( - self, - *, - error: "TextAnalyticsError", - **kwargs - ): - super(ErrorResponse, self).__init__(**kwargs) - self.error = error - - -class ExtractedDocumentSummary(msrest.serialization.Model): - """ExtractedDocumentSummary. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param sentences: Required. A ranked list of sentences representing the extracted summary. - :type sentences: list[~azure.ai.textanalytics.v3_2_preview_1.models.ExtractedSummarySentence] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'sentences': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'sentences': {'key': 'sentences', 'type': '[ExtractedSummarySentence]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - *, - id: str, - sentences: List["ExtractedSummarySentence"], - warnings: List["TextAnalyticsWarning"], - statistics: Optional["DocumentStatistics"] = None, - **kwargs - ): - super(ExtractedDocumentSummary, self).__init__(**kwargs) - self.id = id - self.sentences = sentences - self.warnings = warnings - self.statistics = statistics - - -class ExtractedSummarySentence(msrest.serialization.Model): - """ExtractedSummarySentence. - - All required parameters must be populated in order to send to Azure. - - :param text: Required. The extracted sentence text. - :type text: str - :param rank_score: Required. A double value representing the relevance of the sentence within - the summary. Higher values indicate higher importance. - :type rank_score: float - :param offset: Required. The sentence offset from the start of the document, based on the value - of the parameter StringIndexType. - :type offset: int - :param length: Required. The length of the sentence. - :type length: int - """ - - _validation = { - 'text': {'required': True}, - 'rank_score': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - } - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'rank_score': {'key': 'rankScore', 'type': 'float'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - } - - def __init__( - self, - *, - text: str, - rank_score: float, - offset: int, - length: int, - **kwargs - ): - super(ExtractedSummarySentence, self).__init__(**kwargs) - self.text = text - self.rank_score = rank_score - self.offset = offset - self.length = length - - -class ExtractiveSummarizationResult(msrest.serialization.Model): - """ExtractiveSummarizationResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.ExtractedDocumentSummary] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[ExtractedDocumentSummary]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - *, - documents: List["ExtractedDocumentSummary"], - errors: List["DocumentError"], - model_version: str, - statistics: Optional["RequestStatistics"] = None, - **kwargs - ): - super(ExtractiveSummarizationResult, self).__init__(**kwargs) - self.documents = documents - self.errors = errors - self.statistics = statistics - self.model_version = model_version - - -class ExtractiveSummarizationTask(msrest.serialization.Model): - """ExtractiveSummarizationTask. - - :param parameters: - :type parameters: - ~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'ExtractiveSummarizationTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - *, - parameters: Optional["ExtractiveSummarizationTaskParameters"] = None, - task_name: Optional[str] = None, - **kwargs - ): - super(ExtractiveSummarizationTask, self).__init__(**kwargs) - self.parameters = parameters - self.task_name = task_name - - -class ExtractiveSummarizationTaskParameters(msrest.serialization.Model): - """ExtractiveSummarizationTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - :param sentence_count: - :type sentence_count: int - :param sort_by: Possible values include: "Offset", "Rank". Default value: "Offset". - :type sort_by: str or - ~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationTaskParametersSortBy - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - 'sentence_count': {'key': 'sentenceCount', 'type': 'int'}, - 'sort_by': {'key': 'sortBy', 'type': 'str'}, - } - - def __init__( - self, - *, - model_version: Optional[str] = "latest", - logging_opt_out: Optional[bool] = False, - string_index_type: Optional[Union[str, "StringIndexType"]] = None, - sentence_count: Optional[int] = 3, - sort_by: Optional[Union[str, "ExtractiveSummarizationTaskParametersSortBy"]] = "Offset", - **kwargs - ): - super(ExtractiveSummarizationTaskParameters, self).__init__(**kwargs) - self.model_version = model_version - self.logging_opt_out = logging_opt_out - self.string_index_type = string_index_type - self.sentence_count = sentence_count - self.sort_by = sort_by - - -class ExtractiveSummarizationTaskResult(msrest.serialization.Model): - """ExtractiveSummarizationTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'ExtractiveSummarizationResult'}, - } - - def __init__( - self, - *, - results: Optional["ExtractiveSummarizationResult"] = None, - **kwargs - ): - super(ExtractiveSummarizationTaskResult, self).__init__(**kwargs) - self.results = results - - -class HealthcareAssertion(msrest.serialization.Model): - """HealthcareAssertion. - - :param conditionality: Describes any conditionality on the entity. Possible values include: - "hypothetical", "conditional". - :type conditionality: str or ~azure.ai.textanalytics.v3_2_preview_1.models.Conditionality - :param certainty: Describes the entities certainty and polarity. Possible values include: - "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". - :type certainty: str or ~azure.ai.textanalytics.v3_2_preview_1.models.Certainty - :param association: Describes if the entity is the subject of the text or if it describes - someone else. Possible values include: "subject", "other". - :type association: str or ~azure.ai.textanalytics.v3_2_preview_1.models.Association - """ - - _attribute_map = { - 'conditionality': {'key': 'conditionality', 'type': 'str'}, - 'certainty': {'key': 'certainty', 'type': 'str'}, - 'association': {'key': 'association', 'type': 'str'}, - } - - def __init__( - self, - *, - conditionality: Optional[Union[str, "Conditionality"]] = None, - certainty: Optional[Union[str, "Certainty"]] = None, - association: Optional[Union[str, "Association"]] = None, - **kwargs - ): - super(HealthcareAssertion, self).__init__(**kwargs) - self.conditionality = conditionality - self.certainty = certainty - self.association = association - - -class HealthcareLinkingProperties(msrest.serialization.Model): - """HealthcareLinkingProperties. - - :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareAssertion - :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of - 'histologic'. - :type name: str - :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntityLink] - """ - - _attribute_map = { - 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, - 'name': {'key': 'name', 'type': 'str'}, - 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, - } - - def __init__( - self, - *, - assertion: Optional["HealthcareAssertion"] = None, - name: Optional[str] = None, - links: Optional[List["HealthcareEntityLink"]] = None, - **kwargs - ): - super(HealthcareLinkingProperties, self).__init__(**kwargs) - self.assertion = assertion - self.name = name - self.links = links - - -class HealthcareEntityProperties(msrest.serialization.Model): - """HealthcareEntityProperties. - - All required parameters must be populated in order to send to Azure. - - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Healthcare Entity Category. Possible values include: - "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", - "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", - "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", - "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", - "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". - :type category: str or ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntityCategory - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' - values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values - can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float - """ - - _validation = { - 'text': {'required': True}, - 'category': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'confidence_score': {'required': True}, - } - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'subcategory': {'key': 'subcategory', 'type': 'str'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - } - - def __init__( - self, - *, - text: str, - category: Union[str, "HealthcareEntityCategory"], - offset: int, - length: int, - confidence_score: float, - subcategory: Optional[str] = None, - **kwargs - ): - super(HealthcareEntityProperties, self).__init__(**kwargs) - self.text = text - self.category = category - self.subcategory = subcategory - self.offset = offset - self.length = length - self.confidence_score = confidence_score - - -class HealthcareEntity(HealthcareEntityProperties, HealthcareLinkingProperties): - """HealthcareEntity. - - All required parameters must be populated in order to send to Azure. - - :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareAssertion - :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of - 'histologic'. - :type name: str - :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntityLink] - :param text: Required. Entity text as appears in the request. - :type text: str - :param category: Required. Healthcare Entity Category. Possible values include: - "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", - "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", - "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", - "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", - "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". - :type category: str or ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareEntityCategory - :param subcategory: (Optional) Entity sub type. - :type subcategory: str - :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' - values can affect the offset returned. - :type offset: int - :param length: Required. Length for the entity text. Use of different 'stringIndexType' values - can affect the length returned. - :type length: int - :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. - :type confidence_score: float - """ - - _validation = { - 'text': {'required': True}, - 'category': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'confidence_score': {'required': True}, - } - - _attribute_map = { - 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, - 'name': {'key': 'name', 'type': 'str'}, - 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, - 'text': {'key': 'text', 'type': 'str'}, - 'category': {'key': 'category', 'type': 'str'}, - 'subcategory': {'key': 'subcategory', 'type': 'str'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - } - - def __init__( - self, - *, - text: str, - category: Union[str, "HealthcareEntityCategory"], - offset: int, - length: int, - confidence_score: float, - assertion: Optional["HealthcareAssertion"] = None, - name: Optional[str] = None, - links: Optional[List["HealthcareEntityLink"]] = None, - subcategory: Optional[str] = None, - **kwargs - ): - super(HealthcareEntity, self).__init__(text=text, category=category, subcategory=subcategory, offset=offset, length=length, confidence_score=confidence_score, assertion=assertion, name=name, links=links, **kwargs) - self.assertion = assertion - self.name = name - self.links = links - self.text = text - self.category = category - self.subcategory = subcategory - self.offset = offset - self.length = length - self.confidence_score = confidence_score - - -class HealthcareEntityLink(msrest.serialization.Model): - """HealthcareEntityLink. - - All required parameters must be populated in order to send to Azure. - - :param data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. - :type data_source: str - :param id: Required. Entity id in the given source catalog. - :type id: str - """ - - _validation = { - 'data_source': {'required': True}, - 'id': {'required': True}, - } - - _attribute_map = { - 'data_source': {'key': 'dataSource', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__( - self, - *, - data_source: str, - id: str, - **kwargs - ): - super(HealthcareEntityLink, self).__init__(**kwargs) - self.data_source = data_source - self.id = id - - -class HealthcareTaskResult(msrest.serialization.Model): - """HealthcareTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'HealthcareResult'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - } - - def __init__( - self, - *, - results: Optional["HealthcareResult"] = None, - errors: Optional[List["TextAnalyticsError"]] = None, - **kwargs - ): - super(HealthcareTaskResult, self).__init__(**kwargs) - self.results = results - self.errors = errors - - -class HealthcareJobState(JobMetadata, Pagination, HealthcareTaskResult): - """HealthcareJobState. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - :param next_link: - :type next_link: str - :param created_date_time: Required. - :type created_date_time: ~datetime.datetime - :param expiration_date_time: - :type expiration_date_time: ~datetime.datetime - :param job_id: Required. - :type job_id: str - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'created_date_time': {'required': True}, - 'job_id': {'required': True}, - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'HealthcareResult'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - 'next_link': {'key': '@nextLink', 'type': 'str'}, - 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, - 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - created_date_time: datetime.datetime, - job_id: str, - last_update_date_time: datetime.datetime, - status: Union[str, "State"], - results: Optional["HealthcareResult"] = None, - errors: Optional[List["TextAnalyticsError"]] = None, - next_link: Optional[str] = None, - expiration_date_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(HealthcareJobState, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, next_link=next_link, results=results, errors=errors, **kwargs) - self.results = results - self.errors = errors - self.next_link = next_link - self.results = results - self.errors = errors - self.created_date_time = created_date_time - self.expiration_date_time = expiration_date_time - self.job_id = job_id - self.last_update_date_time = last_update_date_time - self.status = status - self.next_link = next_link - self.created_date_time = created_date_time - self.expiration_date_time = expiration_date_time - self.job_id = job_id - self.last_update_date_time = last_update_date_time - self.status = status - - -class HealthcareRelation(msrest.serialization.Model): - """Every relation is an entity graph of a certain relationType, where all entities are connected and have specific roles within the relation context. - - All required parameters must be populated in order to send to Azure. - - :param relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or - 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", - "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", - "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", - "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", - "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", - "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". - :type relation_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.RelationType - :param entities: Required. The entities in the relation. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareRelationEntity] - """ - - _validation = { - 'relation_type': {'required': True}, - 'entities': {'required': True}, - } - - _attribute_map = { - 'relation_type': {'key': 'relationType', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[HealthcareRelationEntity]'}, - } - - def __init__( - self, - *, - relation_type: Union[str, "RelationType"], - entities: List["HealthcareRelationEntity"], - **kwargs - ): - super(HealthcareRelation, self).__init__(**kwargs) - self.relation_type = relation_type - self.entities = entities - - -class HealthcareRelationEntity(msrest.serialization.Model): - """HealthcareRelationEntity. - - All required parameters must be populated in order to send to Azure. - - :param ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment - Identifier Representation), pointing to the entity . - :type ref: str - :param role: Required. Role of entity in the relationship. For example: 'CD20-positive diffuse - large B-cell lymphoma' has the following entities with their roles in parenthesis: CD20 - (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). - :type role: str - """ - - _validation = { - 'ref': {'required': True}, - 'role': {'required': True}, - } - - _attribute_map = { - 'ref': {'key': 'ref', 'type': 'str'}, - 'role': {'key': 'role', 'type': 'str'}, - } - - def __init__( - self, - *, - ref: str, - role: str, - **kwargs - ): - super(HealthcareRelationEntity, self).__init__(**kwargs) - self.ref = ref - self.role = role - - -class HealthcareResult(msrest.serialization.Model): - """HealthcareResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentHealthcareEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentHealthcareEntities]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - *, - documents: List["DocumentHealthcareEntities"], - errors: List["DocumentError"], - model_version: str, - statistics: Optional["RequestStatistics"] = None, - **kwargs - ): - super(HealthcareResult, self).__init__(**kwargs) - self.documents = documents - self.errors = errors - self.statistics = statistics - self.model_version = model_version - - -class InnerError(msrest.serialization.Model): - """InnerError. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. Error code. Possible values include: "InvalidParameterValue", - "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", - "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", - "InvalidCountryHint". - :type code: str or ~azure.ai.textanalytics.v3_2_preview_1.models.InnerErrorCodeValue - :param message: Required. Error message. - :type message: str - :param details: Error details. - :type details: dict[str, str] - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_2_preview_1.models.InnerError - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '{str}'}, - 'target': {'key': 'target', 'type': 'str'}, - 'innererror': {'key': 'innererror', 'type': 'InnerError'}, - } - - def __init__( - self, - *, - code: Union[str, "InnerErrorCodeValue"], - message: str, - details: Optional[Dict[str, str]] = None, - target: Optional[str] = None, - innererror: Optional["InnerError"] = None, - **kwargs - ): - super(InnerError, self).__init__(**kwargs) - self.code = code - self.message = message - self.details = details - self.target = target - self.innererror = innererror - - -class JobManifestTasks(msrest.serialization.Model): - """The set of tasks to execute on the input documents. Cannot specify the same task more than once. - - :param entity_recognition_tasks: - :type entity_recognition_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesTask] - :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_2_preview_1.models.PiiTask] - :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhrasesTask] - :param entity_linking_tasks: - :type entity_linking_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingTask] - :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.SentimentAnalysisTask] - :param extractive_summarization_tasks: - :type extractive_summarization_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationTask] - """ - - _attribute_map = { - 'entity_recognition_tasks': {'key': 'entityRecognitionTasks', 'type': '[EntitiesTask]'}, - 'entity_recognition_pii_tasks': {'key': 'entityRecognitionPiiTasks', 'type': '[PiiTask]'}, - 'key_phrase_extraction_tasks': {'key': 'keyPhraseExtractionTasks', 'type': '[KeyPhrasesTask]'}, - 'entity_linking_tasks': {'key': 'entityLinkingTasks', 'type': '[EntityLinkingTask]'}, - 'sentiment_analysis_tasks': {'key': 'sentimentAnalysisTasks', 'type': '[SentimentAnalysisTask]'}, - 'extractive_summarization_tasks': {'key': 'extractiveSummarizationTasks', 'type': '[ExtractiveSummarizationTask]'}, - } - - def __init__( - self, - *, - entity_recognition_tasks: Optional[List["EntitiesTask"]] = None, - entity_recognition_pii_tasks: Optional[List["PiiTask"]] = None, - key_phrase_extraction_tasks: Optional[List["KeyPhrasesTask"]] = None, - entity_linking_tasks: Optional[List["EntityLinkingTask"]] = None, - sentiment_analysis_tasks: Optional[List["SentimentAnalysisTask"]] = None, - extractive_summarization_tasks: Optional[List["ExtractiveSummarizationTask"]] = None, - **kwargs - ): - super(JobManifestTasks, self).__init__(**kwargs) - self.entity_recognition_tasks = entity_recognition_tasks - self.entity_recognition_pii_tasks = entity_recognition_pii_tasks - self.key_phrase_extraction_tasks = key_phrase_extraction_tasks - self.entity_linking_tasks = entity_linking_tasks - self.sentiment_analysis_tasks = sentiment_analysis_tasks - self.extractive_summarization_tasks = extractive_summarization_tasks - - -class KeyPhraseResult(msrest.serialization.Model): - """KeyPhraseResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentKeyPhrases] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentKeyPhrases]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - *, - documents: List["DocumentKeyPhrases"], - errors: List["DocumentError"], - model_version: str, - statistics: Optional["RequestStatistics"] = None, - **kwargs - ): - super(KeyPhraseResult, self).__init__(**kwargs) - self.documents = documents - self.errors = errors - self.statistics = statistics - self.model_version = model_version - - -class KeyPhrasesTask(msrest.serialization.Model): - """KeyPhrasesTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhrasesTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'KeyPhrasesTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - *, - parameters: Optional["KeyPhrasesTaskParameters"] = None, - task_name: Optional[str] = None, - **kwargs - ): - super(KeyPhrasesTask, self).__init__(**kwargs) - self.parameters = parameters - self.task_name = task_name - - -class KeyPhrasesTaskParameters(msrest.serialization.Model): - """KeyPhrasesTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - } - - def __init__( - self, - *, - model_version: Optional[str] = "latest", - logging_opt_out: Optional[bool] = False, - **kwargs - ): - super(KeyPhrasesTaskParameters, self).__init__(**kwargs) - self.model_version = model_version - self.logging_opt_out = logging_opt_out - - -class KeyPhraseTaskResult(msrest.serialization.Model): - """KeyPhraseTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhraseResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, - } - - def __init__( - self, - *, - results: Optional["KeyPhraseResult"] = None, - **kwargs - ): - super(KeyPhraseTaskResult, self).__init__(**kwargs) - self.results = results - - -class LanguageBatchInput(msrest.serialization.Model): - """LanguageBatchInput. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.LanguageInput] - """ - - _validation = { - 'documents': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[LanguageInput]'}, - } - - def __init__( - self, - *, - documents: List["LanguageInput"], - **kwargs - ): - super(LanguageBatchInput, self).__init__(**kwargs) - self.documents = documents - - -class LanguageInput(msrest.serialization.Model): - """LanguageInput. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param text: Required. - :type text: str - :param country_hint: - :type country_hint: str - """ - - _validation = { - 'id': {'required': True}, - 'text': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'}, - 'country_hint': {'key': 'countryHint', 'type': 'str'}, - } - - def __init__( - self, - *, - id: str, - text: str, - country_hint: Optional[str] = None, - **kwargs - ): - super(LanguageInput, self).__init__(**kwargs) - self.id = id - self.text = text - self.country_hint = country_hint - - -class LanguageResult(msrest.serialization.Model): - """LanguageResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentLanguage] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentLanguage]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - *, - documents: List["DocumentLanguage"], - errors: List["DocumentError"], - model_version: str, - statistics: Optional["RequestStatistics"] = None, - **kwargs - ): - super(LanguageResult, self).__init__(**kwargs) - self.documents = documents - self.errors = errors - self.statistics = statistics - self.model_version = model_version - - -class LinkedEntity(msrest.serialization.Model): - """LinkedEntity. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Entity Linking formal name. - :type name: str - :param matches: Required. List of instances this entity appears in the text. - :type matches: list[~azure.ai.textanalytics.v3_2_preview_1.models.Match] - :param language: Required. Language used in the data source. - :type language: str - :param id: Unique identifier of the recognized entity from the data source. - :type id: str - :param url: Required. URL for the entity's page from the data source. - :type url: str - :param data_source: Required. Data source used to extract entity linking, such as Wiki/Bing - etc. - :type data_source: str - :param bing_id: Bing Entity Search API unique identifier of the recognized entity. - :type bing_id: str - """ - - _validation = { - 'name': {'required': True}, - 'matches': {'required': True}, - 'language': {'required': True}, - 'url': {'required': True}, - 'data_source': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'matches': {'key': 'matches', 'type': '[Match]'}, - 'language': {'key': 'language', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'data_source': {'key': 'dataSource', 'type': 'str'}, - 'bing_id': {'key': 'bingId', 'type': 'str'}, - } - - def __init__( - self, - *, - name: str, - matches: List["Match"], - language: str, - url: str, - data_source: str, - id: Optional[str] = None, - bing_id: Optional[str] = None, - **kwargs - ): - super(LinkedEntity, self).__init__(**kwargs) - self.name = name - self.matches = matches - self.language = language - self.id = id - self.url = url - self.data_source = data_source - self.bing_id = bing_id - - -class Match(msrest.serialization.Model): - """Match. - - All required parameters must be populated in order to send to Azure. - - :param confidence_score: Required. If a well known item is recognized, a decimal number - denoting the confidence level between 0 and 1 will be returned. - :type confidence_score: float - :param text: Required. Entity text as appears in the request. - :type text: str - :param offset: Required. Start position for the entity match text. - :type offset: int - :param length: Required. Length for the entity match text. - :type length: int - """ - - _validation = { - 'confidence_score': {'required': True}, - 'text': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - } - - _attribute_map = { - 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, - 'text': {'key': 'text', 'type': 'str'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - } - - def __init__( - self, - *, - confidence_score: float, - text: str, - offset: int, - length: int, - **kwargs - ): - super(Match, self).__init__(**kwargs) - self.confidence_score = confidence_score - self.text = text - self.offset = offset - self.length = length - - -class MultiLanguageBatchInput(msrest.serialization.Model): - """Contains a set of input documents to be analyzed by the service. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] - """ - - _validation = { - 'documents': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[MultiLanguageInput]'}, - } - - def __init__( - self, - *, - documents: List["MultiLanguageInput"], - **kwargs - ): - super(MultiLanguageBatchInput, self).__init__(**kwargs) - self.documents = documents - - -class MultiLanguageInput(msrest.serialization.Model): - """Contains an input document to be analyzed by the service. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. A unique, non-empty document identifier. - :type id: str - :param text: Required. The input text to process. - :type text: str - :param language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For - example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as - default. - :type language: str - """ - - _validation = { - 'id': {'required': True}, - 'text': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'text': {'key': 'text', 'type': 'str'}, - 'language': {'key': 'language', 'type': 'str'}, - } - - def __init__( - self, - *, - id: str, - text: str, - language: Optional[str] = None, - **kwargs - ): - super(MultiLanguageInput, self).__init__(**kwargs) - self.id = id - self.text = text - self.language = language - - -class PiiDocumentEntities(msrest.serialization.Model): - """PiiDocumentEntities. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Unique, non-empty document identifier. - :type id: str - :param redacted_text: Required. Returns redacted text. - :type redacted_text: str - :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_2_preview_1.models.Entity] - :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsWarning] - :param statistics: if showStats=true was specified in the request this field will contain - information about the document payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.DocumentStatistics - """ - - _validation = { - 'id': {'required': True}, - 'redacted_text': {'required': True}, - 'entities': {'required': True}, - 'warnings': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'redacted_text': {'key': 'redactedText', 'type': 'str'}, - 'entities': {'key': 'entities', 'type': '[Entity]'}, - 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, - 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, - } - - def __init__( - self, - *, - id: str, - redacted_text: str, - entities: List["Entity"], - warnings: List["TextAnalyticsWarning"], - statistics: Optional["DocumentStatistics"] = None, - **kwargs - ): - super(PiiDocumentEntities, self).__init__(**kwargs) - self.id = id - self.redacted_text = redacted_text - self.entities = entities - self.warnings = warnings - self.statistics = statistics - - -class PiiResult(msrest.serialization.Model): - """PiiResult. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Response by document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.PiiDocumentEntities] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[PiiDocumentEntities]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - *, - documents: List["PiiDocumentEntities"], - errors: List["DocumentError"], - model_version: str, - statistics: Optional["RequestStatistics"] = None, - **kwargs - ): - super(PiiResult, self).__init__(**kwargs) - self.documents = documents - self.errors = errors - self.statistics = statistics - self.model_version = model_version - - -class PiiTask(msrest.serialization.Model): - """PiiTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'PiiTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - *, - parameters: Optional["PiiTaskParameters"] = None, - task_name: Optional[str] = None, - **kwargs - ): - super(PiiTask, self).__init__(**kwargs) - self.parameters = parameters - self.task_name = task_name - - -class PiiTaskParameters(msrest.serialization.Model): - """PiiTaskParameters. - - :param domain: Possible values include: "phi", "none". Default value: "none". - :type domain: str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiTaskParametersDomain - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiCategory] - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - """ - - _validation = { - 'pii_categories': {'unique': True}, - } - - _attribute_map = { - 'domain': {'key': 'domain', 'type': 'str'}, - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'pii_categories': {'key': 'piiCategories', 'type': '[str]'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - } - - def __init__( - self, - *, - domain: Optional[Union[str, "PiiTaskParametersDomain"]] = "none", - model_version: Optional[str] = "latest", - logging_opt_out: Optional[bool] = True, - pii_categories: Optional[List[Union[str, "PiiCategory"]]] = None, - string_index_type: Optional[Union[str, "StringIndexType"]] = None, - **kwargs - ): - super(PiiTaskParameters, self).__init__(**kwargs) - self.domain = domain - self.model_version = model_version - self.logging_opt_out = logging_opt_out - self.pii_categories = pii_categories - self.string_index_type = string_index_type - - -class PiiTaskResult(msrest.serialization.Model): - """PiiTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'PiiResult'}, - } - - def __init__( - self, - *, - results: Optional["PiiResult"] = None, - **kwargs - ): - super(PiiTaskResult, self).__init__(**kwargs) - self.results = results - - -class RequestStatistics(msrest.serialization.Model): - """if showStats=true was specified in the request this field will contain information about the request payload. - - All required parameters must be populated in order to send to Azure. - - :param documents_count: Required. Number of documents submitted in the request. - :type documents_count: int - :param valid_documents_count: Required. Number of valid documents. This excludes empty, - over-size limit or non-supported languages documents. - :type valid_documents_count: int - :param erroneous_documents_count: Required. Number of invalid documents. This includes empty, - over-size limit or non-supported languages documents. - :type erroneous_documents_count: int - :param transactions_count: Required. Number of transactions for the request. - :type transactions_count: long - """ - - _validation = { - 'documents_count': {'required': True}, - 'valid_documents_count': {'required': True}, - 'erroneous_documents_count': {'required': True}, - 'transactions_count': {'required': True}, - } - - _attribute_map = { - 'documents_count': {'key': 'documentsCount', 'type': 'int'}, - 'valid_documents_count': {'key': 'validDocumentsCount', 'type': 'int'}, - 'erroneous_documents_count': {'key': 'erroneousDocumentsCount', 'type': 'int'}, - 'transactions_count': {'key': 'transactionsCount', 'type': 'long'}, - } - - def __init__( - self, - *, - documents_count: int, - valid_documents_count: int, - erroneous_documents_count: int, - transactions_count: int, - **kwargs - ): - super(RequestStatistics, self).__init__(**kwargs) - self.documents_count = documents_count - self.valid_documents_count = valid_documents_count - self.erroneous_documents_count = erroneous_documents_count - self.transactions_count = transactions_count - - -class SentenceAssessment(msrest.serialization.Model): - """SentenceAssessment. - - All required parameters must be populated in order to send to Azure. - - :param sentiment: Required. Assessment sentiment in the sentence. Possible values include: - "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_2_preview_1.models.TokenSentimentValue - :param confidence_scores: Required. Assessment sentiment confidence scores in the sentence. - :type confidence_scores: - ~azure.ai.textanalytics.v3_2_preview_1.models.TargetConfidenceScoreLabel - :param offset: Required. The assessment offset from the start of the sentence. - :type offset: int - :param length: Required. The length of the assessment. - :type length: int - :param text: Required. The assessment text detected. - :type text: str - :param is_negated: Required. The indicator representing if the assessment is negated. - :type is_negated: bool - """ - - _validation = { - 'sentiment': {'required': True}, - 'confidence_scores': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'text': {'required': True}, - 'is_negated': {'required': True}, - } - - _attribute_map = { - 'sentiment': {'key': 'sentiment', 'type': 'str'}, - 'confidence_scores': {'key': 'confidenceScores', 'type': 'TargetConfidenceScoreLabel'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'text': {'key': 'text', 'type': 'str'}, - 'is_negated': {'key': 'isNegated', 'type': 'bool'}, - } - - def __init__( - self, - *, - sentiment: Union[str, "TokenSentimentValue"], - confidence_scores: "TargetConfidenceScoreLabel", - offset: int, - length: int, - text: str, - is_negated: bool, - **kwargs - ): - super(SentenceAssessment, self).__init__(**kwargs) - self.sentiment = sentiment - self.confidence_scores = confidence_scores - self.offset = offset - self.length = length - self.text = text - self.is_negated = is_negated - - -class SentenceSentiment(msrest.serialization.Model): - """SentenceSentiment. - - All required parameters must be populated in order to send to Azure. - - :param text: Required. The sentence text. - :type text: str - :param sentiment: Required. The predicted Sentiment for the sentence. Possible values include: - "positive", "neutral", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_2_preview_1.models.SentenceSentimentValue - :param confidence_scores: Required. The sentiment confidence score between 0 and 1 for the - sentence for all classes. - :type confidence_scores: - ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentConfidenceScorePerLabel - :param offset: Required. The sentence offset from the start of the document. - :type offset: int - :param length: Required. The length of the sentence. - :type length: int - :param targets: The array of sentence targets for the sentence. - :type targets: list[~azure.ai.textanalytics.v3_2_preview_1.models.SentenceTarget] - :param assessments: The array of assessments for the sentence. - :type assessments: list[~azure.ai.textanalytics.v3_2_preview_1.models.SentenceAssessment] - """ - - _validation = { - 'text': {'required': True}, - 'sentiment': {'required': True}, - 'confidence_scores': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - } - - _attribute_map = { - 'text': {'key': 'text', 'type': 'str'}, - 'sentiment': {'key': 'sentiment', 'type': 'str'}, - 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'targets': {'key': 'targets', 'type': '[SentenceTarget]'}, - 'assessments': {'key': 'assessments', 'type': '[SentenceAssessment]'}, - } - - def __init__( - self, - *, - text: str, - sentiment: Union[str, "SentenceSentimentValue"], - confidence_scores: "SentimentConfidenceScorePerLabel", - offset: int, - length: int, - targets: Optional[List["SentenceTarget"]] = None, - assessments: Optional[List["SentenceAssessment"]] = None, - **kwargs - ): - super(SentenceSentiment, self).__init__(**kwargs) - self.text = text - self.sentiment = sentiment - self.confidence_scores = confidence_scores - self.offset = offset - self.length = length - self.targets = targets - self.assessments = assessments - - -class SentenceTarget(msrest.serialization.Model): - """SentenceTarget. - - All required parameters must be populated in order to send to Azure. - - :param sentiment: Required. Targeted sentiment in the sentence. Possible values include: - "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_2_preview_1.models.TokenSentimentValue - :param confidence_scores: Required. Target sentiment confidence scores for the target in the - sentence. - :type confidence_scores: - ~azure.ai.textanalytics.v3_2_preview_1.models.TargetConfidenceScoreLabel - :param offset: Required. The target offset from the start of the sentence. - :type offset: int - :param length: Required. The length of the target. - :type length: int - :param text: Required. The target text detected. - :type text: str - :param relations: Required. The array of either assessment or target objects which is related - to the target. - :type relations: list[~azure.ai.textanalytics.v3_2_preview_1.models.TargetRelation] - """ - - _validation = { - 'sentiment': {'required': True}, - 'confidence_scores': {'required': True}, - 'offset': {'required': True}, - 'length': {'required': True}, - 'text': {'required': True}, - 'relations': {'required': True}, - } - - _attribute_map = { - 'sentiment': {'key': 'sentiment', 'type': 'str'}, - 'confidence_scores': {'key': 'confidenceScores', 'type': 'TargetConfidenceScoreLabel'}, - 'offset': {'key': 'offset', 'type': 'int'}, - 'length': {'key': 'length', 'type': 'int'}, - 'text': {'key': 'text', 'type': 'str'}, - 'relations': {'key': 'relations', 'type': '[TargetRelation]'}, - } - - def __init__( - self, - *, - sentiment: Union[str, "TokenSentimentValue"], - confidence_scores: "TargetConfidenceScoreLabel", - offset: int, - length: int, - text: str, - relations: List["TargetRelation"], - **kwargs - ): - super(SentenceTarget, self).__init__(**kwargs) - self.sentiment = sentiment - self.confidence_scores = confidence_scores - self.offset = offset - self.length = length - self.text = text - self.relations = relations - - -class SentimentAnalysisTask(msrest.serialization.Model): - """SentimentAnalysisTask. - - :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentAnalysisTaskParameters - :param task_name: - :type task_name: str - """ - - _attribute_map = { - 'parameters': {'key': 'parameters', 'type': 'SentimentAnalysisTaskParameters'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - } - - def __init__( - self, - *, - parameters: Optional["SentimentAnalysisTaskParameters"] = None, - task_name: Optional[str] = None, - **kwargs - ): - super(SentimentAnalysisTask, self).__init__(**kwargs) - self.parameters = parameters - self.task_name = task_name - - -class SentimentAnalysisTaskParameters(msrest.serialization.Model): - """SentimentAnalysisTaskParameters. - - :param model_version: - :type model_version: str - :param logging_opt_out: - :type logging_opt_out: bool - :param opinion_mining: - :type opinion_mining: bool - :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", - "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType - """ - - _attribute_map = { - 'model_version': {'key': 'model-version', 'type': 'str'}, - 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'opinion_mining': {'key': 'opinionMining', 'type': 'bool'}, - 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, - } - - def __init__( - self, - *, - model_version: Optional[str] = "latest", - logging_opt_out: Optional[bool] = False, - opinion_mining: Optional[bool] = False, - string_index_type: Optional[Union[str, "StringIndexType"]] = None, - **kwargs - ): - super(SentimentAnalysisTaskParameters, self).__init__(**kwargs) - self.model_version = model_version - self.logging_opt_out = logging_opt_out - self.opinion_mining = opinion_mining - self.string_index_type = string_index_type - - -class SentimentConfidenceScorePerLabel(msrest.serialization.Model): - """Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative. - - All required parameters must be populated in order to send to Azure. - - :param positive: Required. - :type positive: float - :param neutral: Required. - :type neutral: float - :param negative: Required. - :type negative: float - """ - - _validation = { - 'positive': {'required': True}, - 'neutral': {'required': True}, - 'negative': {'required': True}, - } - - _attribute_map = { - 'positive': {'key': 'positive', 'type': 'float'}, - 'neutral': {'key': 'neutral', 'type': 'float'}, - 'negative': {'key': 'negative', 'type': 'float'}, - } - - def __init__( - self, - *, - positive: float, - neutral: float, - negative: float, - **kwargs - ): - super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) - self.positive = positive - self.neutral = neutral - self.negative = negative - - -class SentimentResponse(msrest.serialization.Model): - """SentimentResponse. - - All required parameters must be populated in order to send to Azure. - - :param documents: Required. Sentiment analysis per document. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentSentiment] - :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_2_preview_1.models.DocumentError] - :param statistics: if showStats=true was specified in the request this field will contain - information about the request payload. - :type statistics: ~azure.ai.textanalytics.v3_2_preview_1.models.RequestStatistics - :param model_version: Required. This field indicates which model is used for scoring. - :type model_version: str - """ - - _validation = { - 'documents': {'required': True}, - 'errors': {'required': True}, - 'model_version': {'required': True}, - } - - _attribute_map = { - 'documents': {'key': 'documents', 'type': '[DocumentSentiment]'}, - 'errors': {'key': 'errors', 'type': '[DocumentError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, - 'model_version': {'key': 'modelVersion', 'type': 'str'}, - } - - def __init__( - self, - *, - documents: List["DocumentSentiment"], - errors: List["DocumentError"], - model_version: str, - statistics: Optional["RequestStatistics"] = None, - **kwargs - ): - super(SentimentResponse, self).__init__(**kwargs) - self.documents = documents - self.errors = errors - self.statistics = statistics - self.model_version = model_version - - -class SentimentTaskResult(msrest.serialization.Model): - """SentimentTaskResult. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'SentimentResponse'}, - } - - def __init__( - self, - *, - results: Optional["SentimentResponse"] = None, - **kwargs - ): - super(SentimentTaskResult, self).__init__(**kwargs) - self.results = results - - -class TargetConfidenceScoreLabel(msrest.serialization.Model): - """Represents the confidence scores across all sentiment classes: positive, neutral, negative. - - All required parameters must be populated in order to send to Azure. - - :param positive: Required. - :type positive: float - :param negative: Required. - :type negative: float - """ - - _validation = { - 'positive': {'required': True}, - 'negative': {'required': True}, - } - - _attribute_map = { - 'positive': {'key': 'positive', 'type': 'float'}, - 'negative': {'key': 'negative', 'type': 'float'}, - } - - def __init__( - self, - *, - positive: float, - negative: float, - **kwargs - ): - super(TargetConfidenceScoreLabel, self).__init__(**kwargs) - self.positive = positive - self.negative = negative - - -class TargetRelation(msrest.serialization.Model): - """TargetRelation. - - All required parameters must be populated in order to send to Azure. - - :param relation_type: Required. The type related to the target. Possible values include: - "assessment", "target". - :type relation_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.TargetRelationType - :param ref: Required. The JSON pointer indicating the linked object. - :type ref: str - """ - - _validation = { - 'relation_type': {'required': True}, - 'ref': {'required': True}, - } - - _attribute_map = { - 'relation_type': {'key': 'relationType', 'type': 'str'}, - 'ref': {'key': 'ref', 'type': 'str'}, - } - - def __init__( - self, - *, - relation_type: Union[str, "TargetRelationType"], - ref: str, - **kwargs - ): - super(TargetRelation, self).__init__(**kwargs) - self.relation_type = relation_type - self.ref = ref - - -class TasksStateTasks(msrest.serialization.Model): - """TasksStateTasks. - - All required parameters must be populated in order to send to Azure. - - :param completed: Required. - :type completed: int - :param failed: Required. - :type failed: int - :param in_progress: Required. - :type in_progress: int - :param total: Required. - :type total: int - :param entity_recognition_tasks: - :type entity_recognition_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksEntityRecognitionTasksItem] - :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksEntityRecognitionPiiTasksItem] - :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksKeyPhraseExtractionTasksItem] - :param entity_linking_tasks: - :type entity_linking_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksEntityLinkingTasksItem] - :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksSentimentAnalysisTasksItem] - :param extractive_summarization_tasks: - :type extractive_summarization_tasks: - list[~azure.ai.textanalytics.v3_2_preview_1.models.TasksStateTasksExtractiveSummarizationTasksItem] - """ - - _validation = { - 'completed': {'required': True}, - 'failed': {'required': True}, - 'in_progress': {'required': True}, - 'total': {'required': True}, - } - - _attribute_map = { - 'completed': {'key': 'completed', 'type': 'int'}, - 'failed': {'key': 'failed', 'type': 'int'}, - 'in_progress': {'key': 'inProgress', 'type': 'int'}, - 'total': {'key': 'total', 'type': 'int'}, - 'entity_recognition_tasks': {'key': 'entityRecognitionTasks', 'type': '[TasksStateTasksEntityRecognitionTasksItem]'}, - 'entity_recognition_pii_tasks': {'key': 'entityRecognitionPiiTasks', 'type': '[TasksStateTasksEntityRecognitionPiiTasksItem]'}, - 'key_phrase_extraction_tasks': {'key': 'keyPhraseExtractionTasks', 'type': '[TasksStateTasksKeyPhraseExtractionTasksItem]'}, - 'entity_linking_tasks': {'key': 'entityLinkingTasks', 'type': '[TasksStateTasksEntityLinkingTasksItem]'}, - 'sentiment_analysis_tasks': {'key': 'sentimentAnalysisTasks', 'type': '[TasksStateTasksSentimentAnalysisTasksItem]'}, - 'extractive_summarization_tasks': {'key': 'extractiveSummarizationTasks', 'type': '[TasksStateTasksExtractiveSummarizationTasksItem]'}, - } - - def __init__( - self, - *, - completed: int, - failed: int, - in_progress: int, - total: int, - entity_recognition_tasks: Optional[List["TasksStateTasksEntityRecognitionTasksItem"]] = None, - entity_recognition_pii_tasks: Optional[List["TasksStateTasksEntityRecognitionPiiTasksItem"]] = None, - key_phrase_extraction_tasks: Optional[List["TasksStateTasksKeyPhraseExtractionTasksItem"]] = None, - entity_linking_tasks: Optional[List["TasksStateTasksEntityLinkingTasksItem"]] = None, - sentiment_analysis_tasks: Optional[List["TasksStateTasksSentimentAnalysisTasksItem"]] = None, - extractive_summarization_tasks: Optional[List["TasksStateTasksExtractiveSummarizationTasksItem"]] = None, - **kwargs - ): - super(TasksStateTasks, self).__init__(**kwargs) - self.completed = completed - self.failed = failed - self.in_progress = in_progress - self.total = total - self.entity_recognition_tasks = entity_recognition_tasks - self.entity_recognition_pii_tasks = entity_recognition_pii_tasks - self.key_phrase_extraction_tasks = key_phrase_extraction_tasks - self.entity_linking_tasks = entity_linking_tasks - self.sentiment_analysis_tasks = sentiment_analysis_tasks - self.extractive_summarization_tasks = extractive_summarization_tasks - - -class TaskState(msrest.serialization.Model): - """TaskState. - - All required parameters must be populated in order to send to Azure. - - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - last_update_date_time: datetime.datetime, - task_name: str, - status: Union[str, "State"], - **kwargs - ): - super(TaskState, self).__init__(**kwargs) - self.last_update_date_time = last_update_date_time - self.task_name = task_name - self.status = status - - -class TasksStateTasksEntityLinkingTasksItem(TaskState, EntityLinkingTaskResult): - """TasksStateTasksEntityLinkingTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - last_update_date_time: datetime.datetime, - task_name: str, - status: Union[str, "State"], - results: Optional["EntityLinkingResult"] = None, - **kwargs - ): - super(TasksStateTasksEntityLinkingTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) - self.results = results - self.last_update_date_time = last_update_date_time - self.task_name = task_name - self.status = status - - -class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, PiiTaskResult): - """TasksStateTasksEntityRecognitionPiiTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'PiiResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - last_update_date_time: datetime.datetime, - task_name: str, - status: Union[str, "State"], - results: Optional["PiiResult"] = None, - **kwargs - ): - super(TasksStateTasksEntityRecognitionPiiTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) - self.results = results - self.last_update_date_time = last_update_date_time - self.task_name = task_name - self.status = status - - -class TasksStateTasksEntityRecognitionTasksItem(TaskState, EntitiesTaskResult): - """TasksStateTasksEntityRecognitionTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntitiesResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - last_update_date_time: datetime.datetime, - task_name: str, - status: Union[str, "State"], - results: Optional["EntitiesResult"] = None, - **kwargs - ): - super(TasksStateTasksEntityRecognitionTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) - self.results = results - self.last_update_date_time = last_update_date_time - self.task_name = task_name - self.status = status - - -class TasksStateTasksExtractiveSummarizationTasksItem(TaskState, ExtractiveSummarizationTaskResult): - """TasksStateTasksExtractiveSummarizationTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.ExtractiveSummarizationResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'ExtractiveSummarizationResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - last_update_date_time: datetime.datetime, - task_name: str, - status: Union[str, "State"], - results: Optional["ExtractiveSummarizationResult"] = None, - **kwargs - ): - super(TasksStateTasksExtractiveSummarizationTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) - self.results = results - self.last_update_date_time = last_update_date_time - self.task_name = task_name - self.status = status - - -class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, KeyPhraseTaskResult): - """TasksStateTasksKeyPhraseExtractionTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhraseResult - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - last_update_date_time: datetime.datetime, - task_name: str, - status: Union[str, "State"], - results: Optional["KeyPhraseResult"] = None, - **kwargs - ): - super(TasksStateTasksKeyPhraseExtractionTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) - self.results = results - self.last_update_date_time = last_update_date_time - self.task_name = task_name - self.status = status - - -class TasksStateTasksSentimentAnalysisTasksItem(TaskState, SentimentTaskResult): - """TasksStateTasksSentimentAnalysisTasksItem. - - All required parameters must be populated in order to send to Azure. - - :param results: - :type results: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param task_name: Required. - :type task_name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling". - :type status: str or ~azure.ai.textanalytics.v3_2_preview_1.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'task_name': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'results': {'key': 'results', 'type': 'SentimentResponse'}, - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'task_name': {'key': 'taskName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - last_update_date_time: datetime.datetime, - task_name: str, - status: Union[str, "State"], - results: Optional["SentimentResponse"] = None, - **kwargs - ): - super(TasksStateTasksSentimentAnalysisTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) - self.results = results - self.last_update_date_time = last_update_date_time - self.task_name = task_name - self.status = status - - -class TextAnalyticsError(msrest.serialization.Model): - """TextAnalyticsError. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. Error code. Possible values include: "InvalidRequest", - "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". - :type code: str or ~azure.ai.textanalytics.v3_2_preview_1.models.ErrorCodeValue - :param message: Required. Error message. - :type message: str - :param target: Error target. - :type target: str - :param innererror: Inner error contains more specific information. - :type innererror: ~azure.ai.textanalytics.v3_2_preview_1.models.InnerError - :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.v3_2_preview_1.models.TextAnalyticsError] - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'innererror': {'key': 'innererror', 'type': 'InnerError'}, - 'details': {'key': 'details', 'type': '[TextAnalyticsError]'}, - } - - def __init__( - self, - *, - code: Union[str, "ErrorCodeValue"], - message: str, - target: Optional[str] = None, - innererror: Optional["InnerError"] = None, - details: Optional[List["TextAnalyticsError"]] = None, - **kwargs - ): - super(TextAnalyticsError, self).__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.innererror = innererror - self.details = details - - -class TextAnalyticsWarning(msrest.serialization.Model): - """TextAnalyticsWarning. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. Error code. Possible values include: "LongWordsInDocument", - "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.v3_2_preview_1.models.WarningCodeValue - :param message: Required. Warning message. - :type message: str - :param target_ref: A JSON pointer reference indicating the target object. - :type target_ref: str - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target_ref': {'key': 'targetRef', 'type': 'str'}, - } - - def __init__( - self, - *, - code: Union[str, "WarningCodeValue"], - message: str, - target_ref: Optional[str] = None, - **kwargs - ): - super(TextAnalyticsWarning, self).__init__(**kwargs) - self.code = code - self.message = message - self.target_ref = target_ref diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/_configuration.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_configuration.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/_configuration.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_configuration.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/_metadata.json b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_metadata.json similarity index 77% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/_metadata.json rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_metadata.json index 2de55395aa4e..b7d22520fe4b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/_metadata.json +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_metadata.json @@ -1,17 +1,17 @@ { - "chosen_version": "v3.2-preview.1", - "total_api_version_list": ["v3.2-preview.1"], + "chosen_version": "v3.2-preview.2", + "total_api_version_list": ["v3.2-preview.2"], "client": { "name": "TextAnalyticsClient", "filename": "_text_analytics_client", "description": "The Text Analytics API is a suite of natural language processing (NLP) services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`\u003ca href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\"\u003ehttps://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\u003c/a\u003e`.", - "base_url": null, - "custom_base_url": "\u0027{Endpoint}/text/analytics/v3.2-preview.1\u0027", + "host_value": null, + "parameterized_host_template": "\u0027{Endpoint}/text/analytics/v3.2-preview.2\u0027", "azure_arm": false, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"PipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"AsyncPipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"PipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.core\": [\"AsyncPipelineClient\"]}, \"local\": {\"._configuration\": [\"TextAnalyticsClientConfiguration\"], \"._operations_mixin\": [\"TextAnalyticsClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" }, "global_parameters": { "sync": { @@ -79,183 +79,182 @@ "config": { "credential": true, "credential_scopes": ["https://cognitiveservices.azure.com/.default"], - "credential_default_policy_type": "BearerTokenCredentialPolicy", - "credential_default_policy_type_has_async_version": true, - "credential_key_header_name": null, + "credential_call_sync": "policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)", + "credential_call_async": "policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)", "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { }, "operation_mixins": { - "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"...._lro\": [\"AnalyzeActionsLROPoller\", \"AnalyzeActionsLROPollingMethod\", \"AnalyzeHealthcareEntitiesLROPoller\", \"AnalyzeHealthcareEntitiesLROPollingMethod\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.core.polling.base_polling\": [\"LROBasePolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\", \"Union\"]}}}", - "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \".....aio._lro_async\": [\"AsyncAnalyzeActionsLROPoller\", \"AsyncAnalyzeActionsLROPollingMethod\", \"AsyncAnalyzeHealthcareEntitiesLROPoller\", \"AsyncAnalyzeHealthcareEntitiesLROPollingMethod\"], \"azure.core.polling\": [\"AsyncLROPoller\", \"AsyncNoPolling\", \"AsyncPollingMethod\"], \"azure.core.polling.async_base_polling\": [\"AsyncLROBasePolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\", \"Union\"]}}}", + "sync_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"List\", \"Optional\", \"Union\"]}, \"azurecore\": {\"...._lro\": [\"AnalyzeActionsLROPoller\", \"AnalyzeHealthcareEntitiesLROPoller\"], \"azure.core.polling\": [\"LROPoller\"]}}}", + "async_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"List\", \"Optional\", \"Union\"]}, \"azurecore\": {\".....aio._lro_async\": [\"AsyncAnalyzeActionsLROPoller\", \"AsyncAnalyzeHealthcareEntitiesLROPoller\"], \"azure.core.polling\": [\"AsyncLROPoller\"]}}}", "operations": { "_analyze_initial" : { "sync": { - "signature": "def _analyze_initial(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def _analyze_initial(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n # type: (...) -\u003e Optional[\"_models.AnalyzeJobState\"]\n", + "doc": "\"\"\"Submit analysis job.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def _analyze_initial(\n self,\n body: Optional[\"_models.AnalyzeBatchInput\"] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.AnalyzeJobState\"]:\n", - "doc": "\"\"\"\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Submit analysis job.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "body" }, "begin_analyze" : { "sync": { - "signature": "def begin_analyze(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response)\n:rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "signature": "def begin_analyze(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n # type: (...) -\u003e AnalyzeActionsLROPoller[\"_models.AnalyzeJobState\"]\n", + "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. Pass\n in False for this operation to not poll, or pass in your own initialized polling object for a\n personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the\n result of cls(response)\n:rtype:\n ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def begin_analyze(\n self,\n body: Optional[\"_models.AnalyzeBatchInput\"] = None,\n **kwargs: Any\n) -\u003e AsyncAnalyzeActionsLROPoller[\"_models.AnalyzeJobState\"]:\n", - "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response)\n:rtype: ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object\n for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the\n result of cls(response)\n:rtype:\n ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "body" }, "analyze_status" : { "sync": { - "signature": "def analyze_status(\n self,\n job_id, # type: str\n show_stats=None, # type: Optional[bool]\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Get analysis status and results.\n\nGet the status of an analysis job. A job may consist of one or more tasks. Once all tasks are\ncompleted, the job will transition to the completed state and results will be available for\neach task.\n\n:param job_id: Job ID for Analyze.\n:type job_id: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def analyze_status(\n self,\n job_id, # type: str\n show_stats=None, # type: Optional[bool]\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.AnalyzeJobState\"\n", + "doc": "\"\"\"Get analysis status and results.\n\nGet the status of an analysis job. A job may consist of one or more tasks. Once all tasks are\ncompleted, the job will transition to the completed state and results will be available for\neach task.\n\n:param job_id: Job ID for Analyze.\n:type job_id: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def analyze_status(\n self,\n job_id: str,\n show_stats: Optional[bool] = None,\n top: Optional[int] = 20,\n skip: Optional[int] = 0,\n **kwargs: Any\n) -\u003e \"_models.AnalyzeJobState\":\n", - "doc": "\"\"\"Get analysis status and results.\n\nGet the status of an analysis job. A job may consist of one or more tasks. Once all tasks are\ncompleted, the job will transition to the completed state and results will be available for\neach task.\n\n:param job_id: Job ID for Analyze.\n:type job_id: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Get analysis status and results.\n\nGet the status of an analysis job. A job may consist of one or more tasks. Once all tasks are\ncompleted, the job will transition to the completed state and results will be available for\neach task.\n\n:param job_id: Job ID for Analyze.\n:type job_id: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "job_id, show_stats, top, skip" }, "health_status" : { "sync": { - "signature": "def health_status(\n self,\n job_id, # type: str\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Get healthcare analysis job status and results.\n\nGet details of the healthcare prediction job specified by the jobId.\n\n:param job_id: Job ID.\n:type job_id: str\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def health_status(\n self,\n job_id, # type: str\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.HealthcareJobState\"\n", + "doc": "\"\"\"Get healthcare analysis job status and results.\n\nGet details of the healthcare prediction job specified by the jobId.\n\n:param job_id: Job ID.\n:type job_id: str\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def health_status(\n self,\n job_id: str,\n top: Optional[int] = 20,\n skip: Optional[int] = 0,\n show_stats: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.HealthcareJobState\":\n", - "doc": "\"\"\"Get healthcare analysis job status and results.\n\nGet details of the healthcare prediction job specified by the jobId.\n\n:param job_id: Job ID.\n:type job_id: str\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Get healthcare analysis job status and results.\n\nGet details of the healthcare prediction job specified by the jobId.\n\n:param job_id: Job ID.\n:type job_id: str\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "job_id, top, skip, show_stats" }, "_cancel_health_job_initial" : { "sync": { - "signature": "def _cancel_health_job_initial(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def _cancel_health_job_initial(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n # type: (...) -\u003e None\n", + "doc": "\"\"\"Cancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def _cancel_health_job_initial(\n self,\n job_id: str,\n **kwargs: Any\n) -\u003e None:\n", - "doc": "\"\"\"\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Cancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "job_id" }, "begin_cancel_health_job" : { "sync": { - "signature": "def begin_cancel_health_job(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be LROBasePolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "signature": "def begin_cancel_health_job(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n # type: (...) -\u003e LROPoller[None]\n", + "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be LROBasePolling. Pass in False for\n this operation to not poll, or pass in your own initialized polling object for a personal\n polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def begin_cancel_health_job(\n self,\n job_id: str,\n **kwargs: Any\n) -\u003e AsyncLROPoller[None]:\n", - "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncLROBasePolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncLROBasePolling. Pass in False\n for this operation to not poll, or pass in your own initialized polling object for a personal\n polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "job_id" }, "_health_initial" : { "sync": { - "signature": "def _health_initial(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def _health_initial(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e Optional[\"_models.HealthcareJobState\"]\n", + "doc": "\"\"\"Submit healthcare analysis job.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def _health_initial(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.HealthcareJobState\"]:\n", - "doc": "\"\"\"\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Submit healthcare analysis job.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, string_index_type, logging_opt_out" }, "begin_health" : { "sync": { - "signature": "def begin_health(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeHealthcareEntitiesLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response)\n:rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "signature": "def begin_health(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e AnalyzeHealthcareEntitiesLROPoller[\"_models.HealthcareJobState\"]\n", + "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be\n AnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll, or\n pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either\n HealthcareJobState or the result of cls(response)\n:rtype:\n ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def begin_health(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e AsyncAnalyzeHealthcareEntitiesLROPoller[\"_models.HealthcareJobState\"]:\n", - "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeHealthcareEntitiesLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response)\n:rtype: ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be\n AsyncAnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll,\n or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no\n Retry-After header is present.\n:return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either\n HealthcareJobState or the result of cls(response)\n:rtype:\n ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, string_index_type, logging_opt_out" }, "entities_recognition_general" : { "sync": { - "signature": "def entities_recognition_general(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def entities_recognition_general(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.EntitiesResult\"\n", + "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def entities_recognition_general(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n **kwargs: Any\n) -\u003e \"_models.EntitiesResult\":\n", - "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out, string_index_type" }, "entities_recognition_pii" : { "sync": { - "signature": "def entities_recognition_pii(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n domain=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n pii_categories=None, # type: Optional[List[Union[str, \"_models.PiiCategory\"]]]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Entities containing personal information.\n\nThe API returns a list of entities with personal information (\\\"SSN\\\", \\\"Bank Account\\\" etc) in\nthe document. For the list of supported entity types, check :code:`\u003ca\nhref=\"https://aka.ms/tanerpii\"\u003eSupported Entity Types in Text Analytics API\u003c/a\u003e`. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param domain: (Optional) if specified, will set the PII domain to include only a subset of the\n entity categories. Possible values include: \u0027PHI\u0027, \u0027none\u0027.\n:type domain: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:param pii_categories: (Optional) describes the PII categories to return.\n:type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiCategory]\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PiiResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def entities_recognition_pii(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n domain=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n pii_categories=None, # type: Optional[List[Union[str, \"_models.PiiCategory\"]]]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.PiiResult\"\n", + "doc": "\"\"\"Entities containing personal information.\n\nThe API returns a list of entities with personal information (\\\"SSN\\\", \\\"Bank Account\\\" etc) in\nthe document. For the list of supported entity types, check :code:`\u003ca\nhref=\"https://aka.ms/tanerpii\"\u003eSupported Entity Types in Text Analytics API\u003c/a\u003e`. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param domain: (Optional) if specified, will set the PII domain to include only a subset of the\n entity categories. Possible values include: \u0027PHI\u0027, \u0027none\u0027.\n:type domain: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:param pii_categories: (Optional) describes the PII categories to return.\n:type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory]\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PiiResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def entities_recognition_pii(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n domain: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n pii_categories: Optional[List[Union[str, \"_models.PiiCategory\"]]] = None,\n **kwargs: Any\n) -\u003e \"_models.PiiResult\":\n", - "doc": "\"\"\"Entities containing personal information.\n\nThe API returns a list of entities with personal information (\\\"SSN\\\", \\\"Bank Account\\\" etc) in\nthe document. For the list of supported entity types, check :code:`\u003ca\nhref=\"https://aka.ms/tanerpii\"\u003eSupported Entity Types in Text Analytics API\u003c/a\u003e`. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param domain: (Optional) if specified, will set the PII domain to include only a subset of the\n entity categories. Possible values include: \u0027PHI\u0027, \u0027none\u0027.\n:type domain: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:param pii_categories: (Optional) describes the PII categories to return.\n:type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiCategory]\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PiiResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Entities containing personal information.\n\nThe API returns a list of entities with personal information (\\\"SSN\\\", \\\"Bank Account\\\" etc) in\nthe document. For the list of supported entity types, check :code:`\u003ca\nhref=\"https://aka.ms/tanerpii\"\u003eSupported Entity Types in Text Analytics API\u003c/a\u003e`. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param domain: (Optional) if specified, will set the PII domain to include only a subset of the\n entity categories. Possible values include: \u0027PHI\u0027, \u0027none\u0027.\n:type domain: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:param pii_categories: (Optional) describes the PII categories to return.\n:type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory]\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PiiResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out, domain, string_index_type, pii_categories" }, "entities_linking" : { "sync": { - "signature": "def entities_linking(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Linked entities from a well known knowledge base.\n\nThe API returns a list of recognized entities with links to a well known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def entities_linking(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.EntityLinkingResult\"\n", + "doc": "\"\"\"Linked entities from a well known knowledge base.\n\nThe API returns a list of recognized entities with links to a well known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def entities_linking(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n **kwargs: Any\n) -\u003e \"_models.EntityLinkingResult\":\n", - "doc": "\"\"\"Linked entities from a well known knowledge base.\n\nThe API returns a list of recognized entities with links to a well known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Linked entities from a well known knowledge base.\n\nThe API returns a list of recognized entities with links to a well known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out, string_index_type" }, "key_phrases" : { "sync": { - "signature": "def key_phrases(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def key_phrases(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.KeyPhraseResult\"\n", + "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def key_phrases(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.KeyPhraseResult\":\n", - "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out" }, "languages" : { "sync": { - "signature": "def languages(\n self,\n documents, # type: List[\"_models.LanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def languages(\n self,\n documents, # type: List[\"_models.LanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.LanguageResult\"\n", + "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def languages(\n self,\n documents: List[\"_models.LanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.LanguageResult\":\n", - "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out" }, "sentiment" : { "sync": { - "signature": "def sentiment(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n opinion_mining=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Sentiment.\n\nThe API returns a detailed sentiment analysis for the input text. The analysis is done in\nmultiple levels of granularity, start from the a document level, down to sentence and key terms\n(targets and assessments).\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param opinion_mining: (Optional) if set to true, response will contain not only sentiment\n prediction but also opinion mining (aspect-based sentiment analysis) results.\n:type opinion_mining: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "def sentiment(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n opinion_mining=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n # type: (...) -\u003e \"_models.SentimentResponse\"\n", + "doc": "\"\"\"Sentiment.\n\nThe API returns a detailed sentiment analysis for the input text. The analysis is done in\nmultiple levels of granularity, start from the a document level, down to sentence and key terms\n(targets and assessments).\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param opinion_mining: (Optional) if set to true, response will contain not only sentiment\n prediction but also opinion mining (aspect-based sentiment analysis) results.\n:type opinion_mining: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, "signature": "async def sentiment(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n opinion_mining: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n **kwargs: Any\n) -\u003e \"_models.SentimentResponse\":\n", - "doc": "\"\"\"Sentiment.\n\nThe API returns a detailed sentiment analysis for the input text. The analysis is done in\nmultiple levels of granularity, start from the a document level, down to sentence and key terms\n(targets and assessments).\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param opinion_mining: (Optional) if set to true, response will contain not only sentiment\n prediction but also opinion mining (aspect-based sentiment analysis) results.\n:type opinion_mining: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Sentiment.\n\nThe API returns a detailed sentiment analysis for the input text. The analysis is done in\nmultiple levels of granularity, start from the a document level, down to sentence and key terms\n(targets and assessments).\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param opinion_mining: (Optional) if set to true, response will contain not only sentiment\n prediction but also opinion mining (aspect-based sentiment analysis) results.\n:type opinion_mining: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out, opinion_mining, string_index_type" } diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_text_analytics_client.py similarity index 69% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/_text_analytics_client.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_text_analytics_client.py index 508b5421ffa8..3acee814d2ea 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_text_analytics_client.py @@ -6,31 +6,33 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from copy import deepcopy from typing import TYPE_CHECKING from azure.core import PipelineClient from msrest import Deserializer, Serializer +from . import models +from ._configuration import TextAnalyticsClientConfiguration +from .operations import TextAnalyticsClientOperationsMixin + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential - from azure.core.pipeline.transport import HttpRequest, HttpResponse - -from ._configuration import TextAnalyticsClientConfiguration -from .operations import TextAnalyticsClientOperationsMixin -from . import models - + from azure.core.rest import HttpRequest, HttpResponse class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): """The Text Analytics API is a suite of natural language processing (NLP) services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview`. :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: + https://westus.api.cognitive.microsoft.com). :type endpoint: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. """ def __init__( @@ -40,33 +42,46 @@ def __init__( **kwargs # type: Any ): # type: (...) -> None - base_url = '{Endpoint}/text/analytics/v3.2-preview.1' + _base_url = '{Endpoint}/text/analytics/v3.2-preview.2' self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) - self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + self._client = PipelineClient(base_url=_base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False - def _send_request(self, http_request, **kwargs): - # type: (HttpRequest, Any) -> HttpResponse + def _send_request( + self, + request, # type: HttpRequest + **kwargs # type: Any + ): + # type: (...) -> HttpResponse """Runs the network request through the client's chained policies. - :param http_request: The network request you want to make. Required. - :type http_request: ~azure.core.pipeline.transport.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = client._send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.pipeline.transport.HttpResponse + :rtype: ~azure.core.rest.HttpResponse """ + + request_copy = deepcopy(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - http_request.url = self._client.format_url(http_request.url, **path_format_arguments) - stream = kwargs.pop("stream", True) - pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) - return pipeline_response.http_response + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) def close(self): # type: () -> None diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_vendor.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_vendor.py new file mode 100644 index 000000000000..138f663c53a4 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/_vendor.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.core.pipeline.transport import HttpRequest + +def _convert_request(request, files=None): + data = request.content if not files else None + request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) + if files: + request.set_formdata_body(files) + return request + +def _format_url_section(template, **kwargs): + components = template.split("/") + while components: + try: + return template.format(**kwargs) + except KeyError as key: + formatted_components = template.split("/") + components = [ + c for c in formatted_components if "{}".format(key.args[0]) not in c + ] + template = "/".join(components) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/_configuration.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/_configuration.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/_configuration.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/_configuration.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/_text_analytics_client.py similarity index 68% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/_text_analytics_client.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/_text_analytics_client.py index c2363aa1e6a4..31b7cf350a6c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/_text_analytics_client.py @@ -6,29 +6,31 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, TYPE_CHECKING +from copy import deepcopy +from typing import Any, Awaitable, TYPE_CHECKING from azure.core import AsyncPipelineClient -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.rest import AsyncHttpResponse, HttpRequest from msrest import Deserializer, Serializer -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - +from .. import models from ._configuration import TextAnalyticsClientConfiguration from .operations import TextAnalyticsClientOperationsMixin -from .. import models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): """The Text Analytics API is a suite of natural language processing (NLP) services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview`. :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: + https://westus.api.cognitive.microsoft.com). :type endpoint: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. """ def __init__( @@ -37,32 +39,45 @@ def __init__( endpoint: str, **kwargs: Any ) -> None: - base_url = '{Endpoint}/text/analytics/v3.2-preview.1' + _base_url = '{Endpoint}/text/analytics/v3.2-preview.2' self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) - self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) + self._client = AsyncPipelineClient(base_url=_base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False - async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + def _send_request( + self, + request: HttpRequest, + **kwargs: Any + ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. - :param http_request: The network request you want to make. Required. - :type http_request: ~azure.core.pipeline.transport.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = await client._send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + :rtype: ~azure.core.rest.AsyncHttpResponse """ + + request_copy = deepcopy(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - http_request.url = self._client.format_url(http_request.url, **path_format_arguments) - stream = kwargs.pop("stream", True) - pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) - return pipeline_response.http_response + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) async def close(self) -> None: await self._client.close() diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/operations/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/operations/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/operations/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/operations/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/operations/_text_analytics_client_operations.py similarity index 69% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/operations/_text_analytics_client_operations.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/operations/_text_analytics_client_operations.py index ab03931dd124..d497f4f9fe59 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/aio/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/aio/operations/_text_analytics_client_operations.py @@ -5,17 +5,22 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import functools from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union import warnings from .....aio._lro_async import AsyncAnalyzeActionsLROPoller, AsyncAnalyzeActionsLROPollingMethod, AsyncAnalyzeHealthcareEntitiesLROPoller, AsyncAnalyzeHealthcareEntitiesLROPollingMethod from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.core.polling.async_base_polling import AsyncLROBasePolling +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator_async import distributed_trace_async from ... import models as _models +from ..._vendor import _convert_request +from ...operations._text_analytics_client_operations import build_analyze_request_initial, build_analyze_status_request, build_cancel_health_job_request_initial, build_entities_linking_request, build_entities_recognition_general_request, build_entities_recognition_pii_request, build_health_request_initial, build_health_status_request, build_key_phrases_request, build_languages_request, build_sentiment_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -32,53 +37,50 @@ async def _analyze_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" - # Construct URL - url = self._analyze_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] if body is not None: - body_content = self._serialize.body(body, 'AnalyzeBatchInput') + json = self._serialize.body(body, 'AnalyzeBatchInput') else: - body_content = None - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + json = None + + request = build_analyze_request_initial( + content_type=content_type, + json=json, + template_url=self._analyze_initial.metadata['url'], + ) + request = _convert_request(request) + path_format_arguments = { + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) - response_headers = {} deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('AnalyzeJobState', pipeline_response) if response.status_code == 202: response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized + _analyze_initial.metadata = {'url': '/analyze'} # type: ignore + + @distributed_trace_async async def begin_analyze( self, body: Optional["_models.AnalyzeBatchInput"] = None, @@ -90,18 +92,23 @@ async def begin_analyze( executed. :param body: Collection of documents to analyze and tasks to execute. - :type body: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeBatchInput + :type body: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeBatchInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + Pass in False for this operation to not poll, or pass in your own initialized polling object + for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) - :rtype: ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the + result of cls(response) + :rtype: + ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.AnalyzeJobState"] lro_delay = kwargs.pop( 'polling_interval', @@ -111,25 +118,25 @@ async def begin_analyze( if cont_token is None: raw_result = await self._analyze_initial( body=body, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('AnalyzeJobState', pipeline_response) - if cls: return cls(pipeline_response, deserialized, {}) return deserialized + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AsyncAnalyzeActionsLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AsyncAnalyzeActionsLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -141,8 +148,10 @@ def get_long_running_output(pipeline_response): ) else: return AsyncAnalyzeActionsLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze.metadata = {'url': '/analyze'} # type: ignore + @distributed_trace_async async def analyze_status( self, job_id: str, @@ -170,7 +179,7 @@ async def analyze_status( :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: AnalyzeJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.AnalyzeJobState"] @@ -178,36 +187,27 @@ async def analyze_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self.analyze_status.metadata['url'] # type: ignore + + request = build_analyze_status_request( + job_id=job_id, + show_stats=show_stats, + top=top, + skip=skip, + template_url=self.analyze_status.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=50, minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0) - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('AnalyzeJobState', pipeline_response) @@ -216,8 +216,11 @@ async def analyze_status( return cls(pipeline_response, deserialized, {}) return deserialized + analyze_status.metadata = {'url': '/analyze/jobs/{jobId}'} # type: ignore + + @distributed_trace_async async def health_status( self, job_id: str, @@ -243,7 +246,7 @@ async def health_status( :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: HealthcareJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HealthcareJobState"] @@ -251,36 +254,27 @@ async def health_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self.health_status.metadata['url'] # type: ignore + + request = build_health_status_request( + job_id=job_id, + top=top, + skip=skip, + show_stats=show_stats, + template_url=self.health_status.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=50, minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0) - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('HealthcareJobState', pipeline_response) @@ -289,8 +283,10 @@ async def health_status( return cls(pipeline_response, deserialized, {}) return deserialized + health_status.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore + async def _cancel_health_job_initial( self, job_id: str, @@ -301,40 +297,36 @@ async def _cancel_health_job_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self._cancel_health_job_initial.metadata['url'] # type: ignore + + request = build_cancel_health_job_request_initial( + job_id=job_id, + template_url=self._cancel_health_job_initial.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) response_headers = {} response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, None, response_headers) _cancel_health_job_initial.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore + + @distributed_trace_async async def begin_cancel_health_job( self, job_id: str, @@ -348,15 +340,17 @@ async def begin_cancel_health_job( :type job_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncLROBasePolling. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncLROBasePolling. Pass in False + for this operation to not poll, or pass in your own initialized polling object for a personal + polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -369,20 +363,18 @@ async def begin_cancel_health_job( cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AsyncLROBasePolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AsyncLROBasePolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -394,6 +386,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_cancel_health_job.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore async def _health_initial( @@ -410,57 +403,50 @@ async def _health_initial( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self._health_initial.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_health_request_initial( + content_type=content_type, + model_version=model_version, + string_index_type=string_index_type, + logging_opt_out=logging_opt_out, + json=json, + template_url=self._health_initial.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) - response_headers = {} deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('HealthcareJobState', pipeline_response) if response.status_code == 202: response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized + _health_initial.metadata = {'url': '/entities/health/jobs'} # type: ignore + + @distributed_trace_async async def begin_health( self, documents: List["_models.MultiLanguageInput"], @@ -475,14 +461,14 @@ async def begin_health( symptoms, etc) and their relations. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with the Text Analytics natural language @@ -493,15 +479,20 @@ async def begin_health( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncAnalyzeHealthcareEntitiesLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be + AsyncAnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll, + or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either + HealthcareJobState or the result of cls(response) + :rtype: + ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.HealthcareJobState"] lro_delay = kwargs.pop( 'polling_interval', @@ -514,25 +505,25 @@ async def begin_health( model_version=model_version, string_index_type=string_index_type, logging_opt_out=logging_opt_out, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('HealthcareJobState', pipeline_response) - if cls: return cls(pipeline_response, deserialized, {}) return deserialized + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AsyncAnalyzeHealthcareEntitiesLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AsyncAnalyzeHealthcareEntitiesLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -544,8 +535,10 @@ def get_long_running_output(pipeline_response): ) else: return AsyncAnalyzeHealthcareEntitiesLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_health.metadata = {'url': '/entities/health/jobs'} # type: ignore + @distributed_trace_async async def entities_recognition_general( self, documents: List["_models.MultiLanguageInput"], @@ -563,7 +556,7 @@ async def entities_recognition_general( Analytics API` for the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -581,10 +574,10 @@ async def entities_recognition_general( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: EntitiesResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.EntitiesResult"] @@ -593,43 +586,32 @@ async def entities_recognition_general( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_general.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_general_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + string_index_type=string_index_type, + json=json, + template_url=self.entities_recognition_general.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntitiesResult', pipeline_response) @@ -638,8 +620,11 @@ async def entities_recognition_general( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore + + @distributed_trace_async async def entities_recognition_pii( self, documents: List["_models.MultiLanguageInput"], @@ -660,7 +645,7 @@ async def entities_recognition_pii( list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -681,12 +666,12 @@ async def entities_recognition_pii( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory] :keyword callable cls: A custom type or function that will be passed the direct response :return: PiiResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.PiiResult"] @@ -695,47 +680,34 @@ async def entities_recognition_pii( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_pii.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_pii_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + domain=domain, + string_index_type=string_index_type, + pii_categories=pii_categories, + json=json, + template_url=self.entities_recognition_pii.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if domain is not None: - query_parameters['domain'] = self._serialize.query("domain", domain, 'str') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - if pii_categories is not None: - query_parameters['piiCategories'] = self._serialize.query("pii_categories", pii_categories, '[str]', div=',') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('PiiResult', pipeline_response) @@ -744,8 +716,11 @@ async def entities_recognition_pii( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_pii.metadata = {'url': '/entities/recognition/pii'} # type: ignore + + @distributed_trace_async async def entities_linking( self, documents: List["_models.MultiLanguageInput"], @@ -762,7 +737,7 @@ async def entities_linking( the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -780,10 +755,10 @@ async def entities_linking( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: EntityLinkingResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.EntityLinkingResult"] @@ -792,43 +767,32 @@ async def entities_linking( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_linking.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_linking_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + string_index_type=string_index_type, + json=json, + template_url=self.entities_linking.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntityLinkingResult', pipeline_response) @@ -837,8 +801,11 @@ async def entities_linking( return cls(pipeline_response, deserialized, {}) return deserialized + entities_linking.metadata = {'url': '/entities/linking'} # type: ignore + + @distributed_trace_async async def key_phrases( self, documents: List["_models.MultiLanguageInput"], @@ -854,7 +821,7 @@ async def key_phrases( enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -871,7 +838,7 @@ async def key_phrases( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyPhraseResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhraseResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyPhraseResult"] @@ -880,41 +847,31 @@ async def key_phrases( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.key_phrases.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_key_phrases_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + json=json, + template_url=self.key_phrases.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('KeyPhraseResult', pipeline_response) @@ -923,8 +880,11 @@ async def key_phrases( return cls(pipeline_response, deserialized, {}) return deserialized + key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore + + @distributed_trace_async async def languages( self, documents: List["_models.LanguageInput"], @@ -941,7 +901,7 @@ async def languages( enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -958,7 +918,7 @@ async def languages( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: LanguageResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.LanguageResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.LanguageResult"] @@ -967,41 +927,31 @@ async def languages( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.LanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.languages.metadata['url'] # type: ignore + _input = _models.LanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'LanguageBatchInput') + + request = build_languages_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + json=json, + template_url=self.languages.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'LanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('LanguageResult', pipeline_response) @@ -1010,8 +960,11 @@ async def languages( return cls(pipeline_response, deserialized, {}) return deserialized + languages.metadata = {'url': '/languages'} # type: ignore + + @distributed_trace_async async def sentiment( self, documents: List["_models.MultiLanguageInput"], @@ -1029,7 +982,7 @@ async def sentiment( (targets and assessments). :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -1050,10 +1003,10 @@ async def sentiment( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: SentimentResponse, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.SentimentResponse"] @@ -1062,45 +1015,33 @@ async def sentiment( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.sentiment.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_sentiment_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + opinion_mining=opinion_mining, + string_index_type=string_index_type, + json=json, + template_url=self.sentiment.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if opinion_mining is not None: - query_parameters['opinionMining'] = self._serialize.query("opinion_mining", opinion_mining, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SentimentResponse', pipeline_response) @@ -1109,4 +1050,6 @@ async def sentiment( return cls(pipeline_response, deserialized, {}) return deserialized + sentiment.metadata = {'url': '/sentiment'} # type: ignore + diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/__init__.py similarity index 80% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/__init__.py index a947b92f2552..4b2a6064fdfe 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/__init__.py @@ -13,6 +13,19 @@ from ._models_py3 import AnalyzeJobErrorsAndStatistics from ._models_py3 import AnalyzeJobMetadata from ._models_py3 import AnalyzeJobState + from ._models_py3 import ClassificationResult + from ._models_py3 import CustomEntitiesResult + from ._models_py3 import CustomEntitiesTask + from ._models_py3 import CustomEntitiesTaskParameters + from ._models_py3 import CustomEntitiesTaskResult + from ._models_py3 import CustomMultiClassificationResult + from ._models_py3 import CustomMultiClassificationTask + from ._models_py3 import CustomMultiClassificationTaskParameters + from ._models_py3 import CustomMultiClassificationTaskResult + from ._models_py3 import CustomSingleClassificationResult + from ._models_py3 import CustomSingleClassificationTask + from ._models_py3 import CustomSingleClassificationTaskParameters + from ._models_py3 import CustomSingleClassificationTaskResult from ._models_py3 import DetectedLanguage from ._models_py3 import DocumentEntities from ._models_py3 import DocumentError @@ -62,6 +75,7 @@ from ._models_py3 import LanguageResult from ._models_py3 import LinkedEntity from ._models_py3 import Match + from ._models_py3 import MultiClassificationDocument from ._models_py3 import MultiLanguageBatchInput from ._models_py3 import MultiLanguageInput from ._models_py3 import Pagination @@ -79,11 +93,15 @@ from ._models_py3 import SentimentConfidenceScorePerLabel from ._models_py3 import SentimentResponse from ._models_py3 import SentimentTaskResult + from ._models_py3 import SingleClassificationDocument from ._models_py3 import TargetConfidenceScoreLabel from ._models_py3 import TargetRelation from ._models_py3 import TaskState from ._models_py3 import TasksState from ._models_py3 import TasksStateTasks + from ._models_py3 import TasksStateTasksCustomEntityRecognitionTasksItem + from ._models_py3 import TasksStateTasksCustomMultiClassificationTasksItem + from ._models_py3 import TasksStateTasksCustomSingleClassificationTasksItem from ._models_py3 import TasksStateTasksEntityLinkingTasksItem from ._models_py3 import TasksStateTasksEntityRecognitionPiiTasksItem from ._models_py3 import TasksStateTasksEntityRecognitionTasksItem @@ -99,6 +117,19 @@ from ._models import AnalyzeJobErrorsAndStatistics # type: ignore from ._models import AnalyzeJobMetadata # type: ignore from ._models import AnalyzeJobState # type: ignore + from ._models import ClassificationResult # type: ignore + from ._models import CustomEntitiesResult # type: ignore + from ._models import CustomEntitiesTask # type: ignore + from ._models import CustomEntitiesTaskParameters # type: ignore + from ._models import CustomEntitiesTaskResult # type: ignore + from ._models import CustomMultiClassificationResult # type: ignore + from ._models import CustomMultiClassificationTask # type: ignore + from ._models import CustomMultiClassificationTaskParameters # type: ignore + from ._models import CustomMultiClassificationTaskResult # type: ignore + from ._models import CustomSingleClassificationResult # type: ignore + from ._models import CustomSingleClassificationTask # type: ignore + from ._models import CustomSingleClassificationTaskParameters # type: ignore + from ._models import CustomSingleClassificationTaskResult # type: ignore from ._models import DetectedLanguage # type: ignore from ._models import DocumentEntities # type: ignore from ._models import DocumentError # type: ignore @@ -148,6 +179,7 @@ from ._models import LanguageResult # type: ignore from ._models import LinkedEntity # type: ignore from ._models import Match # type: ignore + from ._models import MultiClassificationDocument # type: ignore from ._models import MultiLanguageBatchInput # type: ignore from ._models import MultiLanguageInput # type: ignore from ._models import Pagination # type: ignore @@ -165,11 +197,15 @@ from ._models import SentimentConfidenceScorePerLabel # type: ignore from ._models import SentimentResponse # type: ignore from ._models import SentimentTaskResult # type: ignore + from ._models import SingleClassificationDocument # type: ignore from ._models import TargetConfidenceScoreLabel # type: ignore from ._models import TargetRelation # type: ignore from ._models import TaskState # type: ignore from ._models import TasksState # type: ignore from ._models import TasksStateTasks # type: ignore + from ._models import TasksStateTasksCustomEntityRecognitionTasksItem # type: ignore + from ._models import TasksStateTasksCustomMultiClassificationTasksItem # type: ignore + from ._models import TasksStateTasksCustomSingleClassificationTasksItem # type: ignore from ._models import TasksStateTasksEntityLinkingTasksItem # type: ignore from ._models import TasksStateTasksEntityRecognitionPiiTasksItem # type: ignore from ._models import TasksStateTasksEntityRecognitionTasksItem # type: ignore @@ -206,6 +242,19 @@ 'AnalyzeJobErrorsAndStatistics', 'AnalyzeJobMetadata', 'AnalyzeJobState', + 'ClassificationResult', + 'CustomEntitiesResult', + 'CustomEntitiesTask', + 'CustomEntitiesTaskParameters', + 'CustomEntitiesTaskResult', + 'CustomMultiClassificationResult', + 'CustomMultiClassificationTask', + 'CustomMultiClassificationTaskParameters', + 'CustomMultiClassificationTaskResult', + 'CustomSingleClassificationResult', + 'CustomSingleClassificationTask', + 'CustomSingleClassificationTaskParameters', + 'CustomSingleClassificationTaskResult', 'DetectedLanguage', 'DocumentEntities', 'DocumentError', @@ -255,6 +304,7 @@ 'LanguageResult', 'LinkedEntity', 'Match', + 'MultiClassificationDocument', 'MultiLanguageBatchInput', 'MultiLanguageInput', 'Pagination', @@ -272,11 +322,15 @@ 'SentimentConfidenceScorePerLabel', 'SentimentResponse', 'SentimentTaskResult', + 'SingleClassificationDocument', 'TargetConfidenceScoreLabel', 'TargetRelation', 'TaskState', 'TasksState', 'TasksStateTasks', + 'TasksStateTasksCustomEntityRecognitionTasksItem', + 'TasksStateTasksCustomMultiClassificationTasksItem', + 'TasksStateTasksCustomSingleClassificationTasksItem', 'TasksStateTasksEntityLinkingTasksItem', 'TasksStateTasksEntityRecognitionPiiTasksItem', 'TasksStateTasksEntityRecognitionTasksItem', diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/_models.py new file mode 100644 index 000000000000..92e61a935ee7 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/_models.py @@ -0,0 +1,4842 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + + +class AnalysisInput(msrest.serialization.Model): + """AnalysisInput. + + All required parameters must be populated in order to send to Azure. + + :ivar analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :vartype analysis_input: ~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageBatchInput + """ + + _validation = { + 'analysis_input': {'required': True}, + } + + _attribute_map = { + 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :paramtype analysis_input: + ~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageBatchInput + """ + super(AnalysisInput, self).__init__(**kwargs) + self.analysis_input = kwargs['analysis_input'] + + +class JobManifest(msrest.serialization.Model): + """JobManifest. + + All required parameters must be populated in order to send to Azure. + + :ivar tasks: Required. The set of tasks to execute on the input documents. Cannot specify the + same task more than once. + :vartype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.JobManifestTasks + """ + + _validation = { + 'tasks': {'required': True}, + } + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword tasks: Required. The set of tasks to execute on the input documents. Cannot specify + the same task more than once. + :paramtype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.JobManifestTasks + """ + super(JobManifest, self).__init__(**kwargs) + self.tasks = kwargs['tasks'] + + +class JobDescriptor(msrest.serialization.Model): + """JobDescriptor. + + :ivar display_name: Optional display name for the analysis job. + :vartype display_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword display_name: Optional display name for the analysis job. + :paramtype display_name: str + """ + super(JobDescriptor, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + + +class AnalyzeBatchInput(JobDescriptor, AnalysisInput, JobManifest): + """AnalyzeBatchInput. + + All required parameters must be populated in order to send to Azure. + + :ivar tasks: Required. The set of tasks to execute on the input documents. Cannot specify the + same task more than once. + :vartype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.JobManifestTasks + :ivar analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :vartype analysis_input: ~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageBatchInput + :ivar display_name: Optional display name for the analysis job. + :vartype display_name: str + """ + + _validation = { + 'tasks': {'required': True}, + 'analysis_input': {'required': True}, + } + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, + 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword tasks: Required. The set of tasks to execute on the input documents. Cannot specify + the same task more than once. + :paramtype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.JobManifestTasks + :keyword analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :paramtype analysis_input: + ~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageBatchInput + :keyword display_name: Optional display name for the analysis job. + :paramtype display_name: str + """ + super(AnalyzeBatchInput, self).__init__(**kwargs) + self.tasks = kwargs['tasks'] + self.analysis_input = kwargs['analysis_input'] + self.tasks = kwargs['tasks'] + self.display_name = kwargs.get('display_name', None) + self.analysis_input = kwargs['analysis_input'] + self.display_name = kwargs.get('display_name', None) + + +class AnalyzeJobDisplayName(msrest.serialization.Model): + """AnalyzeJobDisplayName. + + :ivar display_name: + :vartype display_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword display_name: + :paramtype display_name: str + """ + super(AnalyzeJobDisplayName, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + + +class AnalyzeJobErrorsAndStatistics(msrest.serialization.Model): + """AnalyzeJobErrorsAndStatistics. + + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + """ + super(AnalyzeJobErrorsAndStatistics, self).__init__(**kwargs) + self.errors = kwargs.get('errors', None) + self.statistics = kwargs.get('statistics', None) + + +class JobMetadata(msrest.serialization.Model): + """JobMetadata. + + All required parameters must be populated in order to send to Azure. + + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'created_date_time': {'required': True}, + 'job_id': {'required': True}, + 'last_update_date_time': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(JobMetadata, self).__init__(**kwargs) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] + + +class AnalyzeJobMetadata(JobMetadata, AnalyzeJobDisplayName): + """AnalyzeJobMetadata. + + All required parameters must be populated in order to send to Azure. + + :ivar display_name: + :vartype display_name: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'created_date_time': {'required': True}, + 'job_id': {'required': True}, + 'last_update_date_time': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword display_name: + :paramtype display_name: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(AnalyzeJobMetadata, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] + + +class Pagination(msrest.serialization.Model): + """Pagination. + + :ivar next_link: + :vartype next_link: str + """ + + _attribute_map = { + 'next_link': {'key': '@nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword next_link: + :paramtype next_link: str + """ + super(Pagination, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + + +class TasksState(msrest.serialization.Model): + """TasksState. + + All required parameters must be populated in order to send to Azure. + + :ivar tasks: Required. + :vartype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasks + """ + + _validation = { + 'tasks': {'required': True}, + } + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword tasks: Required. + :paramtype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasks + """ + super(TasksState, self).__init__(**kwargs) + self.tasks = kwargs['tasks'] + + +class AnalyzeJobState(AnalyzeJobMetadata, TasksState, AnalyzeJobErrorsAndStatistics, Pagination): + """AnalyzeJobState. + + All required parameters must be populated in order to send to Azure. + + :ivar next_link: + :vartype next_link: str + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar tasks: Required. + :vartype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasks + :ivar display_name: + :vartype display_name: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'tasks': {'required': True}, + 'created_date_time': {'required': True}, + 'job_id': {'required': True}, + 'last_update_date_time': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': '@nextLink', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword next_link: + :paramtype next_link: str + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword tasks: Required. + :paramtype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasks + :keyword display_name: + :paramtype display_name: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(AnalyzeJobState, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.errors = kwargs.get('errors', None) + self.statistics = kwargs.get('statistics', None) + self.tasks = kwargs['tasks'] + self.next_link = kwargs.get('next_link', None) + self.errors = kwargs.get('errors', None) + self.statistics = kwargs.get('statistics', None) + self.display_name = kwargs.get('display_name', None) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] + self.next_link = kwargs.get('next_link', None) + self.tasks = kwargs['tasks'] + self.display_name = kwargs.get('display_name', None) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] + self.errors = kwargs.get('errors', None) + self.statistics = kwargs.get('statistics', None) + self.tasks = kwargs['tasks'] + self.display_name = kwargs.get('display_name', None) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] + + +class ClassificationResult(msrest.serialization.Model): + """ClassificationResult. + + All required parameters must be populated in order to send to Azure. + + :ivar category: Required. Classification type. + :vartype category: str + :ivar confidence_score: Required. Confidence score between 0 and 1 of the recognized + classification. + :vartype confidence_score: float + """ + + _validation = { + 'category': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword category: Required. Classification type. + :paramtype category: str + :keyword confidence_score: Required. Confidence score between 0 and 1 of the recognized + classification. + :paramtype confidence_score: float + """ + super(ClassificationResult, self).__init__(**kwargs) + self.category = kwargs['category'] + self.confidence_score = kwargs['confidence_score'] + + +class CustomEntitiesResult(msrest.serialization.Model): + """CustomEntitiesResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar project_name: Required. This field indicates the project name for the model. + :vartype project_name: str + :ivar deployment_name: Required. This field indicates the deployment name for the model. + :vartype deployment_name: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword project_name: Required. This field indicates the project name for the model. + :paramtype project_name: str + :keyword deployment_name: Required. This field indicates the deployment name for the model. + :paramtype deployment_name: str + """ + super(CustomEntitiesResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.project_name = kwargs['project_name'] + self.deployment_name = kwargs['deployment_name'] + + +class CustomEntitiesTask(msrest.serialization.Model): + """CustomEntitiesTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'CustomEntitiesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(CustomEntitiesTask, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) + + +class CustomEntitiesTaskParameters(msrest.serialization.Model): + """CustomEntitiesTaskParameters. + + All required parameters must be populated in order to send to Azure. + + :ivar project_name: Required. + :vartype project_name: str + :ivar deployment_name: Required. + :vartype deployment_name: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _validation = { + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'project_name': {'key': 'project-name', 'type': 'str'}, + 'deployment_name': {'key': 'deployment-name', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword project_name: Required. + :paramtype project_name: str + :keyword deployment_name: Required. + :paramtype deployment_name: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(CustomEntitiesTaskParameters, self).__init__(**kwargs) + self.project_name = kwargs['project_name'] + self.deployment_name = kwargs['deployment_name'] + self.logging_opt_out = kwargs.get('logging_opt_out', False) + self.string_index_type = kwargs.get('string_index_type', None) + + +class CustomEntitiesTaskResult(msrest.serialization.Model): + """CustomEntitiesTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomEntitiesResult'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesResult + """ + super(CustomEntitiesTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class CustomMultiClassificationResult(msrest.serialization.Model): + """CustomMultiClassificationResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiClassificationDocument] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar project_name: Required. This field indicates the project name for the model. + :vartype project_name: str + :ivar deployment_name: Required. This field indicates the deployment name for the model. + :vartype deployment_name: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[MultiClassificationDocument]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiClassificationDocument] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword project_name: Required. This field indicates the project name for the model. + :paramtype project_name: str + :keyword deployment_name: Required. This field indicates the deployment name for the model. + :paramtype deployment_name: str + """ + super(CustomMultiClassificationResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.project_name = kwargs['project_name'] + self.deployment_name = kwargs['deployment_name'] + + +class CustomMultiClassificationTask(msrest.serialization.Model): + """CustomMultiClassificationTask. + + :ivar parameters: + :vartype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'CustomMultiClassificationTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(CustomMultiClassificationTask, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) + + +class CustomMultiClassificationTaskParameters(msrest.serialization.Model): + """CustomMultiClassificationTaskParameters. + + All required parameters must be populated in order to send to Azure. + + :ivar project_name: Required. + :vartype project_name: str + :ivar deployment_name: Required. + :vartype deployment_name: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + """ + + _validation = { + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'project_name': {'key': 'project-name', 'type': 'str'}, + 'deployment_name': {'key': 'deployment-name', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword project_name: Required. + :paramtype project_name: str + :keyword deployment_name: Required. + :paramtype deployment_name: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + """ + super(CustomMultiClassificationTaskParameters, self).__init__(**kwargs) + self.project_name = kwargs['project_name'] + self.deployment_name = kwargs['deployment_name'] + self.logging_opt_out = kwargs.get('logging_opt_out', False) + + +class CustomMultiClassificationTaskResult(msrest.serialization.Model): + """CustomMultiClassificationTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomMultiClassificationResult'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationResult + """ + super(CustomMultiClassificationTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class CustomSingleClassificationResult(msrest.serialization.Model): + """CustomSingleClassificationResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.SingleClassificationDocument] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar project_name: Required. This field indicates the project name for the model. + :vartype project_name: str + :ivar deployment_name: Required. This field indicates the deployment name for the model. + :vartype deployment_name: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[SingleClassificationDocument]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.SingleClassificationDocument] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword project_name: Required. This field indicates the project name for the model. + :paramtype project_name: str + :keyword deployment_name: Required. This field indicates the deployment name for the model. + :paramtype deployment_name: str + """ + super(CustomSingleClassificationResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.project_name = kwargs['project_name'] + self.deployment_name = kwargs['deployment_name'] + + +class CustomSingleClassificationTask(msrest.serialization.Model): + """CustomSingleClassificationTask. + + :ivar parameters: + :vartype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'CustomSingleClassificationTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(CustomSingleClassificationTask, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) + + +class CustomSingleClassificationTaskParameters(msrest.serialization.Model): + """CustomSingleClassificationTaskParameters. + + All required parameters must be populated in order to send to Azure. + + :ivar project_name: Required. + :vartype project_name: str + :ivar deployment_name: Required. + :vartype deployment_name: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + """ + + _validation = { + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'project_name': {'key': 'project-name', 'type': 'str'}, + 'deployment_name': {'key': 'deployment-name', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword project_name: Required. + :paramtype project_name: str + :keyword deployment_name: Required. + :paramtype deployment_name: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + """ + super(CustomSingleClassificationTaskParameters, self).__init__(**kwargs) + self.project_name = kwargs['project_name'] + self.deployment_name = kwargs['deployment_name'] + self.logging_opt_out = kwargs.get('logging_opt_out', False) + + +class CustomSingleClassificationTaskResult(msrest.serialization.Model): + """CustomSingleClassificationTaskResult. + + :ivar results: + :vartype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomSingleClassificationResult'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationResult + """ + super(CustomSingleClassificationTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class DetectedLanguage(msrest.serialization.Model): + """DetectedLanguage. + + All required parameters must be populated in order to send to Azure. + + :ivar name: Required. Long name of a detected language (e.g. English, French). + :vartype name: str + :ivar iso6391_name: Required. A two letter representation of the detected language according to + the ISO 639-1 standard (e.g. en, fr). + :vartype iso6391_name: str + :ivar confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :vartype confidence_score: float + """ + + _validation = { + 'name': {'required': True}, + 'iso6391_name': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'iso6391_name': {'key': 'iso6391Name', 'type': 'str'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword name: Required. Long name of a detected language (e.g. English, French). + :paramtype name: str + :keyword iso6391_name: Required. A two letter representation of the detected language according + to the ISO 639-1 standard (e.g. en, fr). + :paramtype iso6391_name: str + :keyword confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :paramtype confidence_score: float + """ + super(DetectedLanguage, self).__init__(**kwargs) + self.name = kwargs['name'] + self.iso6391_name = kwargs['iso6391_name'] + self.confidence_score = kwargs['confidence_score'] + + +class DocumentEntities(msrest.serialization.Model): + """DocumentEntities. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[Entity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentEntities, self).__init__(**kwargs) + self.id = kwargs['id'] + self.entities = kwargs['entities'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class DocumentError(msrest.serialization.Model): + """DocumentError. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Document Id. + :vartype id: str + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError + """ + + _validation = { + 'id': {'required': True}, + 'error': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Document Id. + :paramtype id: str + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError + """ + super(DocumentError, self).__init__(**kwargs) + self.id = kwargs['id'] + self.error = kwargs['error'] + + +class DocumentHealthcareEntities(msrest.serialization.Model): + """DocumentHealthcareEntities. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Healthcare entities. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntity] + :ivar relations: Required. Healthcare entity relations. + :vartype relations: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareRelation] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'relations': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[HealthcareEntity]'}, + 'relations': {'key': 'relations', 'type': '[HealthcareRelation]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Healthcare entities. + :paramtype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntity] + :keyword relations: Required. Healthcare entity relations. + :paramtype relations: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareRelation] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentHealthcareEntities, self).__init__(**kwargs) + self.id = kwargs['id'] + self.entities = kwargs['entities'] + self.relations = kwargs['relations'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class DocumentKeyPhrases(msrest.serialization.Model): + """DocumentKeyPhrases. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :vartype key_phrases: list[str] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'key_phrases': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'key_phrases': {'key': 'keyPhrases', 'type': '[str]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :paramtype key_phrases: list[str] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentKeyPhrases, self).__init__(**kwargs) + self.id = kwargs['id'] + self.key_phrases = kwargs['key_phrases'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class DocumentLanguage(msrest.serialization.Model): + """DocumentLanguage. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar detected_language: Required. Detected Language. + :vartype detected_language: ~azure.ai.textanalytics.v3_2_preview_2.models.DetectedLanguage + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'detected_language': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'detected_language': {'key': 'detectedLanguage', 'type': 'DetectedLanguage'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword detected_language: Required. Detected Language. + :paramtype detected_language: ~azure.ai.textanalytics.v3_2_preview_2.models.DetectedLanguage + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentLanguage, self).__init__(**kwargs) + self.id = kwargs['id'] + self.detected_language = kwargs['detected_language'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class DocumentLinkedEntities(msrest.serialization.Model): + """DocumentLinkedEntities. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized well known entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.LinkedEntity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[LinkedEntity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized well known entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.LinkedEntity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentLinkedEntities, self).__init__(**kwargs) + self.id = kwargs['id'] + self.entities = kwargs['entities'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class DocumentSentiment(msrest.serialization.Model): + """DocumentSentiment. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :vartype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentSentimentValue + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + :ivar confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 + for each sentiment class. + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentConfidenceScorePerLabel + :ivar sentences: Required. Sentence level sentiment analysis. + :vartype sentences: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceSentiment] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + """ + + _validation = { + 'id': {'required': True}, + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'sentences': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, + 'sentences': {'key': 'sentences', 'type': '[SentenceSentiment]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :paramtype sentiment: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentSentimentValue + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + :keyword confidence_scores: Required. Document level sentiment confidence scores between 0 and + 1 for each sentiment class. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentConfidenceScorePerLabel + :keyword sentences: Required. Sentence level sentiment analysis. + :paramtype sentences: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceSentiment] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + """ + super(DocumentSentiment, self).__init__(**kwargs) + self.id = kwargs['id'] + self.sentiment = kwargs['sentiment'] + self.statistics = kwargs.get('statistics', None) + self.confidence_scores = kwargs['confidence_scores'] + self.sentences = kwargs['sentences'] + self.warnings = kwargs['warnings'] + + +class DocumentStatistics(msrest.serialization.Model): + """if showStats=true was specified in the request this field will contain information about the document payload. + + All required parameters must be populated in order to send to Azure. + + :ivar characters_count: Required. Number of text elements recognized in the document. + :vartype characters_count: int + :ivar transactions_count: Required. Number of transactions for the document. + :vartype transactions_count: int + """ + + _validation = { + 'characters_count': {'required': True}, + 'transactions_count': {'required': True}, + } + + _attribute_map = { + 'characters_count': {'key': 'charactersCount', 'type': 'int'}, + 'transactions_count': {'key': 'transactionsCount', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword characters_count: Required. Number of text elements recognized in the document. + :paramtype characters_count: int + :keyword transactions_count: Required. Number of transactions for the document. + :paramtype transactions_count: int + """ + super(DocumentStatistics, self).__init__(**kwargs) + self.characters_count = kwargs['characters_count'] + self.transactions_count = kwargs['transactions_count'] + + +class EntitiesResult(msrest.serialization.Model): + """EntitiesResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(EntitiesResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class EntitiesTask(msrest.serialization.Model): + """EntitiesTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'EntitiesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(EntitiesTask, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) + + +class EntitiesTaskParameters(msrest.serialization.Model): + """EntitiesTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(EntitiesTaskParameters, self).__init__(**kwargs) + self.model_version = kwargs.get('model_version', "latest") + self.logging_opt_out = kwargs.get('logging_opt_out', False) + self.string_index_type = kwargs.get('string_index_type', None) + + +class EntitiesTaskResult(msrest.serialization.Model): + """EntitiesTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntitiesResult'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult + """ + super(EntitiesTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class Entity(msrest.serialization.Model): + """Entity. + + All required parameters must be populated in order to send to Azure. + + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Entity type. + :vartype category: str + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' + values can affect the offset returned. + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values + can affect the length returned. + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float + """ + + _validation = { + 'text': {'required': True}, + 'category': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'subcategory': {'key': 'subcategory', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Entity type. + :paramtype category: str + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ + super(Entity, self).__init__(**kwargs) + self.text = kwargs['text'] + self.category = kwargs['category'] + self.subcategory = kwargs.get('subcategory', None) + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.confidence_score = kwargs['confidence_score'] + + +class EntityLinkingResult(msrest.serialization.Model): + """EntityLinkingResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentLinkedEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentLinkedEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentLinkedEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(EntityLinkingResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class EntityLinkingTask(msrest.serialization.Model): + """EntityLinkingTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'EntityLinkingTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(EntityLinkingTask, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) + + +class EntityLinkingTaskParameters(msrest.serialization.Model): + """EntityLinkingTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(EntityLinkingTaskParameters, self).__init__(**kwargs) + self.model_version = kwargs.get('model_version', "latest") + self.logging_opt_out = kwargs.get('logging_opt_out', False) + self.string_index_type = kwargs.get('string_index_type', None) + + +class EntityLinkingTaskResult(msrest.serialization.Model): + """EntityLinkingTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult + """ + super(EntityLinkingTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class ErrorResponse(msrest.serialization.Model): + """ErrorResponse. + + All required parameters must be populated in order to send to Azure. + + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError + """ + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError + """ + super(ErrorResponse, self).__init__(**kwargs) + self.error = kwargs['error'] + + +class ExtractedDocumentSummary(msrest.serialization.Model): + """ExtractedDocumentSummary. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar sentences: Required. A ranked list of sentences representing the extracted summary. + :vartype sentences: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractedSummarySentence] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'sentences': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'sentences': {'key': 'sentences', 'type': '[ExtractedSummarySentence]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword sentences: Required. A ranked list of sentences representing the extracted summary. + :paramtype sentences: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractedSummarySentence] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(ExtractedDocumentSummary, self).__init__(**kwargs) + self.id = kwargs['id'] + self.sentences = kwargs['sentences'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class ExtractedSummarySentence(msrest.serialization.Model): + """ExtractedSummarySentence. + + All required parameters must be populated in order to send to Azure. + + :ivar text: Required. The extracted sentence text. + :vartype text: str + :ivar rank_score: Required. A double value representing the relevance of the sentence within + the summary. Higher values indicate higher importance. + :vartype rank_score: float + :ivar offset: Required. The sentence offset from the start of the document, based on the value + of the parameter StringIndexType. + :vartype offset: int + :ivar length: Required. The length of the sentence. + :vartype length: int + """ + + _validation = { + 'text': {'required': True}, + 'rank_score': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'rank_score': {'key': 'rankScore', 'type': 'float'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword text: Required. The extracted sentence text. + :paramtype text: str + :keyword rank_score: Required. A double value representing the relevance of the sentence within + the summary. Higher values indicate higher importance. + :paramtype rank_score: float + :keyword offset: Required. The sentence offset from the start of the document, based on the + value of the parameter StringIndexType. + :paramtype offset: int + :keyword length: Required. The length of the sentence. + :paramtype length: int + """ + super(ExtractedSummarySentence, self).__init__(**kwargs) + self.text = kwargs['text'] + self.rank_score = kwargs['rank_score'] + self.offset = kwargs['offset'] + self.length = kwargs['length'] + + +class ExtractiveSummarizationResult(msrest.serialization.Model): + """ExtractiveSummarizationResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractedDocumentSummary] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[ExtractedDocumentSummary]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractedDocumentSummary] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(ExtractiveSummarizationResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class ExtractiveSummarizationTask(msrest.serialization.Model): + """ExtractiveSummarizationTask. + + :ivar parameters: + :vartype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'ExtractiveSummarizationTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(ExtractiveSummarizationTask, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) + + +class ExtractiveSummarizationTaskParameters(msrest.serialization.Model): + """ExtractiveSummarizationTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + :ivar sentence_count: + :vartype sentence_count: int + :ivar sort_by: Possible values include: "Offset", "Rank". Default value: "Offset". + :vartype sort_by: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTaskParametersSortBy + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + 'sentence_count': {'key': 'sentenceCount', 'type': 'int'}, + 'sort_by': {'key': 'sortBy', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + :keyword sentence_count: + :paramtype sentence_count: int + :keyword sort_by: Possible values include: "Offset", "Rank". Default value: "Offset". + :paramtype sort_by: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTaskParametersSortBy + """ + super(ExtractiveSummarizationTaskParameters, self).__init__(**kwargs) + self.model_version = kwargs.get('model_version', "latest") + self.logging_opt_out = kwargs.get('logging_opt_out', False) + self.string_index_type = kwargs.get('string_index_type', None) + self.sentence_count = kwargs.get('sentence_count', 3) + self.sort_by = kwargs.get('sort_by', "Offset") + + +class ExtractiveSummarizationTaskResult(msrest.serialization.Model): + """ExtractiveSummarizationTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'ExtractiveSummarizationResult'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationResult + """ + super(ExtractiveSummarizationTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class HealthcareAssertion(msrest.serialization.Model): + """HealthcareAssertion. + + :ivar conditionality: Describes any conditionality on the entity. Possible values include: + "hypothetical", "conditional". + :vartype conditionality: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Conditionality + :ivar certainty: Describes the entities certainty and polarity. Possible values include: + "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". + :vartype certainty: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Certainty + :ivar association: Describes if the entity is the subject of the text or if it describes + someone else. Possible values include: "subject", "other". + :vartype association: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Association + """ + + _attribute_map = { + 'conditionality': {'key': 'conditionality', 'type': 'str'}, + 'certainty': {'key': 'certainty', 'type': 'str'}, + 'association': {'key': 'association', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword conditionality: Describes any conditionality on the entity. Possible values include: + "hypothetical", "conditional". + :paramtype conditionality: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Conditionality + :keyword certainty: Describes the entities certainty and polarity. Possible values include: + "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". + :paramtype certainty: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Certainty + :keyword association: Describes if the entity is the subject of the text or if it describes + someone else. Possible values include: "subject", "other". + :paramtype association: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Association + """ + super(HealthcareAssertion, self).__init__(**kwargs) + self.conditionality = kwargs.get('conditionality', None) + self.certainty = kwargs.get('certainty', None) + self.association = kwargs.get('association', None) + + +class HealthcareLinkingProperties(msrest.serialization.Model): + """HealthcareLinkingProperties. + + :ivar assertion: + :vartype assertion: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareAssertion + :ivar name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :vartype name: str + :ivar links: Entity references in known data sources. + :vartype links: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityLink] + """ + + _attribute_map = { + 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, + 'name': {'key': 'name', 'type': 'str'}, + 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword assertion: + :paramtype assertion: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareAssertion + :keyword name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :paramtype name: str + :keyword links: Entity references in known data sources. + :paramtype links: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityLink] + """ + super(HealthcareLinkingProperties, self).__init__(**kwargs) + self.assertion = kwargs.get('assertion', None) + self.name = kwargs.get('name', None) + self.links = kwargs.get('links', None) + + +class HealthcareEntityProperties(msrest.serialization.Model): + """HealthcareEntityProperties. + + All required parameters must be populated in order to send to Azure. + + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :vartype category: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityCategory + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' + values can affect the offset returned. + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values + can affect the length returned. + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float + """ + + _validation = { + 'text': {'required': True}, + 'category': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'subcategory': {'key': 'subcategory', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :paramtype category: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityCategory + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ + super(HealthcareEntityProperties, self).__init__(**kwargs) + self.text = kwargs['text'] + self.category = kwargs['category'] + self.subcategory = kwargs.get('subcategory', None) + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.confidence_score = kwargs['confidence_score'] + + +class HealthcareEntity(HealthcareEntityProperties, HealthcareLinkingProperties): + """HealthcareEntity. + + All required parameters must be populated in order to send to Azure. + + :ivar assertion: + :vartype assertion: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareAssertion + :ivar name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :vartype name: str + :ivar links: Entity references in known data sources. + :vartype links: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityLink] + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :vartype category: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityCategory + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' + values can affect the offset returned. + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values + can affect the length returned. + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float + """ + + _validation = { + 'text': {'required': True}, + 'category': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, + 'name': {'key': 'name', 'type': 'str'}, + 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, + 'text': {'key': 'text', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'subcategory': {'key': 'subcategory', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword assertion: + :paramtype assertion: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareAssertion + :keyword name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :paramtype name: str + :keyword links: Entity references in known data sources. + :paramtype links: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityLink] + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :paramtype category: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityCategory + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ + super(HealthcareEntity, self).__init__(**kwargs) + self.assertion = kwargs.get('assertion', None) + self.name = kwargs.get('name', None) + self.links = kwargs.get('links', None) + self.text = kwargs['text'] + self.category = kwargs['category'] + self.subcategory = kwargs.get('subcategory', None) + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.confidence_score = kwargs['confidence_score'] + + +class HealthcareEntityLink(msrest.serialization.Model): + """HealthcareEntityLink. + + All required parameters must be populated in order to send to Azure. + + :ivar data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + :vartype data_source: str + :ivar id: Required. Entity id in the given source catalog. + :vartype id: str + """ + + _validation = { + 'data_source': {'required': True}, + 'id': {'required': True}, + } + + _attribute_map = { + 'data_source': {'key': 'dataSource', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + :paramtype data_source: str + :keyword id: Required. Entity id in the given source catalog. + :paramtype id: str + """ + super(HealthcareEntityLink, self).__init__(**kwargs) + self.data_source = kwargs['data_source'] + self.id = kwargs['id'] + + +class HealthcareTaskResult(msrest.serialization.Model): + """HealthcareTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareResult + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'HealthcareResult'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareResult + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + """ + super(HealthcareTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.errors = kwargs.get('errors', None) + + +class HealthcareJobState(JobMetadata, Pagination, HealthcareTaskResult): + """HealthcareJobState. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareResult + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :ivar next_link: + :vartype next_link: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'created_date_time': {'required': True}, + 'job_id': {'required': True}, + 'last_update_date_time': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'HealthcareResult'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'next_link': {'key': '@nextLink', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareResult + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :keyword next_link: + :paramtype next_link: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(HealthcareJobState, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.errors = kwargs.get('errors', None) + self.next_link = kwargs.get('next_link', None) + self.results = kwargs.get('results', None) + self.errors = kwargs.get('errors', None) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] + self.next_link = kwargs.get('next_link', None) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] + + +class HealthcareRelation(msrest.serialization.Model): + """Every relation is an entity graph of a certain relationType, where all entities are connected and have specific roles within the relation context. + + All required parameters must be populated in order to send to Azure. + + :ivar relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or + 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", + "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", + "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", + "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", + "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", + "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". + :vartype relation_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.RelationType + :ivar entities: Required. The entities in the relation. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareRelationEntity] + """ + + _validation = { + 'relation_type': {'required': True}, + 'entities': {'required': True}, + } + + _attribute_map = { + 'relation_type': {'key': 'relationType', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[HealthcareRelationEntity]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or + 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", + "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", + "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", + "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", + "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", + "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". + :paramtype relation_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.RelationType + :keyword entities: Required. The entities in the relation. + :paramtype entities: + list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareRelationEntity] + """ + super(HealthcareRelation, self).__init__(**kwargs) + self.relation_type = kwargs['relation_type'] + self.entities = kwargs['entities'] + + +class HealthcareRelationEntity(msrest.serialization.Model): + """HealthcareRelationEntity. + + All required parameters must be populated in order to send to Azure. + + :ivar ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment + Identifier Representation), pointing to the entity . + :vartype ref: str + :ivar role: Required. Role of entity in the relationship. For example: 'CD20-positive diffuse + large B-cell lymphoma' has the following entities with their roles in parenthesis: CD20 + (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). + :vartype role: str + """ + + _validation = { + 'ref': {'required': True}, + 'role': {'required': True}, + } + + _attribute_map = { + 'ref': {'key': 'ref', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment + Identifier Representation), pointing to the entity . + :paramtype ref: str + :keyword role: Required. Role of entity in the relationship. For example: 'CD20-positive + diffuse large B-cell lymphoma' has the following entities with their roles in parenthesis: + CD20 (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). + :paramtype role: str + """ + super(HealthcareRelationEntity, self).__init__(**kwargs) + self.ref = kwargs['ref'] + self.role = kwargs['role'] + + +class HealthcareResult(msrest.serialization.Model): + """HealthcareResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentHealthcareEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentHealthcareEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentHealthcareEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(HealthcareResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class InnerError(msrest.serialization.Model): + """InnerError. + + All required parameters must be populated in order to send to Azure. + + :ivar code: Required. Error code. Possible values include: "InvalidParameterValue", + "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", + "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", + "InvalidCountryHint". + :vartype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.InnerErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar details: Error details. + :vartype details: dict[str, str] + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_2_preview_2.models.InnerError + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '{str}'}, + 'target': {'key': 'target', 'type': 'str'}, + 'innererror': {'key': 'innererror', 'type': 'InnerError'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword code: Required. Error code. Possible values include: "InvalidParameterValue", + "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", + "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", + "InvalidCountryHint". + :paramtype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.InnerErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword details: Error details. + :paramtype details: dict[str, str] + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_2_preview_2.models.InnerError + """ + super(InnerError, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + self.details = kwargs.get('details', None) + self.target = kwargs.get('target', None) + self.innererror = kwargs.get('innererror', None) + + +class JobManifestTasks(msrest.serialization.Model): + """The set of tasks to execute on the input documents. Cannot specify the same task more than once. + + :ivar entity_recognition_tasks: + :vartype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesTask] + :ivar entity_recognition_pii_tasks: + :vartype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.PiiTask] + :ivar key_phrase_extraction_tasks: + :vartype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhrasesTask] + :ivar entity_linking_tasks: + :vartype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingTask] + :ivar sentiment_analysis_tasks: + :vartype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.SentimentAnalysisTask] + :ivar extractive_summarization_tasks: + :vartype extractive_summarization_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTask] + :ivar custom_entity_recognition_tasks: + :vartype custom_entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesTask] + :ivar custom_single_classification_tasks: + :vartype custom_single_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationTask] + :ivar custom_multi_classification_tasks: + :vartype custom_multi_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationTask] + """ + + _attribute_map = { + 'entity_recognition_tasks': {'key': 'entityRecognitionTasks', 'type': '[EntitiesTask]'}, + 'entity_recognition_pii_tasks': {'key': 'entityRecognitionPiiTasks', 'type': '[PiiTask]'}, + 'key_phrase_extraction_tasks': {'key': 'keyPhraseExtractionTasks', 'type': '[KeyPhrasesTask]'}, + 'entity_linking_tasks': {'key': 'entityLinkingTasks', 'type': '[EntityLinkingTask]'}, + 'sentiment_analysis_tasks': {'key': 'sentimentAnalysisTasks', 'type': '[SentimentAnalysisTask]'}, + 'extractive_summarization_tasks': {'key': 'extractiveSummarizationTasks', 'type': '[ExtractiveSummarizationTask]'}, + 'custom_entity_recognition_tasks': {'key': 'customEntityRecognitionTasks', 'type': '[CustomEntitiesTask]'}, + 'custom_single_classification_tasks': {'key': 'customSingleClassificationTasks', 'type': '[CustomSingleClassificationTask]'}, + 'custom_multi_classification_tasks': {'key': 'customMultiClassificationTasks', 'type': '[CustomMultiClassificationTask]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword entity_recognition_tasks: + :paramtype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesTask] + :keyword entity_recognition_pii_tasks: + :paramtype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.PiiTask] + :keyword key_phrase_extraction_tasks: + :paramtype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhrasesTask] + :keyword entity_linking_tasks: + :paramtype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingTask] + :keyword sentiment_analysis_tasks: + :paramtype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.SentimentAnalysisTask] + :keyword extractive_summarization_tasks: + :paramtype extractive_summarization_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTask] + :keyword custom_entity_recognition_tasks: + :paramtype custom_entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesTask] + :keyword custom_single_classification_tasks: + :paramtype custom_single_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationTask] + :keyword custom_multi_classification_tasks: + :paramtype custom_multi_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationTask] + """ + super(JobManifestTasks, self).__init__(**kwargs) + self.entity_recognition_tasks = kwargs.get('entity_recognition_tasks', None) + self.entity_recognition_pii_tasks = kwargs.get('entity_recognition_pii_tasks', None) + self.key_phrase_extraction_tasks = kwargs.get('key_phrase_extraction_tasks', None) + self.entity_linking_tasks = kwargs.get('entity_linking_tasks', None) + self.sentiment_analysis_tasks = kwargs.get('sentiment_analysis_tasks', None) + self.extractive_summarization_tasks = kwargs.get('extractive_summarization_tasks', None) + self.custom_entity_recognition_tasks = kwargs.get('custom_entity_recognition_tasks', None) + self.custom_single_classification_tasks = kwargs.get('custom_single_classification_tasks', None) + self.custom_multi_classification_tasks = kwargs.get('custom_multi_classification_tasks', None) + + +class KeyPhraseResult(msrest.serialization.Model): + """KeyPhraseResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentKeyPhrases] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentKeyPhrases]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentKeyPhrases] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(KeyPhraseResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class KeyPhrasesTask(msrest.serialization.Model): + """KeyPhrasesTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhrasesTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'KeyPhrasesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhrasesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(KeyPhrasesTask, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) + + +class KeyPhrasesTaskParameters(msrest.serialization.Model): + """KeyPhrasesTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + """ + super(KeyPhrasesTaskParameters, self).__init__(**kwargs) + self.model_version = kwargs.get('model_version', "latest") + self.logging_opt_out = kwargs.get('logging_opt_out', False) + + +class KeyPhraseTaskResult(msrest.serialization.Model): + """KeyPhraseTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult + """ + super(KeyPhraseTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class LanguageBatchInput(msrest.serialization.Model): + """LanguageBatchInput. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput] + """ + + _validation = { + 'documents': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[LanguageInput]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput] + """ + super(LanguageBatchInput, self).__init__(**kwargs) + self.documents = kwargs['documents'] + + +class LanguageInput(msrest.serialization.Model): + """LanguageInput. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. + :vartype text: str + :ivar country_hint: + :vartype country_hint: str + """ + + _validation = { + 'id': {'required': True}, + 'text': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'country_hint': {'key': 'countryHint', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. + :paramtype text: str + :keyword country_hint: + :paramtype country_hint: str + """ + super(LanguageInput, self).__init__(**kwargs) + self.id = kwargs['id'] + self.text = kwargs['text'] + self.country_hint = kwargs.get('country_hint', None) + + +class LanguageResult(msrest.serialization.Model): + """LanguageResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentLanguage] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentLanguage]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentLanguage] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(LanguageResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class LinkedEntity(msrest.serialization.Model): + """LinkedEntity. + + All required parameters must be populated in order to send to Azure. + + :ivar name: Required. Entity Linking formal name. + :vartype name: str + :ivar matches: Required. List of instances this entity appears in the text. + :vartype matches: list[~azure.ai.textanalytics.v3_2_preview_2.models.Match] + :ivar language: Required. Language used in the data source. + :vartype language: str + :ivar id: Unique identifier of the recognized entity from the data source. + :vartype id: str + :ivar url: Required. URL for the entity's page from the data source. + :vartype url: str + :ivar data_source: Required. Data source used to extract entity linking, such as Wiki/Bing etc. + :vartype data_source: str + :ivar bing_id: Bing Entity Search API unique identifier of the recognized entity. + :vartype bing_id: str + """ + + _validation = { + 'name': {'required': True}, + 'matches': {'required': True}, + 'language': {'required': True}, + 'url': {'required': True}, + 'data_source': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'matches': {'key': 'matches', 'type': '[Match]'}, + 'language': {'key': 'language', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'data_source': {'key': 'dataSource', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword name: Required. Entity Linking formal name. + :paramtype name: str + :keyword matches: Required. List of instances this entity appears in the text. + :paramtype matches: list[~azure.ai.textanalytics.v3_2_preview_2.models.Match] + :keyword language: Required. Language used in the data source. + :paramtype language: str + :keyword id: Unique identifier of the recognized entity from the data source. + :paramtype id: str + :keyword url: Required. URL for the entity's page from the data source. + :paramtype url: str + :keyword data_source: Required. Data source used to extract entity linking, such as Wiki/Bing + etc. + :paramtype data_source: str + :keyword bing_id: Bing Entity Search API unique identifier of the recognized entity. + :paramtype bing_id: str + """ + super(LinkedEntity, self).__init__(**kwargs) + self.name = kwargs['name'] + self.matches = kwargs['matches'] + self.language = kwargs['language'] + self.id = kwargs.get('id', None) + self.url = kwargs['url'] + self.data_source = kwargs['data_source'] + self.bing_id = kwargs.get('bing_id', None) + + +class Match(msrest.serialization.Model): + """Match. + + All required parameters must be populated in order to send to Azure. + + :ivar confidence_score: Required. If a well known item is recognized, a decimal number denoting + the confidence level between 0 and 1 will be returned. + :vartype confidence_score: float + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar offset: Required. Start position for the entity match text. + :vartype offset: int + :ivar length: Required. Length for the entity match text. + :vartype length: int + """ + + _validation = { + 'confidence_score': {'required': True}, + 'text': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + 'text': {'key': 'text', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword confidence_score: Required. If a well known item is recognized, a decimal number + denoting the confidence level between 0 and 1 will be returned. + :paramtype confidence_score: float + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword offset: Required. Start position for the entity match text. + :paramtype offset: int + :keyword length: Required. Length for the entity match text. + :paramtype length: int + """ + super(Match, self).__init__(**kwargs) + self.confidence_score = kwargs['confidence_score'] + self.text = kwargs['text'] + self.offset = kwargs['offset'] + self.length = kwargs['length'] + + +class MultiClassificationDocument(msrest.serialization.Model): + """MultiClassificationDocument. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar classifications: Required. Recognized classification results in the document. + :vartype classifications: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ClassificationResult] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'classifications': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'classifications': {'key': 'classifications', 'type': '[ClassificationResult]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword classifications: Required. Recognized classification results in the document. + :paramtype classifications: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ClassificationResult] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(MultiClassificationDocument, self).__init__(**kwargs) + self.id = kwargs['id'] + self.classifications = kwargs['classifications'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class MultiLanguageBatchInput(msrest.serialization.Model): + """Contains a set of input documents to be analyzed by the service. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. The set of documents to process as part of this batch. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] + """ + + _validation = { + 'documents': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[MultiLanguageInput]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. The set of documents to process as part of this batch. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] + """ + super(MultiLanguageBatchInput, self).__init__(**kwargs) + self.documents = kwargs['documents'] + + +class MultiLanguageInput(msrest.serialization.Model): + """Contains an input document to be analyzed by the service. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. A unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. The input text to process. + :vartype text: str + :ivar language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :vartype language: str + """ + + _validation = { + 'id': {'required': True}, + 'text': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. A unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. The input text to process. + :paramtype text: str + :keyword language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :paramtype language: str + """ + super(MultiLanguageInput, self).__init__(**kwargs) + self.id = kwargs['id'] + self.text = kwargs['text'] + self.language = kwargs.get('language', None) + + +class PiiDocumentEntities(msrest.serialization.Model): + """PiiDocumentEntities. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar redacted_text: Required. Returns redacted text. + :vartype redacted_text: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'redacted_text': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'redacted_text': {'key': 'redactedText', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[Entity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword redacted_text: Required. Returns redacted text. + :paramtype redacted_text: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(PiiDocumentEntities, self).__init__(**kwargs) + self.id = kwargs['id'] + self.redacted_text = kwargs['redacted_text'] + self.entities = kwargs['entities'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class PiiResult(msrest.serialization.Model): + """PiiResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.PiiDocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[PiiDocumentEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.PiiDocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(PiiResult, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class PiiTask(msrest.serialization.Model): + """PiiTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'PiiTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(PiiTask, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) + + +class PiiTaskParameters(msrest.serialization.Model): + """PiiTaskParameters. + + :ivar domain: Possible values include: "phi", "none". Default value: "none". + :vartype domain: str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiTaskParametersDomain + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar pii_categories: (Optional) describes the PII categories to return. + :vartype pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory] + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _validation = { + 'pii_categories': {'unique': True}, + } + + _attribute_map = { + 'domain': {'key': 'domain', 'type': 'str'}, + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'pii_categories': {'key': 'piiCategories', 'type': '[str]'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword domain: Possible values include: "phi", "none". Default value: "none". + :paramtype domain: str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiTaskParametersDomain + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword pii_categories: (Optional) describes the PII categories to return. + :paramtype pii_categories: list[str or + ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory] + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(PiiTaskParameters, self).__init__(**kwargs) + self.domain = kwargs.get('domain', "none") + self.model_version = kwargs.get('model_version', "latest") + self.logging_opt_out = kwargs.get('logging_opt_out', True) + self.pii_categories = kwargs.get('pii_categories', None) + self.string_index_type = kwargs.get('string_index_type', None) + + +class PiiTaskResult(msrest.serialization.Model): + """PiiTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'PiiResult'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult + """ + super(PiiTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class RequestStatistics(msrest.serialization.Model): + """if showStats=true was specified in the request this field will contain information about the request payload. + + All required parameters must be populated in order to send to Azure. + + :ivar documents_count: Required. Number of documents submitted in the request. + :vartype documents_count: int + :ivar valid_documents_count: Required. Number of valid documents. This excludes empty, + over-size limit or non-supported languages documents. + :vartype valid_documents_count: int + :ivar erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :vartype erroneous_documents_count: int + :ivar transactions_count: Required. Number of transactions for the request. + :vartype transactions_count: long + """ + + _validation = { + 'documents_count': {'required': True}, + 'valid_documents_count': {'required': True}, + 'erroneous_documents_count': {'required': True}, + 'transactions_count': {'required': True}, + } + + _attribute_map = { + 'documents_count': {'key': 'documentsCount', 'type': 'int'}, + 'valid_documents_count': {'key': 'validDocumentsCount', 'type': 'int'}, + 'erroneous_documents_count': {'key': 'erroneousDocumentsCount', 'type': 'int'}, + 'transactions_count': {'key': 'transactionsCount', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents_count: Required. Number of documents submitted in the request. + :paramtype documents_count: int + :keyword valid_documents_count: Required. Number of valid documents. This excludes empty, + over-size limit or non-supported languages documents. + :paramtype valid_documents_count: int + :keyword erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :paramtype erroneous_documents_count: int + :keyword transactions_count: Required. Number of transactions for the request. + :paramtype transactions_count: long + """ + super(RequestStatistics, self).__init__(**kwargs) + self.documents_count = kwargs['documents_count'] + self.valid_documents_count = kwargs['valid_documents_count'] + self.erroneous_documents_count = kwargs['erroneous_documents_count'] + self.transactions_count = kwargs['transactions_count'] + + +class SentenceAssessment(msrest.serialization.Model): + """SentenceAssessment. + + All required parameters must be populated in order to send to Azure. + + :ivar sentiment: Required. Assessment sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :vartype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TokenSentimentValue + :ivar confidence_scores: Required. Assessment sentiment confidence scores in the sentence. + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetConfidenceScoreLabel + :ivar offset: Required. The assessment offset from the start of the sentence. + :vartype offset: int + :ivar length: Required. The length of the assessment. + :vartype length: int + :ivar text: Required. The assessment text detected. + :vartype text: str + :ivar is_negated: Required. The indicator representing if the assessment is negated. + :vartype is_negated: bool + """ + + _validation = { + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'text': {'required': True}, + 'is_negated': {'required': True}, + } + + _attribute_map = { + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'TargetConfidenceScoreLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'is_negated': {'key': 'isNegated', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword sentiment: Required. Assessment sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TokenSentimentValue + :keyword confidence_scores: Required. Assessment sentiment confidence scores in the sentence. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetConfidenceScoreLabel + :keyword offset: Required. The assessment offset from the start of the sentence. + :paramtype offset: int + :keyword length: Required. The length of the assessment. + :paramtype length: int + :keyword text: Required. The assessment text detected. + :paramtype text: str + :keyword is_negated: Required. The indicator representing if the assessment is negated. + :paramtype is_negated: bool + """ + super(SentenceAssessment, self).__init__(**kwargs) + self.sentiment = kwargs['sentiment'] + self.confidence_scores = kwargs['confidence_scores'] + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.text = kwargs['text'] + self.is_negated = kwargs['is_negated'] + + +class SentenceSentiment(msrest.serialization.Model): + """SentenceSentiment. + + All required parameters must be populated in order to send to Azure. + + :ivar text: Required. The sentence text. + :vartype text: str + :ivar sentiment: Required. The predicted Sentiment for the sentence. Possible values include: + "positive", "neutral", "negative". + :vartype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.SentenceSentimentValue + :ivar confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentConfidenceScorePerLabel + :ivar offset: Required. The sentence offset from the start of the document. + :vartype offset: int + :ivar length: Required. The length of the sentence. + :vartype length: int + :ivar targets: The array of sentence targets for the sentence. + :vartype targets: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceTarget] + :ivar assessments: The array of assessments for the sentence. + :vartype assessments: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceAssessment] + """ + + _validation = { + 'text': {'required': True}, + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'targets': {'key': 'targets', 'type': '[SentenceTarget]'}, + 'assessments': {'key': 'assessments', 'type': '[SentenceAssessment]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword text: Required. The sentence text. + :paramtype text: str + :keyword sentiment: Required. The predicted Sentiment for the sentence. Possible values + include: "positive", "neutral", "negative". + :paramtype sentiment: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.SentenceSentimentValue + :keyword confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentConfidenceScorePerLabel + :keyword offset: Required. The sentence offset from the start of the document. + :paramtype offset: int + :keyword length: Required. The length of the sentence. + :paramtype length: int + :keyword targets: The array of sentence targets for the sentence. + :paramtype targets: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceTarget] + :keyword assessments: The array of assessments for the sentence. + :paramtype assessments: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceAssessment] + """ + super(SentenceSentiment, self).__init__(**kwargs) + self.text = kwargs['text'] + self.sentiment = kwargs['sentiment'] + self.confidence_scores = kwargs['confidence_scores'] + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.targets = kwargs.get('targets', None) + self.assessments = kwargs.get('assessments', None) + + +class SentenceTarget(msrest.serialization.Model): + """SentenceTarget. + + All required parameters must be populated in order to send to Azure. + + :ivar sentiment: Required. Targeted sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :vartype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TokenSentimentValue + :ivar confidence_scores: Required. Target sentiment confidence scores for the target in the + sentence. + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetConfidenceScoreLabel + :ivar offset: Required. The target offset from the start of the sentence. + :vartype offset: int + :ivar length: Required. The length of the target. + :vartype length: int + :ivar text: Required. The target text detected. + :vartype text: str + :ivar relations: Required. The array of either assessment or target objects which is related to + the target. + :vartype relations: list[~azure.ai.textanalytics.v3_2_preview_2.models.TargetRelation] + """ + + _validation = { + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'text': {'required': True}, + 'relations': {'required': True}, + } + + _attribute_map = { + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'TargetConfidenceScoreLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'relations': {'key': 'relations', 'type': '[TargetRelation]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword sentiment: Required. Targeted sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TokenSentimentValue + :keyword confidence_scores: Required. Target sentiment confidence scores for the target in the + sentence. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetConfidenceScoreLabel + :keyword offset: Required. The target offset from the start of the sentence. + :paramtype offset: int + :keyword length: Required. The length of the target. + :paramtype length: int + :keyword text: Required. The target text detected. + :paramtype text: str + :keyword relations: Required. The array of either assessment or target objects which is related + to the target. + :paramtype relations: list[~azure.ai.textanalytics.v3_2_preview_2.models.TargetRelation] + """ + super(SentenceTarget, self).__init__(**kwargs) + self.sentiment = kwargs['sentiment'] + self.confidence_scores = kwargs['confidence_scores'] + self.offset = kwargs['offset'] + self.length = kwargs['length'] + self.text = kwargs['text'] + self.relations = kwargs['relations'] + + +class SentimentAnalysisTask(msrest.serialization.Model): + """SentimentAnalysisTask. + + :ivar parameters: + :vartype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentAnalysisTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'SentimentAnalysisTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentAnalysisTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(SentimentAnalysisTask, self).__init__(**kwargs) + self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) + + +class SentimentAnalysisTaskParameters(msrest.serialization.Model): + """SentimentAnalysisTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar opinion_mining: + :vartype opinion_mining: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'opinion_mining': {'key': 'opinionMining', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword opinion_mining: + :paramtype opinion_mining: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(SentimentAnalysisTaskParameters, self).__init__(**kwargs) + self.model_version = kwargs.get('model_version', "latest") + self.logging_opt_out = kwargs.get('logging_opt_out', False) + self.opinion_mining = kwargs.get('opinion_mining', False) + self.string_index_type = kwargs.get('string_index_type', None) + + +class SentimentConfidenceScorePerLabel(msrest.serialization.Model): + """Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative. + + All required parameters must be populated in order to send to Azure. + + :ivar positive: Required. + :vartype positive: float + :ivar neutral: Required. + :vartype neutral: float + :ivar negative: Required. + :vartype negative: float + """ + + _validation = { + 'positive': {'required': True}, + 'neutral': {'required': True}, + 'negative': {'required': True}, + } + + _attribute_map = { + 'positive': {'key': 'positive', 'type': 'float'}, + 'neutral': {'key': 'neutral', 'type': 'float'}, + 'negative': {'key': 'negative', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword neutral: Required. + :paramtype neutral: float + :keyword negative: Required. + :paramtype negative: float + """ + super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) + self.positive = kwargs['positive'] + self.neutral = kwargs['neutral'] + self.negative = kwargs['negative'] + + +class SentimentResponse(msrest.serialization.Model): + """SentimentResponse. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Sentiment analysis per document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentSentiment] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentSentiment]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword documents: Required. Sentiment analysis per document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentSentiment] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(SentimentResponse, self).__init__(**kwargs) + self.documents = kwargs['documents'] + self.errors = kwargs['errors'] + self.statistics = kwargs.get('statistics', None) + self.model_version = kwargs['model_version'] + + +class SentimentTaskResult(msrest.serialization.Model): + """SentimentTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'SentimentResponse'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse + """ + super(SentimentTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + +class SingleClassificationDocument(msrest.serialization.Model): + """SingleClassificationDocument. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar classification: Required. + :vartype classification: ~azure.ai.textanalytics.v3_2_preview_2.models.ClassificationResult + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'classification': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'classification': {'key': 'classification', 'type': 'ClassificationResult'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword classification: Required. + :paramtype classification: ~azure.ai.textanalytics.v3_2_preview_2.models.ClassificationResult + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(SingleClassificationDocument, self).__init__(**kwargs) + self.id = kwargs['id'] + self.classification = kwargs['classification'] + self.warnings = kwargs['warnings'] + self.statistics = kwargs.get('statistics', None) + + +class TargetConfidenceScoreLabel(msrest.serialization.Model): + """Represents the confidence scores across all sentiment classes: positive, neutral, negative. + + All required parameters must be populated in order to send to Azure. + + :ivar positive: Required. + :vartype positive: float + :ivar negative: Required. + :vartype negative: float + """ + + _validation = { + 'positive': {'required': True}, + 'negative': {'required': True}, + } + + _attribute_map = { + 'positive': {'key': 'positive', 'type': 'float'}, + 'negative': {'key': 'negative', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword negative: Required. + :paramtype negative: float + """ + super(TargetConfidenceScoreLabel, self).__init__(**kwargs) + self.positive = kwargs['positive'] + self.negative = kwargs['negative'] + + +class TargetRelation(msrest.serialization.Model): + """TargetRelation. + + All required parameters must be populated in order to send to Azure. + + :ivar relation_type: Required. The type related to the target. Possible values include: + "assessment", "target". + :vartype relation_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TargetRelationType + :ivar ref: Required. The JSON pointer indicating the linked object. + :vartype ref: str + """ + + _validation = { + 'relation_type': {'required': True}, + 'ref': {'required': True}, + } + + _attribute_map = { + 'relation_type': {'key': 'relationType', 'type': 'str'}, + 'ref': {'key': 'ref', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword relation_type: Required. The type related to the target. Possible values include: + "assessment", "target". + :paramtype relation_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetRelationType + :keyword ref: Required. The JSON pointer indicating the linked object. + :paramtype ref: str + """ + super(TargetRelation, self).__init__(**kwargs) + self.relation_type = kwargs['relation_type'] + self.ref = kwargs['ref'] + + +class TasksStateTasks(msrest.serialization.Model): + """TasksStateTasks. + + All required parameters must be populated in order to send to Azure. + + :ivar completed: Required. + :vartype completed: int + :ivar failed: Required. + :vartype failed: int + :ivar in_progress: Required. + :vartype in_progress: int + :ivar total: Required. + :vartype total: int + :ivar entity_recognition_tasks: + :vartype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityRecognitionTasksItem] + :ivar entity_recognition_pii_tasks: + :vartype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityRecognitionPiiTasksItem] + :ivar key_phrase_extraction_tasks: + :vartype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksKeyPhraseExtractionTasksItem] + :ivar entity_linking_tasks: + :vartype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityLinkingTasksItem] + :ivar sentiment_analysis_tasks: + :vartype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksSentimentAnalysisTasksItem] + :ivar extractive_summarization_tasks: + :vartype extractive_summarization_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksExtractiveSummarizationTasksItem] + :ivar custom_entity_recognition_tasks: + :vartype custom_entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomEntityRecognitionTasksItem] + :ivar custom_single_classification_tasks: + :vartype custom_single_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomSingleClassificationTasksItem] + :ivar custom_multi_classification_tasks: + :vartype custom_multi_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomMultiClassificationTasksItem] + """ + + _validation = { + 'completed': {'required': True}, + 'failed': {'required': True}, + 'in_progress': {'required': True}, + 'total': {'required': True}, + } + + _attribute_map = { + 'completed': {'key': 'completed', 'type': 'int'}, + 'failed': {'key': 'failed', 'type': 'int'}, + 'in_progress': {'key': 'inProgress', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'}, + 'entity_recognition_tasks': {'key': 'entityRecognitionTasks', 'type': '[TasksStateTasksEntityRecognitionTasksItem]'}, + 'entity_recognition_pii_tasks': {'key': 'entityRecognitionPiiTasks', 'type': '[TasksStateTasksEntityRecognitionPiiTasksItem]'}, + 'key_phrase_extraction_tasks': {'key': 'keyPhraseExtractionTasks', 'type': '[TasksStateTasksKeyPhraseExtractionTasksItem]'}, + 'entity_linking_tasks': {'key': 'entityLinkingTasks', 'type': '[TasksStateTasksEntityLinkingTasksItem]'}, + 'sentiment_analysis_tasks': {'key': 'sentimentAnalysisTasks', 'type': '[TasksStateTasksSentimentAnalysisTasksItem]'}, + 'extractive_summarization_tasks': {'key': 'extractiveSummarizationTasks', 'type': '[TasksStateTasksExtractiveSummarizationTasksItem]'}, + 'custom_entity_recognition_tasks': {'key': 'customEntityRecognitionTasks', 'type': '[TasksStateTasksCustomEntityRecognitionTasksItem]'}, + 'custom_single_classification_tasks': {'key': 'customSingleClassificationTasks', 'type': '[TasksStateTasksCustomSingleClassificationTasksItem]'}, + 'custom_multi_classification_tasks': {'key': 'customMultiClassificationTasks', 'type': '[TasksStateTasksCustomMultiClassificationTasksItem]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword completed: Required. + :paramtype completed: int + :keyword failed: Required. + :paramtype failed: int + :keyword in_progress: Required. + :paramtype in_progress: int + :keyword total: Required. + :paramtype total: int + :keyword entity_recognition_tasks: + :paramtype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityRecognitionTasksItem] + :keyword entity_recognition_pii_tasks: + :paramtype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityRecognitionPiiTasksItem] + :keyword key_phrase_extraction_tasks: + :paramtype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksKeyPhraseExtractionTasksItem] + :keyword entity_linking_tasks: + :paramtype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityLinkingTasksItem] + :keyword sentiment_analysis_tasks: + :paramtype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksSentimentAnalysisTasksItem] + :keyword extractive_summarization_tasks: + :paramtype extractive_summarization_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksExtractiveSummarizationTasksItem] + :keyword custom_entity_recognition_tasks: + :paramtype custom_entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomEntityRecognitionTasksItem] + :keyword custom_single_classification_tasks: + :paramtype custom_single_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomSingleClassificationTasksItem] + :keyword custom_multi_classification_tasks: + :paramtype custom_multi_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomMultiClassificationTasksItem] + """ + super(TasksStateTasks, self).__init__(**kwargs) + self.completed = kwargs['completed'] + self.failed = kwargs['failed'] + self.in_progress = kwargs['in_progress'] + self.total = kwargs['total'] + self.entity_recognition_tasks = kwargs.get('entity_recognition_tasks', None) + self.entity_recognition_pii_tasks = kwargs.get('entity_recognition_pii_tasks', None) + self.key_phrase_extraction_tasks = kwargs.get('key_phrase_extraction_tasks', None) + self.entity_linking_tasks = kwargs.get('entity_linking_tasks', None) + self.sentiment_analysis_tasks = kwargs.get('sentiment_analysis_tasks', None) + self.extractive_summarization_tasks = kwargs.get('extractive_summarization_tasks', None) + self.custom_entity_recognition_tasks = kwargs.get('custom_entity_recognition_tasks', None) + self.custom_single_classification_tasks = kwargs.get('custom_single_classification_tasks', None) + self.custom_multi_classification_tasks = kwargs.get('custom_multi_classification_tasks', None) + + +class TaskState(msrest.serialization.Model): + """TaskState. + + All required parameters must be populated in order to send to Azure. + + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TaskState, self).__init__(**kwargs) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TasksStateTasksCustomEntityRecognitionTasksItem(TaskState, CustomEntitiesTaskResult): + """TasksStateTasksCustomEntityRecognitionTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomEntitiesResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksCustomEntityRecognitionTasksItem, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TasksStateTasksCustomMultiClassificationTasksItem(TaskState, CustomMultiClassificationTaskResult): + """TasksStateTasksCustomMultiClassificationTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomMultiClassificationResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksCustomMultiClassificationTasksItem, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TasksStateTasksCustomSingleClassificationTasksItem(TaskState, CustomSingleClassificationTaskResult): + """TasksStateTasksCustomSingleClassificationTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomSingleClassificationResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksCustomSingleClassificationTasksItem, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TasksStateTasksEntityLinkingTasksItem(TaskState, EntityLinkingTaskResult): + """TasksStateTasksEntityLinkingTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksEntityLinkingTasksItem, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, PiiTaskResult): + """TasksStateTasksEntityRecognitionPiiTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'PiiResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksEntityRecognitionPiiTasksItem, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TasksStateTasksEntityRecognitionTasksItem(TaskState, EntitiesTaskResult): + """TasksStateTasksEntityRecognitionTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntitiesResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksEntityRecognitionTasksItem, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TasksStateTasksExtractiveSummarizationTasksItem(TaskState, ExtractiveSummarizationTaskResult): + """TasksStateTasksExtractiveSummarizationTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'ExtractiveSummarizationResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksExtractiveSummarizationTasksItem, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, KeyPhraseTaskResult): + """TasksStateTasksKeyPhraseExtractionTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksKeyPhraseExtractionTasksItem, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TasksStateTasksSentimentAnalysisTasksItem(TaskState, SentimentTaskResult): + """TasksStateTasksSentimentAnalysisTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'SentimentResponse'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksSentimentAnalysisTasksItem, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.last_update_date_time = kwargs['last_update_date_time'] + self.task_name = kwargs['task_name'] + self.status = kwargs['status'] + + +class TextAnalyticsError(msrest.serialization.Model): + """TextAnalyticsError. + + All required parameters must be populated in order to send to Azure. + + :ivar code: Required. Error code. Possible values include: "InvalidRequest", "InvalidArgument", + "InternalServerError", "ServiceUnavailable", "NotFound". + :vartype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.ErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_2_preview_2.models.InnerError + :ivar details: Details about specific errors that led to this reported error. + :vartype details: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'innererror': {'key': 'innererror', 'type': 'InnerError'}, + 'details': {'key': 'details', 'type': '[TextAnalyticsError]'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword code: Required. Error code. Possible values include: "InvalidRequest", + "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". + :paramtype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.ErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_2_preview_2.models.InnerError + :keyword details: Details about specific errors that led to this reported error. + :paramtype details: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + """ + super(TextAnalyticsError, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + self.target = kwargs.get('target', None) + self.innererror = kwargs.get('innererror', None) + self.details = kwargs.get('details', None) + + +class TextAnalyticsWarning(msrest.serialization.Model): + """TextAnalyticsWarning. + + All required parameters must be populated in order to send to Azure. + + :ivar code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :vartype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.WarningCodeValue + :ivar message: Required. Warning message. + :vartype message: str + :ivar target_ref: A JSON pointer reference indicating the target object. + :vartype target_ref: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target_ref': {'key': 'targetRef', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + :keyword code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :paramtype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.WarningCodeValue + :keyword message: Required. Warning message. + :paramtype message: str + :keyword target_ref: A JSON pointer reference indicating the target object. + :paramtype target_ref: str + """ + super(TextAnalyticsWarning, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + self.target_ref = kwargs.get('target_ref', None) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/_models_py3.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/_models_py3.py new file mode 100644 index 000000000000..3392037db5bd --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/_models_py3.py @@ -0,0 +1,5312 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +import datetime +from typing import Dict, List, Optional, Union + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + +from ._text_analytics_client_enums import * + + +class AnalysisInput(msrest.serialization.Model): + """AnalysisInput. + + All required parameters must be populated in order to send to Azure. + + :ivar analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :vartype analysis_input: ~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageBatchInput + """ + + _validation = { + 'analysis_input': {'required': True}, + } + + _attribute_map = { + 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, + } + + def __init__( + self, + *, + analysis_input: "MultiLanguageBatchInput", + **kwargs + ): + """ + :keyword analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :paramtype analysis_input: + ~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageBatchInput + """ + super(AnalysisInput, self).__init__(**kwargs) + self.analysis_input = analysis_input + + +class JobManifest(msrest.serialization.Model): + """JobManifest. + + All required parameters must be populated in order to send to Azure. + + :ivar tasks: Required. The set of tasks to execute on the input documents. Cannot specify the + same task more than once. + :vartype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.JobManifestTasks + """ + + _validation = { + 'tasks': {'required': True}, + } + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, + } + + def __init__( + self, + *, + tasks: "JobManifestTasks", + **kwargs + ): + """ + :keyword tasks: Required. The set of tasks to execute on the input documents. Cannot specify + the same task more than once. + :paramtype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.JobManifestTasks + """ + super(JobManifest, self).__init__(**kwargs) + self.tasks = tasks + + +class JobDescriptor(msrest.serialization.Model): + """JobDescriptor. + + :ivar display_name: Optional display name for the analysis job. + :vartype display_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__( + self, + *, + display_name: Optional[str] = None, + **kwargs + ): + """ + :keyword display_name: Optional display name for the analysis job. + :paramtype display_name: str + """ + super(JobDescriptor, self).__init__(**kwargs) + self.display_name = display_name + + +class AnalyzeBatchInput(JobDescriptor, AnalysisInput, JobManifest): + """AnalyzeBatchInput. + + All required parameters must be populated in order to send to Azure. + + :ivar tasks: Required. The set of tasks to execute on the input documents. Cannot specify the + same task more than once. + :vartype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.JobManifestTasks + :ivar analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :vartype analysis_input: ~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageBatchInput + :ivar display_name: Optional display name for the analysis job. + :vartype display_name: str + """ + + _validation = { + 'tasks': {'required': True}, + 'analysis_input': {'required': True}, + } + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, + 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__( + self, + *, + tasks: "JobManifestTasks", + analysis_input: "MultiLanguageBatchInput", + display_name: Optional[str] = None, + **kwargs + ): + """ + :keyword tasks: Required. The set of tasks to execute on the input documents. Cannot specify + the same task more than once. + :paramtype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.JobManifestTasks + :keyword analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :paramtype analysis_input: + ~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageBatchInput + :keyword display_name: Optional display name for the analysis job. + :paramtype display_name: str + """ + super(AnalyzeBatchInput, self).__init__(display_name=display_name, analysis_input=analysis_input, tasks=tasks, **kwargs) + self.tasks = tasks + self.analysis_input = analysis_input + self.tasks = tasks + self.display_name = display_name + self.analysis_input = analysis_input + self.display_name = display_name + + +class AnalyzeJobDisplayName(msrest.serialization.Model): + """AnalyzeJobDisplayName. + + :ivar display_name: + :vartype display_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__( + self, + *, + display_name: Optional[str] = None, + **kwargs + ): + """ + :keyword display_name: + :paramtype display_name: str + """ + super(AnalyzeJobDisplayName, self).__init__(**kwargs) + self.display_name = display_name + + +class AnalyzeJobErrorsAndStatistics(msrest.serialization.Model): + """AnalyzeJobErrorsAndStatistics. + + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + } + + def __init__( + self, + *, + errors: Optional[List["TextAnalyticsError"]] = None, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + """ + super(AnalyzeJobErrorsAndStatistics, self).__init__(**kwargs) + self.errors = errors + self.statistics = statistics + + +class JobMetadata(msrest.serialization.Model): + """JobMetadata. + + All required parameters must be populated in order to send to Azure. + + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'created_date_time': {'required': True}, + 'job_id': {'required': True}, + 'last_update_date_time': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + created_date_time: datetime.datetime, + job_id: str, + last_update_date_time: datetime.datetime, + status: Union[str, "State"], + expiration_date_time: Optional[datetime.datetime] = None, + **kwargs + ): + """ + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(JobMetadata, self).__init__(**kwargs) + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status + + +class AnalyzeJobMetadata(JobMetadata, AnalyzeJobDisplayName): + """AnalyzeJobMetadata. + + All required parameters must be populated in order to send to Azure. + + :ivar display_name: + :vartype display_name: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'created_date_time': {'required': True}, + 'job_id': {'required': True}, + 'last_update_date_time': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + created_date_time: datetime.datetime, + job_id: str, + last_update_date_time: datetime.datetime, + status: Union[str, "State"], + display_name: Optional[str] = None, + expiration_date_time: Optional[datetime.datetime] = None, + **kwargs + ): + """ + :keyword display_name: + :paramtype display_name: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(AnalyzeJobMetadata, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, display_name=display_name, **kwargs) + self.display_name = display_name + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status + + +class Pagination(msrest.serialization.Model): + """Pagination. + + :ivar next_link: + :vartype next_link: str + """ + + _attribute_map = { + 'next_link': {'key': '@nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + """ + :keyword next_link: + :paramtype next_link: str + """ + super(Pagination, self).__init__(**kwargs) + self.next_link = next_link + + +class TasksState(msrest.serialization.Model): + """TasksState. + + All required parameters must be populated in order to send to Azure. + + :ivar tasks: Required. + :vartype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasks + """ + + _validation = { + 'tasks': {'required': True}, + } + + _attribute_map = { + 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, + } + + def __init__( + self, + *, + tasks: "TasksStateTasks", + **kwargs + ): + """ + :keyword tasks: Required. + :paramtype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasks + """ + super(TasksState, self).__init__(**kwargs) + self.tasks = tasks + + +class AnalyzeJobState(AnalyzeJobMetadata, TasksState, AnalyzeJobErrorsAndStatistics, Pagination): + """AnalyzeJobState. + + All required parameters must be populated in order to send to Azure. + + :ivar next_link: + :vartype next_link: str + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar tasks: Required. + :vartype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasks + :ivar display_name: + :vartype display_name: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'tasks': {'required': True}, + 'created_date_time': {'required': True}, + 'job_id': {'required': True}, + 'last_update_date_time': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': '@nextLink', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + tasks: "TasksStateTasks", + created_date_time: datetime.datetime, + job_id: str, + last_update_date_time: datetime.datetime, + status: Union[str, "State"], + next_link: Optional[str] = None, + errors: Optional[List["TextAnalyticsError"]] = None, + statistics: Optional["RequestStatistics"] = None, + display_name: Optional[str] = None, + expiration_date_time: Optional[datetime.datetime] = None, + **kwargs + ): + """ + :keyword next_link: + :paramtype next_link: str + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword tasks: Required. + :paramtype tasks: ~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasks + :keyword display_name: + :paramtype display_name: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(AnalyzeJobState, self).__init__(display_name=display_name, created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, tasks=tasks, errors=errors, statistics=statistics, next_link=next_link, **kwargs) + self.next_link = next_link + self.errors = errors + self.statistics = statistics + self.tasks = tasks + self.next_link = next_link + self.errors = errors + self.statistics = statistics + self.display_name = display_name + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status + self.next_link = next_link + self.tasks = tasks + self.display_name = display_name + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status + self.errors = errors + self.statistics = statistics + self.tasks = tasks + self.display_name = display_name + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status + + +class ClassificationResult(msrest.serialization.Model): + """ClassificationResult. + + All required parameters must be populated in order to send to Azure. + + :ivar category: Required. Classification type. + :vartype category: str + :ivar confidence_score: Required. Confidence score between 0 and 1 of the recognized + classification. + :vartype confidence_score: float + """ + + _validation = { + 'category': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'category': {'key': 'category', 'type': 'str'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + *, + category: str, + confidence_score: float, + **kwargs + ): + """ + :keyword category: Required. Classification type. + :paramtype category: str + :keyword confidence_score: Required. Confidence score between 0 and 1 of the recognized + classification. + :paramtype confidence_score: float + """ + super(ClassificationResult, self).__init__(**kwargs) + self.category = category + self.confidence_score = confidence_score + + +class CustomEntitiesResult(msrest.serialization.Model): + """CustomEntitiesResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar project_name: Required. This field indicates the project name for the model. + :vartype project_name: str + :ivar deployment_name: Required. This field indicates the deployment name for the model. + :vartype deployment_name: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentEntities"], + errors: List["DocumentError"], + project_name: str, + deployment_name: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword project_name: Required. This field indicates the project name for the model. + :paramtype project_name: str + :keyword deployment_name: Required. This field indicates the deployment name for the model. + :paramtype deployment_name: str + """ + super(CustomEntitiesResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.project_name = project_name + self.deployment_name = deployment_name + + +class CustomEntitiesTask(msrest.serialization.Model): + """CustomEntitiesTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'CustomEntitiesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + *, + parameters: Optional["CustomEntitiesTaskParameters"] = None, + task_name: Optional[str] = None, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(CustomEntitiesTask, self).__init__(**kwargs) + self.parameters = parameters + self.task_name = task_name + + +class CustomEntitiesTaskParameters(msrest.serialization.Model): + """CustomEntitiesTaskParameters. + + All required parameters must be populated in order to send to Azure. + + :ivar project_name: Required. + :vartype project_name: str + :ivar deployment_name: Required. + :vartype deployment_name: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _validation = { + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'project_name': {'key': 'project-name', 'type': 'str'}, + 'deployment_name': {'key': 'deployment-name', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + *, + project_name: str, + deployment_name: str, + logging_opt_out: Optional[bool] = False, + string_index_type: Optional[Union[str, "StringIndexType"]] = None, + **kwargs + ): + """ + :keyword project_name: Required. + :paramtype project_name: str + :keyword deployment_name: Required. + :paramtype deployment_name: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(CustomEntitiesTaskParameters, self).__init__(**kwargs) + self.project_name = project_name + self.deployment_name = deployment_name + self.logging_opt_out = logging_opt_out + self.string_index_type = string_index_type + + +class CustomEntitiesTaskResult(msrest.serialization.Model): + """CustomEntitiesTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomEntitiesResult'}, + } + + def __init__( + self, + *, + results: Optional["CustomEntitiesResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesResult + """ + super(CustomEntitiesTaskResult, self).__init__(**kwargs) + self.results = results + + +class CustomMultiClassificationResult(msrest.serialization.Model): + """CustomMultiClassificationResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiClassificationDocument] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar project_name: Required. This field indicates the project name for the model. + :vartype project_name: str + :ivar deployment_name: Required. This field indicates the deployment name for the model. + :vartype deployment_name: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[MultiClassificationDocument]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["MultiClassificationDocument"], + errors: List["DocumentError"], + project_name: str, + deployment_name: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiClassificationDocument] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword project_name: Required. This field indicates the project name for the model. + :paramtype project_name: str + :keyword deployment_name: Required. This field indicates the deployment name for the model. + :paramtype deployment_name: str + """ + super(CustomMultiClassificationResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.project_name = project_name + self.deployment_name = deployment_name + + +class CustomMultiClassificationTask(msrest.serialization.Model): + """CustomMultiClassificationTask. + + :ivar parameters: + :vartype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'CustomMultiClassificationTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + *, + parameters: Optional["CustomMultiClassificationTaskParameters"] = None, + task_name: Optional[str] = None, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(CustomMultiClassificationTask, self).__init__(**kwargs) + self.parameters = parameters + self.task_name = task_name + + +class CustomMultiClassificationTaskParameters(msrest.serialization.Model): + """CustomMultiClassificationTaskParameters. + + All required parameters must be populated in order to send to Azure. + + :ivar project_name: Required. + :vartype project_name: str + :ivar deployment_name: Required. + :vartype deployment_name: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + """ + + _validation = { + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'project_name': {'key': 'project-name', 'type': 'str'}, + 'deployment_name': {'key': 'deployment-name', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + } + + def __init__( + self, + *, + project_name: str, + deployment_name: str, + logging_opt_out: Optional[bool] = False, + **kwargs + ): + """ + :keyword project_name: Required. + :paramtype project_name: str + :keyword deployment_name: Required. + :paramtype deployment_name: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + """ + super(CustomMultiClassificationTaskParameters, self).__init__(**kwargs) + self.project_name = project_name + self.deployment_name = deployment_name + self.logging_opt_out = logging_opt_out + + +class CustomMultiClassificationTaskResult(msrest.serialization.Model): + """CustomMultiClassificationTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomMultiClassificationResult'}, + } + + def __init__( + self, + *, + results: Optional["CustomMultiClassificationResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationResult + """ + super(CustomMultiClassificationTaskResult, self).__init__(**kwargs) + self.results = results + + +class CustomSingleClassificationResult(msrest.serialization.Model): + """CustomSingleClassificationResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.SingleClassificationDocument] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar project_name: Required. This field indicates the project name for the model. + :vartype project_name: str + :ivar deployment_name: Required. This field indicates the deployment name for the model. + :vartype deployment_name: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[SingleClassificationDocument]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'project_name': {'key': 'projectName', 'type': 'str'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["SingleClassificationDocument"], + errors: List["DocumentError"], + project_name: str, + deployment_name: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.SingleClassificationDocument] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword project_name: Required. This field indicates the project name for the model. + :paramtype project_name: str + :keyword deployment_name: Required. This field indicates the deployment name for the model. + :paramtype deployment_name: str + """ + super(CustomSingleClassificationResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.project_name = project_name + self.deployment_name = deployment_name + + +class CustomSingleClassificationTask(msrest.serialization.Model): + """CustomSingleClassificationTask. + + :ivar parameters: + :vartype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'CustomSingleClassificationTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + *, + parameters: Optional["CustomSingleClassificationTaskParameters"] = None, + task_name: Optional[str] = None, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(CustomSingleClassificationTask, self).__init__(**kwargs) + self.parameters = parameters + self.task_name = task_name + + +class CustomSingleClassificationTaskParameters(msrest.serialization.Model): + """CustomSingleClassificationTaskParameters. + + All required parameters must be populated in order to send to Azure. + + :ivar project_name: Required. + :vartype project_name: str + :ivar deployment_name: Required. + :vartype deployment_name: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + """ + + _validation = { + 'project_name': {'required': True}, + 'deployment_name': {'required': True}, + } + + _attribute_map = { + 'project_name': {'key': 'project-name', 'type': 'str'}, + 'deployment_name': {'key': 'deployment-name', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + } + + def __init__( + self, + *, + project_name: str, + deployment_name: str, + logging_opt_out: Optional[bool] = False, + **kwargs + ): + """ + :keyword project_name: Required. + :paramtype project_name: str + :keyword deployment_name: Required. + :paramtype deployment_name: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + """ + super(CustomSingleClassificationTaskParameters, self).__init__(**kwargs) + self.project_name = project_name + self.deployment_name = deployment_name + self.logging_opt_out = logging_opt_out + + +class CustomSingleClassificationTaskResult(msrest.serialization.Model): + """CustomSingleClassificationTaskResult. + + :ivar results: + :vartype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomSingleClassificationResult'}, + } + + def __init__( + self, + *, + results: Optional["CustomSingleClassificationResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationResult + """ + super(CustomSingleClassificationTaskResult, self).__init__(**kwargs) + self.results = results + + +class DetectedLanguage(msrest.serialization.Model): + """DetectedLanguage. + + All required parameters must be populated in order to send to Azure. + + :ivar name: Required. Long name of a detected language (e.g. English, French). + :vartype name: str + :ivar iso6391_name: Required. A two letter representation of the detected language according to + the ISO 639-1 standard (e.g. en, fr). + :vartype iso6391_name: str + :ivar confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :vartype confidence_score: float + """ + + _validation = { + 'name': {'required': True}, + 'iso6391_name': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'iso6391_name': {'key': 'iso6391Name', 'type': 'str'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + *, + name: str, + iso6391_name: str, + confidence_score: float, + **kwargs + ): + """ + :keyword name: Required. Long name of a detected language (e.g. English, French). + :paramtype name: str + :keyword iso6391_name: Required. A two letter representation of the detected language according + to the ISO 639-1 standard (e.g. en, fr). + :paramtype iso6391_name: str + :keyword confidence_score: Required. A confidence score between 0 and 1. Scores close to 1 + indicate 100% certainty that the identified language is true. + :paramtype confidence_score: float + """ + super(DetectedLanguage, self).__init__(**kwargs) + self.name = name + self.iso6391_name = iso6391_name + self.confidence_score = confidence_score + + +class DocumentEntities(msrest.serialization.Model): + """DocumentEntities. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[Entity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + entities: List["Entity"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentEntities, self).__init__(**kwargs) + self.id = id + self.entities = entities + self.warnings = warnings + self.statistics = statistics + + +class DocumentError(msrest.serialization.Model): + """DocumentError. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Document Id. + :vartype id: str + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError + """ + + _validation = { + 'id': {'required': True}, + 'error': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, + } + + def __init__( + self, + *, + id: str, + error: "TextAnalyticsError", + **kwargs + ): + """ + :keyword id: Required. Document Id. + :paramtype id: str + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError + """ + super(DocumentError, self).__init__(**kwargs) + self.id = id + self.error = error + + +class DocumentHealthcareEntities(msrest.serialization.Model): + """DocumentHealthcareEntities. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Healthcare entities. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntity] + :ivar relations: Required. Healthcare entity relations. + :vartype relations: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareRelation] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'relations': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[HealthcareEntity]'}, + 'relations': {'key': 'relations', 'type': '[HealthcareRelation]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + entities: List["HealthcareEntity"], + relations: List["HealthcareRelation"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Healthcare entities. + :paramtype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntity] + :keyword relations: Required. Healthcare entity relations. + :paramtype relations: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareRelation] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentHealthcareEntities, self).__init__(**kwargs) + self.id = id + self.entities = entities + self.relations = relations + self.warnings = warnings + self.statistics = statistics + + +class DocumentKeyPhrases(msrest.serialization.Model): + """DocumentKeyPhrases. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :vartype key_phrases: list[str] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'key_phrases': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'key_phrases': {'key': 'keyPhrases', 'type': '[str]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + key_phrases: List[str], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword key_phrases: Required. A list of representative words or phrases. The number of key + phrases returned is proportional to the number of words in the input document. + :paramtype key_phrases: list[str] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentKeyPhrases, self).__init__(**kwargs) + self.id = id + self.key_phrases = key_phrases + self.warnings = warnings + self.statistics = statistics + + +class DocumentLanguage(msrest.serialization.Model): + """DocumentLanguage. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar detected_language: Required. Detected Language. + :vartype detected_language: ~azure.ai.textanalytics.v3_2_preview_2.models.DetectedLanguage + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'detected_language': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'detected_language': {'key': 'detectedLanguage', 'type': 'DetectedLanguage'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + detected_language: "DetectedLanguage", + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword detected_language: Required. Detected Language. + :paramtype detected_language: ~azure.ai.textanalytics.v3_2_preview_2.models.DetectedLanguage + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentLanguage, self).__init__(**kwargs) + self.id = id + self.detected_language = detected_language + self.warnings = warnings + self.statistics = statistics + + +class DocumentLinkedEntities(msrest.serialization.Model): + """DocumentLinkedEntities. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar entities: Required. Recognized well known entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.LinkedEntity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[LinkedEntity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + entities: List["LinkedEntity"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword entities: Required. Recognized well known entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.LinkedEntity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(DocumentLinkedEntities, self).__init__(**kwargs) + self.id = id + self.entities = entities + self.warnings = warnings + self.statistics = statistics + + +class DocumentSentiment(msrest.serialization.Model): + """DocumentSentiment. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :vartype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentSentimentValue + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + :ivar confidence_scores: Required. Document level sentiment confidence scores between 0 and 1 + for each sentiment class. + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentConfidenceScorePerLabel + :ivar sentences: Required. Sentence level sentiment analysis. + :vartype sentences: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceSentiment] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + """ + + _validation = { + 'id': {'required': True}, + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'sentences': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, + 'sentences': {'key': 'sentences', 'type': '[SentenceSentiment]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + } + + def __init__( + self, + *, + id: str, + sentiment: Union[str, "DocumentSentimentValue"], + confidence_scores: "SentimentConfidenceScorePerLabel", + sentences: List["SentenceSentiment"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword sentiment: Required. Predicted sentiment for document (Negative, Neutral, Positive, or + Mixed). Possible values include: "positive", "neutral", "negative", "mixed". + :paramtype sentiment: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentSentimentValue + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + :keyword confidence_scores: Required. Document level sentiment confidence scores between 0 and + 1 for each sentiment class. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentConfidenceScorePerLabel + :keyword sentences: Required. Sentence level sentiment analysis. + :paramtype sentences: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceSentiment] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + """ + super(DocumentSentiment, self).__init__(**kwargs) + self.id = id + self.sentiment = sentiment + self.statistics = statistics + self.confidence_scores = confidence_scores + self.sentences = sentences + self.warnings = warnings + + +class DocumentStatistics(msrest.serialization.Model): + """if showStats=true was specified in the request this field will contain information about the document payload. + + All required parameters must be populated in order to send to Azure. + + :ivar characters_count: Required. Number of text elements recognized in the document. + :vartype characters_count: int + :ivar transactions_count: Required. Number of transactions for the document. + :vartype transactions_count: int + """ + + _validation = { + 'characters_count': {'required': True}, + 'transactions_count': {'required': True}, + } + + _attribute_map = { + 'characters_count': {'key': 'charactersCount', 'type': 'int'}, + 'transactions_count': {'key': 'transactionsCount', 'type': 'int'}, + } + + def __init__( + self, + *, + characters_count: int, + transactions_count: int, + **kwargs + ): + """ + :keyword characters_count: Required. Number of text elements recognized in the document. + :paramtype characters_count: int + :keyword transactions_count: Required. Number of transactions for the document. + :paramtype transactions_count: int + """ + super(DocumentStatistics, self).__init__(**kwargs) + self.characters_count = characters_count + self.transactions_count = transactions_count + + +class EntitiesResult(msrest.serialization.Model): + """EntitiesResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentEntities"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(EntitiesResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class EntitiesTask(msrest.serialization.Model): + """EntitiesTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'EntitiesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + *, + parameters: Optional["EntitiesTaskParameters"] = None, + task_name: Optional[str] = None, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(EntitiesTask, self).__init__(**kwargs) + self.parameters = parameters + self.task_name = task_name + + +class EntitiesTaskParameters(msrest.serialization.Model): + """EntitiesTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + *, + model_version: Optional[str] = "latest", + logging_opt_out: Optional[bool] = False, + string_index_type: Optional[Union[str, "StringIndexType"]] = None, + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(EntitiesTaskParameters, self).__init__(**kwargs) + self.model_version = model_version + self.logging_opt_out = logging_opt_out + self.string_index_type = string_index_type + + +class EntitiesTaskResult(msrest.serialization.Model): + """EntitiesTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntitiesResult'}, + } + + def __init__( + self, + *, + results: Optional["EntitiesResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult + """ + super(EntitiesTaskResult, self).__init__(**kwargs) + self.results = results + + +class Entity(msrest.serialization.Model): + """Entity. + + All required parameters must be populated in order to send to Azure. + + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Entity type. + :vartype category: str + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' + values can affect the offset returned. + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values + can affect the length returned. + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float + """ + + _validation = { + 'text': {'required': True}, + 'category': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'subcategory': {'key': 'subcategory', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + *, + text: str, + category: str, + offset: int, + length: int, + confidence_score: float, + subcategory: Optional[str] = None, + **kwargs + ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Entity type. + :paramtype category: str + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ + super(Entity, self).__init__(**kwargs) + self.text = text + self.category = category + self.subcategory = subcategory + self.offset = offset + self.length = length + self.confidence_score = confidence_score + + +class EntityLinkingResult(msrest.serialization.Model): + """EntityLinkingResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentLinkedEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentLinkedEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentLinkedEntities"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentLinkedEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(EntityLinkingResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class EntityLinkingTask(msrest.serialization.Model): + """EntityLinkingTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'EntityLinkingTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + *, + parameters: Optional["EntityLinkingTaskParameters"] = None, + task_name: Optional[str] = None, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(EntityLinkingTask, self).__init__(**kwargs) + self.parameters = parameters + self.task_name = task_name + + +class EntityLinkingTaskParameters(msrest.serialization.Model): + """EntityLinkingTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + *, + model_version: Optional[str] = "latest", + logging_opt_out: Optional[bool] = False, + string_index_type: Optional[Union[str, "StringIndexType"]] = None, + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(EntityLinkingTaskParameters, self).__init__(**kwargs) + self.model_version = model_version + self.logging_opt_out = logging_opt_out + self.string_index_type = string_index_type + + +class EntityLinkingTaskResult(msrest.serialization.Model): + """EntityLinkingTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, + } + + def __init__( + self, + *, + results: Optional["EntityLinkingResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult + """ + super(EntityLinkingTaskResult, self).__init__(**kwargs) + self.results = results + + +class ErrorResponse(msrest.serialization.Model): + """ErrorResponse. + + All required parameters must be populated in order to send to Azure. + + :ivar error: Required. Document Error. + :vartype error: ~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError + """ + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'TextAnalyticsError'}, + } + + def __init__( + self, + *, + error: "TextAnalyticsError", + **kwargs + ): + """ + :keyword error: Required. Document Error. + :paramtype error: ~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError + """ + super(ErrorResponse, self).__init__(**kwargs) + self.error = error + + +class ExtractedDocumentSummary(msrest.serialization.Model): + """ExtractedDocumentSummary. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar sentences: Required. A ranked list of sentences representing the extracted summary. + :vartype sentences: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractedSummarySentence] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'sentences': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'sentences': {'key': 'sentences', 'type': '[ExtractedSummarySentence]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + sentences: List["ExtractedSummarySentence"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword sentences: Required. A ranked list of sentences representing the extracted summary. + :paramtype sentences: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractedSummarySentence] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(ExtractedDocumentSummary, self).__init__(**kwargs) + self.id = id + self.sentences = sentences + self.warnings = warnings + self.statistics = statistics + + +class ExtractedSummarySentence(msrest.serialization.Model): + """ExtractedSummarySentence. + + All required parameters must be populated in order to send to Azure. + + :ivar text: Required. The extracted sentence text. + :vartype text: str + :ivar rank_score: Required. A double value representing the relevance of the sentence within + the summary. Higher values indicate higher importance. + :vartype rank_score: float + :ivar offset: Required. The sentence offset from the start of the document, based on the value + of the parameter StringIndexType. + :vartype offset: int + :ivar length: Required. The length of the sentence. + :vartype length: int + """ + + _validation = { + 'text': {'required': True}, + 'rank_score': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'rank_score': {'key': 'rankScore', 'type': 'float'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + } + + def __init__( + self, + *, + text: str, + rank_score: float, + offset: int, + length: int, + **kwargs + ): + """ + :keyword text: Required. The extracted sentence text. + :paramtype text: str + :keyword rank_score: Required. A double value representing the relevance of the sentence within + the summary. Higher values indicate higher importance. + :paramtype rank_score: float + :keyword offset: Required. The sentence offset from the start of the document, based on the + value of the parameter StringIndexType. + :paramtype offset: int + :keyword length: Required. The length of the sentence. + :paramtype length: int + """ + super(ExtractedSummarySentence, self).__init__(**kwargs) + self.text = text + self.rank_score = rank_score + self.offset = offset + self.length = length + + +class ExtractiveSummarizationResult(msrest.serialization.Model): + """ExtractiveSummarizationResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractedDocumentSummary] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[ExtractedDocumentSummary]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["ExtractedDocumentSummary"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractedDocumentSummary] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(ExtractiveSummarizationResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class ExtractiveSummarizationTask(msrest.serialization.Model): + """ExtractiveSummarizationTask. + + :ivar parameters: + :vartype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'ExtractiveSummarizationTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + *, + parameters: Optional["ExtractiveSummarizationTaskParameters"] = None, + task_name: Optional[str] = None, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(ExtractiveSummarizationTask, self).__init__(**kwargs) + self.parameters = parameters + self.task_name = task_name + + +class ExtractiveSummarizationTaskParameters(msrest.serialization.Model): + """ExtractiveSummarizationTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + :ivar sentence_count: + :vartype sentence_count: int + :ivar sort_by: Possible values include: "Offset", "Rank". Default value: "Offset". + :vartype sort_by: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTaskParametersSortBy + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + 'sentence_count': {'key': 'sentenceCount', 'type': 'int'}, + 'sort_by': {'key': 'sortBy', 'type': 'str'}, + } + + def __init__( + self, + *, + model_version: Optional[str] = "latest", + logging_opt_out: Optional[bool] = False, + string_index_type: Optional[Union[str, "StringIndexType"]] = None, + sentence_count: Optional[int] = 3, + sort_by: Optional[Union[str, "ExtractiveSummarizationTaskParametersSortBy"]] = "Offset", + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + :keyword sentence_count: + :paramtype sentence_count: int + :keyword sort_by: Possible values include: "Offset", "Rank". Default value: "Offset". + :paramtype sort_by: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTaskParametersSortBy + """ + super(ExtractiveSummarizationTaskParameters, self).__init__(**kwargs) + self.model_version = model_version + self.logging_opt_out = logging_opt_out + self.string_index_type = string_index_type + self.sentence_count = sentence_count + self.sort_by = sort_by + + +class ExtractiveSummarizationTaskResult(msrest.serialization.Model): + """ExtractiveSummarizationTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'ExtractiveSummarizationResult'}, + } + + def __init__( + self, + *, + results: Optional["ExtractiveSummarizationResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationResult + """ + super(ExtractiveSummarizationTaskResult, self).__init__(**kwargs) + self.results = results + + +class HealthcareAssertion(msrest.serialization.Model): + """HealthcareAssertion. + + :ivar conditionality: Describes any conditionality on the entity. Possible values include: + "hypothetical", "conditional". + :vartype conditionality: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Conditionality + :ivar certainty: Describes the entities certainty and polarity. Possible values include: + "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". + :vartype certainty: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Certainty + :ivar association: Describes if the entity is the subject of the text or if it describes + someone else. Possible values include: "subject", "other". + :vartype association: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Association + """ + + _attribute_map = { + 'conditionality': {'key': 'conditionality', 'type': 'str'}, + 'certainty': {'key': 'certainty', 'type': 'str'}, + 'association': {'key': 'association', 'type': 'str'}, + } + + def __init__( + self, + *, + conditionality: Optional[Union[str, "Conditionality"]] = None, + certainty: Optional[Union[str, "Certainty"]] = None, + association: Optional[Union[str, "Association"]] = None, + **kwargs + ): + """ + :keyword conditionality: Describes any conditionality on the entity. Possible values include: + "hypothetical", "conditional". + :paramtype conditionality: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Conditionality + :keyword certainty: Describes the entities certainty and polarity. Possible values include: + "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". + :paramtype certainty: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Certainty + :keyword association: Describes if the entity is the subject of the text or if it describes + someone else. Possible values include: "subject", "other". + :paramtype association: str or ~azure.ai.textanalytics.v3_2_preview_2.models.Association + """ + super(HealthcareAssertion, self).__init__(**kwargs) + self.conditionality = conditionality + self.certainty = certainty + self.association = association + + +class HealthcareLinkingProperties(msrest.serialization.Model): + """HealthcareLinkingProperties. + + :ivar assertion: + :vartype assertion: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareAssertion + :ivar name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :vartype name: str + :ivar links: Entity references in known data sources. + :vartype links: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityLink] + """ + + _attribute_map = { + 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, + 'name': {'key': 'name', 'type': 'str'}, + 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, + } + + def __init__( + self, + *, + assertion: Optional["HealthcareAssertion"] = None, + name: Optional[str] = None, + links: Optional[List["HealthcareEntityLink"]] = None, + **kwargs + ): + """ + :keyword assertion: + :paramtype assertion: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareAssertion + :keyword name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :paramtype name: str + :keyword links: Entity references in known data sources. + :paramtype links: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityLink] + """ + super(HealthcareLinkingProperties, self).__init__(**kwargs) + self.assertion = assertion + self.name = name + self.links = links + + +class HealthcareEntityProperties(msrest.serialization.Model): + """HealthcareEntityProperties. + + All required parameters must be populated in order to send to Azure. + + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :vartype category: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityCategory + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' + values can affect the offset returned. + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values + can affect the length returned. + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float + """ + + _validation = { + 'text': {'required': True}, + 'category': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'subcategory': {'key': 'subcategory', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + *, + text: str, + category: Union[str, "HealthcareEntityCategory"], + offset: int, + length: int, + confidence_score: float, + subcategory: Optional[str] = None, + **kwargs + ): + """ + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :paramtype category: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityCategory + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ + super(HealthcareEntityProperties, self).__init__(**kwargs) + self.text = text + self.category = category + self.subcategory = subcategory + self.offset = offset + self.length = length + self.confidence_score = confidence_score + + +class HealthcareEntity(HealthcareEntityProperties, HealthcareLinkingProperties): + """HealthcareEntity. + + All required parameters must be populated in order to send to Azure. + + :ivar assertion: + :vartype assertion: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareAssertion + :ivar name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :vartype name: str + :ivar links: Entity references in known data sources. + :vartype links: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityLink] + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :vartype category: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityCategory + :ivar subcategory: (Optional) Entity sub type. + :vartype subcategory: str + :ivar offset: Required. Start position for the entity text. Use of different 'stringIndexType' + values can affect the offset returned. + :vartype offset: int + :ivar length: Required. Length for the entity text. Use of different 'stringIndexType' values + can affect the length returned. + :vartype length: int + :ivar confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :vartype confidence_score: float + """ + + _validation = { + 'text': {'required': True}, + 'category': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'confidence_score': {'required': True}, + } + + _attribute_map = { + 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, + 'name': {'key': 'name', 'type': 'str'}, + 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, + 'text': {'key': 'text', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'subcategory': {'key': 'subcategory', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + } + + def __init__( + self, + *, + text: str, + category: Union[str, "HealthcareEntityCategory"], + offset: int, + length: int, + confidence_score: float, + assertion: Optional["HealthcareAssertion"] = None, + name: Optional[str] = None, + links: Optional[List["HealthcareEntityLink"]] = None, + subcategory: Optional[str] = None, + **kwargs + ): + """ + :keyword assertion: + :paramtype assertion: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareAssertion + :keyword name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :paramtype name: str + :keyword links: Entity references in known data sources. + :paramtype links: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityLink] + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :paramtype category: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareEntityCategory + :keyword subcategory: (Optional) Entity sub type. + :paramtype subcategory: str + :keyword offset: Required. Start position for the entity text. Use of different + 'stringIndexType' values can affect the offset returned. + :paramtype offset: int + :keyword length: Required. Length for the entity text. Use of different 'stringIndexType' + values can affect the length returned. + :paramtype length: int + :keyword confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :paramtype confidence_score: float + """ + super(HealthcareEntity, self).__init__(text=text, category=category, subcategory=subcategory, offset=offset, length=length, confidence_score=confidence_score, assertion=assertion, name=name, links=links, **kwargs) + self.assertion = assertion + self.name = name + self.links = links + self.text = text + self.category = category + self.subcategory = subcategory + self.offset = offset + self.length = length + self.confidence_score = confidence_score + + +class HealthcareEntityLink(msrest.serialization.Model): + """HealthcareEntityLink. + + All required parameters must be populated in order to send to Azure. + + :ivar data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + :vartype data_source: str + :ivar id: Required. Entity id in the given source catalog. + :vartype id: str + """ + + _validation = { + 'data_source': {'required': True}, + 'id': {'required': True}, + } + + _attribute_map = { + 'data_source': {'key': 'dataSource', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + *, + data_source: str, + id: str, + **kwargs + ): + """ + :keyword data_source: Required. Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + :paramtype data_source: str + :keyword id: Required. Entity id in the given source catalog. + :paramtype id: str + """ + super(HealthcareEntityLink, self).__init__(**kwargs) + self.data_source = data_source + self.id = id + + +class HealthcareTaskResult(msrest.serialization.Model): + """HealthcareTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareResult + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'HealthcareResult'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + } + + def __init__( + self, + *, + results: Optional["HealthcareResult"] = None, + errors: Optional[List["TextAnalyticsError"]] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareResult + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + """ + super(HealthcareTaskResult, self).__init__(**kwargs) + self.results = results + self.errors = errors + + +class HealthcareJobState(JobMetadata, Pagination, HealthcareTaskResult): + """HealthcareJobState. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareResult + :ivar errors: + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :ivar next_link: + :vartype next_link: str + :ivar created_date_time: Required. + :vartype created_date_time: ~datetime.datetime + :ivar expiration_date_time: + :vartype expiration_date_time: ~datetime.datetime + :ivar job_id: Required. + :vartype job_id: str + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'created_date_time': {'required': True}, + 'job_id': {'required': True}, + 'last_update_date_time': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'HealthcareResult'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'next_link': {'key': '@nextLink', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, + 'job_id': {'key': 'jobId', 'type': 'str'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + created_date_time: datetime.datetime, + job_id: str, + last_update_date_time: datetime.datetime, + status: Union[str, "State"], + results: Optional["HealthcareResult"] = None, + errors: Optional[List["TextAnalyticsError"]] = None, + next_link: Optional[str] = None, + expiration_date_time: Optional[datetime.datetime] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareResult + :keyword errors: + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + :keyword next_link: + :paramtype next_link: str + :keyword created_date_time: Required. + :paramtype created_date_time: ~datetime.datetime + :keyword expiration_date_time: + :paramtype expiration_date_time: ~datetime.datetime + :keyword job_id: Required. + :paramtype job_id: str + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(HealthcareJobState, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, next_link=next_link, results=results, errors=errors, **kwargs) + self.results = results + self.errors = errors + self.next_link = next_link + self.results = results + self.errors = errors + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status + self.next_link = next_link + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status + + +class HealthcareRelation(msrest.serialization.Model): + """Every relation is an entity graph of a certain relationType, where all entities are connected and have specific roles within the relation context. + + All required parameters must be populated in order to send to Azure. + + :ivar relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or + 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", + "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", + "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", + "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", + "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", + "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". + :vartype relation_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.RelationType + :ivar entities: Required. The entities in the relation. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareRelationEntity] + """ + + _validation = { + 'relation_type': {'required': True}, + 'entities': {'required': True}, + } + + _attribute_map = { + 'relation_type': {'key': 'relationType', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[HealthcareRelationEntity]'}, + } + + def __init__( + self, + *, + relation_type: Union[str, "RelationType"], + entities: List["HealthcareRelationEntity"], + **kwargs + ): + """ + :keyword relation_type: Required. Type of relation. Examples include: ``DosageOfMedication`` or + 'FrequencyOfMedication', etc. Possible values include: "Abbreviation", + "DirectionOfBodyStructure", "DirectionOfCondition", "DirectionOfExamination", + "DirectionOfTreatment", "DosageOfMedication", "FormOfMedication", "FrequencyOfMedication", + "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", + "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", + "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". + :paramtype relation_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.RelationType + :keyword entities: Required. The entities in the relation. + :paramtype entities: + list[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareRelationEntity] + """ + super(HealthcareRelation, self).__init__(**kwargs) + self.relation_type = relation_type + self.entities = entities + + +class HealthcareRelationEntity(msrest.serialization.Model): + """HealthcareRelationEntity. + + All required parameters must be populated in order to send to Azure. + + :ivar ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment + Identifier Representation), pointing to the entity . + :vartype ref: str + :ivar role: Required. Role of entity in the relationship. For example: 'CD20-positive diffuse + large B-cell lymphoma' has the following entities with their roles in parenthesis: CD20 + (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). + :vartype role: str + """ + + _validation = { + 'ref': {'required': True}, + 'role': {'required': True}, + } + + _attribute_map = { + 'ref': {'key': 'ref', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'str'}, + } + + def __init__( + self, + *, + ref: str, + role: str, + **kwargs + ): + """ + :keyword ref: Required. Reference link object, using a JSON pointer RFC 6901 (URI Fragment + Identifier Representation), pointing to the entity . + :paramtype ref: str + :keyword role: Required. Role of entity in the relationship. For example: 'CD20-positive + diffuse large B-cell lymphoma' has the following entities with their roles in parenthesis: + CD20 (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis). + :paramtype role: str + """ + super(HealthcareRelationEntity, self).__init__(**kwargs) + self.ref = ref + self.role = role + + +class HealthcareResult(msrest.serialization.Model): + """HealthcareResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentHealthcareEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentHealthcareEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentHealthcareEntities"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: + list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentHealthcareEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(HealthcareResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class InnerError(msrest.serialization.Model): + """InnerError. + + All required parameters must be populated in order to send to Azure. + + :ivar code: Required. Error code. Possible values include: "InvalidParameterValue", + "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", + "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", + "InvalidCountryHint". + :vartype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.InnerErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar details: Error details. + :vartype details: dict[str, str] + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_2_preview_2.models.InnerError + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': '{str}'}, + 'target': {'key': 'target', 'type': 'str'}, + 'innererror': {'key': 'innererror', 'type': 'InnerError'}, + } + + def __init__( + self, + *, + code: Union[str, "InnerErrorCodeValue"], + message: str, + details: Optional[Dict[str, str]] = None, + target: Optional[str] = None, + innererror: Optional["InnerError"] = None, + **kwargs + ): + """ + :keyword code: Required. Error code. Possible values include: "InvalidParameterValue", + "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", + "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", + "InvalidCountryHint". + :paramtype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.InnerErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword details: Error details. + :paramtype details: dict[str, str] + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_2_preview_2.models.InnerError + """ + super(InnerError, self).__init__(**kwargs) + self.code = code + self.message = message + self.details = details + self.target = target + self.innererror = innererror + + +class JobManifestTasks(msrest.serialization.Model): + """The set of tasks to execute on the input documents. Cannot specify the same task more than once. + + :ivar entity_recognition_tasks: + :vartype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesTask] + :ivar entity_recognition_pii_tasks: + :vartype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.PiiTask] + :ivar key_phrase_extraction_tasks: + :vartype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhrasesTask] + :ivar entity_linking_tasks: + :vartype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingTask] + :ivar sentiment_analysis_tasks: + :vartype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.SentimentAnalysisTask] + :ivar extractive_summarization_tasks: + :vartype extractive_summarization_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTask] + :ivar custom_entity_recognition_tasks: + :vartype custom_entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesTask] + :ivar custom_single_classification_tasks: + :vartype custom_single_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationTask] + :ivar custom_multi_classification_tasks: + :vartype custom_multi_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationTask] + """ + + _attribute_map = { + 'entity_recognition_tasks': {'key': 'entityRecognitionTasks', 'type': '[EntitiesTask]'}, + 'entity_recognition_pii_tasks': {'key': 'entityRecognitionPiiTasks', 'type': '[PiiTask]'}, + 'key_phrase_extraction_tasks': {'key': 'keyPhraseExtractionTasks', 'type': '[KeyPhrasesTask]'}, + 'entity_linking_tasks': {'key': 'entityLinkingTasks', 'type': '[EntityLinkingTask]'}, + 'sentiment_analysis_tasks': {'key': 'sentimentAnalysisTasks', 'type': '[SentimentAnalysisTask]'}, + 'extractive_summarization_tasks': {'key': 'extractiveSummarizationTasks', 'type': '[ExtractiveSummarizationTask]'}, + 'custom_entity_recognition_tasks': {'key': 'customEntityRecognitionTasks', 'type': '[CustomEntitiesTask]'}, + 'custom_single_classification_tasks': {'key': 'customSingleClassificationTasks', 'type': '[CustomSingleClassificationTask]'}, + 'custom_multi_classification_tasks': {'key': 'customMultiClassificationTasks', 'type': '[CustomMultiClassificationTask]'}, + } + + def __init__( + self, + *, + entity_recognition_tasks: Optional[List["EntitiesTask"]] = None, + entity_recognition_pii_tasks: Optional[List["PiiTask"]] = None, + key_phrase_extraction_tasks: Optional[List["KeyPhrasesTask"]] = None, + entity_linking_tasks: Optional[List["EntityLinkingTask"]] = None, + sentiment_analysis_tasks: Optional[List["SentimentAnalysisTask"]] = None, + extractive_summarization_tasks: Optional[List["ExtractiveSummarizationTask"]] = None, + custom_entity_recognition_tasks: Optional[List["CustomEntitiesTask"]] = None, + custom_single_classification_tasks: Optional[List["CustomSingleClassificationTask"]] = None, + custom_multi_classification_tasks: Optional[List["CustomMultiClassificationTask"]] = None, + **kwargs + ): + """ + :keyword entity_recognition_tasks: + :paramtype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesTask] + :keyword entity_recognition_pii_tasks: + :paramtype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.PiiTask] + :keyword key_phrase_extraction_tasks: + :paramtype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhrasesTask] + :keyword entity_linking_tasks: + :paramtype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingTask] + :keyword sentiment_analysis_tasks: + :paramtype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.SentimentAnalysisTask] + :keyword extractive_summarization_tasks: + :paramtype extractive_summarization_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationTask] + :keyword custom_entity_recognition_tasks: + :paramtype custom_entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesTask] + :keyword custom_single_classification_tasks: + :paramtype custom_single_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationTask] + :keyword custom_multi_classification_tasks: + :paramtype custom_multi_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationTask] + """ + super(JobManifestTasks, self).__init__(**kwargs) + self.entity_recognition_tasks = entity_recognition_tasks + self.entity_recognition_pii_tasks = entity_recognition_pii_tasks + self.key_phrase_extraction_tasks = key_phrase_extraction_tasks + self.entity_linking_tasks = entity_linking_tasks + self.sentiment_analysis_tasks = sentiment_analysis_tasks + self.extractive_summarization_tasks = extractive_summarization_tasks + self.custom_entity_recognition_tasks = custom_entity_recognition_tasks + self.custom_single_classification_tasks = custom_single_classification_tasks + self.custom_multi_classification_tasks = custom_multi_classification_tasks + + +class KeyPhraseResult(msrest.serialization.Model): + """KeyPhraseResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentKeyPhrases] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentKeyPhrases]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentKeyPhrases"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentKeyPhrases] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(KeyPhraseResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class KeyPhrasesTask(msrest.serialization.Model): + """KeyPhrasesTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhrasesTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'KeyPhrasesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + *, + parameters: Optional["KeyPhrasesTaskParameters"] = None, + task_name: Optional[str] = None, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhrasesTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(KeyPhrasesTask, self).__init__(**kwargs) + self.parameters = parameters + self.task_name = task_name + + +class KeyPhrasesTaskParameters(msrest.serialization.Model): + """KeyPhrasesTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + } + + def __init__( + self, + *, + model_version: Optional[str] = "latest", + logging_opt_out: Optional[bool] = False, + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + """ + super(KeyPhrasesTaskParameters, self).__init__(**kwargs) + self.model_version = model_version + self.logging_opt_out = logging_opt_out + + +class KeyPhraseTaskResult(msrest.serialization.Model): + """KeyPhraseTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, + } + + def __init__( + self, + *, + results: Optional["KeyPhraseResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult + """ + super(KeyPhraseTaskResult, self).__init__(**kwargs) + self.results = results + + +class LanguageBatchInput(msrest.serialization.Model): + """LanguageBatchInput. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput] + """ + + _validation = { + 'documents': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[LanguageInput]'}, + } + + def __init__( + self, + *, + documents: List["LanguageInput"], + **kwargs + ): + """ + :keyword documents: Required. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput] + """ + super(LanguageBatchInput, self).__init__(**kwargs) + self.documents = documents + + +class LanguageInput(msrest.serialization.Model): + """LanguageInput. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. + :vartype text: str + :ivar country_hint: + :vartype country_hint: str + """ + + _validation = { + 'id': {'required': True}, + 'text': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'country_hint': {'key': 'countryHint', 'type': 'str'}, + } + + def __init__( + self, + *, + id: str, + text: str, + country_hint: Optional[str] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. + :paramtype text: str + :keyword country_hint: + :paramtype country_hint: str + """ + super(LanguageInput, self).__init__(**kwargs) + self.id = id + self.text = text + self.country_hint = country_hint + + +class LanguageResult(msrest.serialization.Model): + """LanguageResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentLanguage] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentLanguage]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentLanguage"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentLanguage] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(LanguageResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class LinkedEntity(msrest.serialization.Model): + """LinkedEntity. + + All required parameters must be populated in order to send to Azure. + + :ivar name: Required. Entity Linking formal name. + :vartype name: str + :ivar matches: Required. List of instances this entity appears in the text. + :vartype matches: list[~azure.ai.textanalytics.v3_2_preview_2.models.Match] + :ivar language: Required. Language used in the data source. + :vartype language: str + :ivar id: Unique identifier of the recognized entity from the data source. + :vartype id: str + :ivar url: Required. URL for the entity's page from the data source. + :vartype url: str + :ivar data_source: Required. Data source used to extract entity linking, such as Wiki/Bing etc. + :vartype data_source: str + :ivar bing_id: Bing Entity Search API unique identifier of the recognized entity. + :vartype bing_id: str + """ + + _validation = { + 'name': {'required': True}, + 'matches': {'required': True}, + 'language': {'required': True}, + 'url': {'required': True}, + 'data_source': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'matches': {'key': 'matches', 'type': '[Match]'}, + 'language': {'key': 'language', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'data_source': {'key': 'dataSource', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + matches: List["Match"], + language: str, + url: str, + data_source: str, + id: Optional[str] = None, + bing_id: Optional[str] = None, + **kwargs + ): + """ + :keyword name: Required. Entity Linking formal name. + :paramtype name: str + :keyword matches: Required. List of instances this entity appears in the text. + :paramtype matches: list[~azure.ai.textanalytics.v3_2_preview_2.models.Match] + :keyword language: Required. Language used in the data source. + :paramtype language: str + :keyword id: Unique identifier of the recognized entity from the data source. + :paramtype id: str + :keyword url: Required. URL for the entity's page from the data source. + :paramtype url: str + :keyword data_source: Required. Data source used to extract entity linking, such as Wiki/Bing + etc. + :paramtype data_source: str + :keyword bing_id: Bing Entity Search API unique identifier of the recognized entity. + :paramtype bing_id: str + """ + super(LinkedEntity, self).__init__(**kwargs) + self.name = name + self.matches = matches + self.language = language + self.id = id + self.url = url + self.data_source = data_source + self.bing_id = bing_id + + +class Match(msrest.serialization.Model): + """Match. + + All required parameters must be populated in order to send to Azure. + + :ivar confidence_score: Required. If a well known item is recognized, a decimal number denoting + the confidence level between 0 and 1 will be returned. + :vartype confidence_score: float + :ivar text: Required. Entity text as appears in the request. + :vartype text: str + :ivar offset: Required. Start position for the entity match text. + :vartype offset: int + :ivar length: Required. Length for the entity match text. + :vartype length: int + """ + + _validation = { + 'confidence_score': {'required': True}, + 'text': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'confidence_score': {'key': 'confidenceScore', 'type': 'float'}, + 'text': {'key': 'text', 'type': 'str'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + } + + def __init__( + self, + *, + confidence_score: float, + text: str, + offset: int, + length: int, + **kwargs + ): + """ + :keyword confidence_score: Required. If a well known item is recognized, a decimal number + denoting the confidence level between 0 and 1 will be returned. + :paramtype confidence_score: float + :keyword text: Required. Entity text as appears in the request. + :paramtype text: str + :keyword offset: Required. Start position for the entity match text. + :paramtype offset: int + :keyword length: Required. Length for the entity match text. + :paramtype length: int + """ + super(Match, self).__init__(**kwargs) + self.confidence_score = confidence_score + self.text = text + self.offset = offset + self.length = length + + +class MultiClassificationDocument(msrest.serialization.Model): + """MultiClassificationDocument. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar classifications: Required. Recognized classification results in the document. + :vartype classifications: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ClassificationResult] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'classifications': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'classifications': {'key': 'classifications', 'type': '[ClassificationResult]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + classifications: List["ClassificationResult"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword classifications: Required. Recognized classification results in the document. + :paramtype classifications: + list[~azure.ai.textanalytics.v3_2_preview_2.models.ClassificationResult] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(MultiClassificationDocument, self).__init__(**kwargs) + self.id = id + self.classifications = classifications + self.warnings = warnings + self.statistics = statistics + + +class MultiLanguageBatchInput(msrest.serialization.Model): + """Contains a set of input documents to be analyzed by the service. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. The set of documents to process as part of this batch. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] + """ + + _validation = { + 'documents': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[MultiLanguageInput]'}, + } + + def __init__( + self, + *, + documents: List["MultiLanguageInput"], + **kwargs + ): + """ + :keyword documents: Required. The set of documents to process as part of this batch. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] + """ + super(MultiLanguageBatchInput, self).__init__(**kwargs) + self.documents = documents + + +class MultiLanguageInput(msrest.serialization.Model): + """Contains an input document to be analyzed by the service. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. A unique, non-empty document identifier. + :vartype id: str + :ivar text: Required. The input text to process. + :vartype text: str + :ivar language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :vartype language: str + """ + + _validation = { + 'id': {'required': True}, + 'text': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + } + + def __init__( + self, + *, + id: str, + text: str, + language: Optional[str] = None, + **kwargs + ): + """ + :keyword id: Required. A unique, non-empty document identifier. + :paramtype id: str + :keyword text: Required. The input text to process. + :paramtype text: str + :keyword language: (Optional) This is the 2 letter ISO 639-1 representation of a language. For + example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as + default. + :paramtype language: str + """ + super(MultiLanguageInput, self).__init__(**kwargs) + self.id = id + self.text = text + self.language = language + + +class PiiDocumentEntities(msrest.serialization.Model): + """PiiDocumentEntities. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar redacted_text: Required. Returns redacted text. + :vartype redacted_text: str + :ivar entities: Required. Recognized entities in the document. + :vartype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.Entity] + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'redacted_text': {'required': True}, + 'entities': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'redacted_text': {'key': 'redactedText', 'type': 'str'}, + 'entities': {'key': 'entities', 'type': '[Entity]'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + redacted_text: str, + entities: List["Entity"], + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword redacted_text: Required. Returns redacted text. + :paramtype redacted_text: str + :keyword entities: Required. Recognized entities in the document. + :paramtype entities: list[~azure.ai.textanalytics.v3_2_preview_2.models.Entity] + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(PiiDocumentEntities, self).__init__(**kwargs) + self.id = id + self.redacted_text = redacted_text + self.entities = entities + self.warnings = warnings + self.statistics = statistics + + +class PiiResult(msrest.serialization.Model): + """PiiResult. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Response by document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.PiiDocumentEntities] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[PiiDocumentEntities]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["PiiDocumentEntities"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Response by document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.PiiDocumentEntities] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(PiiResult, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class PiiTask(msrest.serialization.Model): + """PiiTask. + + :ivar parameters: + :vartype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'PiiTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + *, + parameters: Optional["PiiTaskParameters"] = None, + task_name: Optional[str] = None, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(PiiTask, self).__init__(**kwargs) + self.parameters = parameters + self.task_name = task_name + + +class PiiTaskParameters(msrest.serialization.Model): + """PiiTaskParameters. + + :ivar domain: Possible values include: "phi", "none". Default value: "none". + :vartype domain: str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiTaskParametersDomain + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar pii_categories: (Optional) describes the PII categories to return. + :vartype pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory] + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _validation = { + 'pii_categories': {'unique': True}, + } + + _attribute_map = { + 'domain': {'key': 'domain', 'type': 'str'}, + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'pii_categories': {'key': 'piiCategories', 'type': '[str]'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + *, + domain: Optional[Union[str, "PiiTaskParametersDomain"]] = "none", + model_version: Optional[str] = "latest", + logging_opt_out: Optional[bool] = True, + pii_categories: Optional[List[Union[str, "PiiCategory"]]] = None, + string_index_type: Optional[Union[str, "StringIndexType"]] = None, + **kwargs + ): + """ + :keyword domain: Possible values include: "phi", "none". Default value: "none". + :paramtype domain: str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiTaskParametersDomain + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword pii_categories: (Optional) describes the PII categories to return. + :paramtype pii_categories: list[str or + ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory] + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(PiiTaskParameters, self).__init__(**kwargs) + self.domain = domain + self.model_version = model_version + self.logging_opt_out = logging_opt_out + self.pii_categories = pii_categories + self.string_index_type = string_index_type + + +class PiiTaskResult(msrest.serialization.Model): + """PiiTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'PiiResult'}, + } + + def __init__( + self, + *, + results: Optional["PiiResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult + """ + super(PiiTaskResult, self).__init__(**kwargs) + self.results = results + + +class RequestStatistics(msrest.serialization.Model): + """if showStats=true was specified in the request this field will contain information about the request payload. + + All required parameters must be populated in order to send to Azure. + + :ivar documents_count: Required. Number of documents submitted in the request. + :vartype documents_count: int + :ivar valid_documents_count: Required. Number of valid documents. This excludes empty, + over-size limit or non-supported languages documents. + :vartype valid_documents_count: int + :ivar erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :vartype erroneous_documents_count: int + :ivar transactions_count: Required. Number of transactions for the request. + :vartype transactions_count: long + """ + + _validation = { + 'documents_count': {'required': True}, + 'valid_documents_count': {'required': True}, + 'erroneous_documents_count': {'required': True}, + 'transactions_count': {'required': True}, + } + + _attribute_map = { + 'documents_count': {'key': 'documentsCount', 'type': 'int'}, + 'valid_documents_count': {'key': 'validDocumentsCount', 'type': 'int'}, + 'erroneous_documents_count': {'key': 'erroneousDocumentsCount', 'type': 'int'}, + 'transactions_count': {'key': 'transactionsCount', 'type': 'long'}, + } + + def __init__( + self, + *, + documents_count: int, + valid_documents_count: int, + erroneous_documents_count: int, + transactions_count: int, + **kwargs + ): + """ + :keyword documents_count: Required. Number of documents submitted in the request. + :paramtype documents_count: int + :keyword valid_documents_count: Required. Number of valid documents. This excludes empty, + over-size limit or non-supported languages documents. + :paramtype valid_documents_count: int + :keyword erroneous_documents_count: Required. Number of invalid documents. This includes empty, + over-size limit or non-supported languages documents. + :paramtype erroneous_documents_count: int + :keyword transactions_count: Required. Number of transactions for the request. + :paramtype transactions_count: long + """ + super(RequestStatistics, self).__init__(**kwargs) + self.documents_count = documents_count + self.valid_documents_count = valid_documents_count + self.erroneous_documents_count = erroneous_documents_count + self.transactions_count = transactions_count + + +class SentenceAssessment(msrest.serialization.Model): + """SentenceAssessment. + + All required parameters must be populated in order to send to Azure. + + :ivar sentiment: Required. Assessment sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :vartype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TokenSentimentValue + :ivar confidence_scores: Required. Assessment sentiment confidence scores in the sentence. + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetConfidenceScoreLabel + :ivar offset: Required. The assessment offset from the start of the sentence. + :vartype offset: int + :ivar length: Required. The length of the assessment. + :vartype length: int + :ivar text: Required. The assessment text detected. + :vartype text: str + :ivar is_negated: Required. The indicator representing if the assessment is negated. + :vartype is_negated: bool + """ + + _validation = { + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'text': {'required': True}, + 'is_negated': {'required': True}, + } + + _attribute_map = { + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'TargetConfidenceScoreLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'is_negated': {'key': 'isNegated', 'type': 'bool'}, + } + + def __init__( + self, + *, + sentiment: Union[str, "TokenSentimentValue"], + confidence_scores: "TargetConfidenceScoreLabel", + offset: int, + length: int, + text: str, + is_negated: bool, + **kwargs + ): + """ + :keyword sentiment: Required. Assessment sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TokenSentimentValue + :keyword confidence_scores: Required. Assessment sentiment confidence scores in the sentence. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetConfidenceScoreLabel + :keyword offset: Required. The assessment offset from the start of the sentence. + :paramtype offset: int + :keyword length: Required. The length of the assessment. + :paramtype length: int + :keyword text: Required. The assessment text detected. + :paramtype text: str + :keyword is_negated: Required. The indicator representing if the assessment is negated. + :paramtype is_negated: bool + """ + super(SentenceAssessment, self).__init__(**kwargs) + self.sentiment = sentiment + self.confidence_scores = confidence_scores + self.offset = offset + self.length = length + self.text = text + self.is_negated = is_negated + + +class SentenceSentiment(msrest.serialization.Model): + """SentenceSentiment. + + All required parameters must be populated in order to send to Azure. + + :ivar text: Required. The sentence text. + :vartype text: str + :ivar sentiment: Required. The predicted Sentiment for the sentence. Possible values include: + "positive", "neutral", "negative". + :vartype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.SentenceSentimentValue + :ivar confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentConfidenceScorePerLabel + :ivar offset: Required. The sentence offset from the start of the document. + :vartype offset: int + :ivar length: Required. The length of the sentence. + :vartype length: int + :ivar targets: The array of sentence targets for the sentence. + :vartype targets: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceTarget] + :ivar assessments: The array of assessments for the sentence. + :vartype assessments: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceAssessment] + """ + + _validation = { + 'text': {'required': True}, + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'SentimentConfidenceScorePerLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'targets': {'key': 'targets', 'type': '[SentenceTarget]'}, + 'assessments': {'key': 'assessments', 'type': '[SentenceAssessment]'}, + } + + def __init__( + self, + *, + text: str, + sentiment: Union[str, "SentenceSentimentValue"], + confidence_scores: "SentimentConfidenceScorePerLabel", + offset: int, + length: int, + targets: Optional[List["SentenceTarget"]] = None, + assessments: Optional[List["SentenceAssessment"]] = None, + **kwargs + ): + """ + :keyword text: Required. The sentence text. + :paramtype text: str + :keyword sentiment: Required. The predicted Sentiment for the sentence. Possible values + include: "positive", "neutral", "negative". + :paramtype sentiment: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.SentenceSentimentValue + :keyword confidence_scores: Required. The sentiment confidence score between 0 and 1 for the + sentence for all classes. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentConfidenceScorePerLabel + :keyword offset: Required. The sentence offset from the start of the document. + :paramtype offset: int + :keyword length: Required. The length of the sentence. + :paramtype length: int + :keyword targets: The array of sentence targets for the sentence. + :paramtype targets: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceTarget] + :keyword assessments: The array of assessments for the sentence. + :paramtype assessments: list[~azure.ai.textanalytics.v3_2_preview_2.models.SentenceAssessment] + """ + super(SentenceSentiment, self).__init__(**kwargs) + self.text = text + self.sentiment = sentiment + self.confidence_scores = confidence_scores + self.offset = offset + self.length = length + self.targets = targets + self.assessments = assessments + + +class SentenceTarget(msrest.serialization.Model): + """SentenceTarget. + + All required parameters must be populated in order to send to Azure. + + :ivar sentiment: Required. Targeted sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :vartype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TokenSentimentValue + :ivar confidence_scores: Required. Target sentiment confidence scores for the target in the + sentence. + :vartype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetConfidenceScoreLabel + :ivar offset: Required. The target offset from the start of the sentence. + :vartype offset: int + :ivar length: Required. The length of the target. + :vartype length: int + :ivar text: Required. The target text detected. + :vartype text: str + :ivar relations: Required. The array of either assessment or target objects which is related to + the target. + :vartype relations: list[~azure.ai.textanalytics.v3_2_preview_2.models.TargetRelation] + """ + + _validation = { + 'sentiment': {'required': True}, + 'confidence_scores': {'required': True}, + 'offset': {'required': True}, + 'length': {'required': True}, + 'text': {'required': True}, + 'relations': {'required': True}, + } + + _attribute_map = { + 'sentiment': {'key': 'sentiment', 'type': 'str'}, + 'confidence_scores': {'key': 'confidenceScores', 'type': 'TargetConfidenceScoreLabel'}, + 'offset': {'key': 'offset', 'type': 'int'}, + 'length': {'key': 'length', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'relations': {'key': 'relations', 'type': '[TargetRelation]'}, + } + + def __init__( + self, + *, + sentiment: Union[str, "TokenSentimentValue"], + confidence_scores: "TargetConfidenceScoreLabel", + offset: int, + length: int, + text: str, + relations: List["TargetRelation"], + **kwargs + ): + """ + :keyword sentiment: Required. Targeted sentiment in the sentence. Possible values include: + "positive", "mixed", "negative". + :paramtype sentiment: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TokenSentimentValue + :keyword confidence_scores: Required. Target sentiment confidence scores for the target in the + sentence. + :paramtype confidence_scores: + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetConfidenceScoreLabel + :keyword offset: Required. The target offset from the start of the sentence. + :paramtype offset: int + :keyword length: Required. The length of the target. + :paramtype length: int + :keyword text: Required. The target text detected. + :paramtype text: str + :keyword relations: Required. The array of either assessment or target objects which is related + to the target. + :paramtype relations: list[~azure.ai.textanalytics.v3_2_preview_2.models.TargetRelation] + """ + super(SentenceTarget, self).__init__(**kwargs) + self.sentiment = sentiment + self.confidence_scores = confidence_scores + self.offset = offset + self.length = length + self.text = text + self.relations = relations + + +class SentimentAnalysisTask(msrest.serialization.Model): + """SentimentAnalysisTask. + + :ivar parameters: + :vartype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentAnalysisTaskParameters + :ivar task_name: + :vartype task_name: str + """ + + _attribute_map = { + 'parameters': {'key': 'parameters', 'type': 'SentimentAnalysisTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + } + + def __init__( + self, + *, + parameters: Optional["SentimentAnalysisTaskParameters"] = None, + task_name: Optional[str] = None, + **kwargs + ): + """ + :keyword parameters: + :paramtype parameters: + ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentAnalysisTaskParameters + :keyword task_name: + :paramtype task_name: str + """ + super(SentimentAnalysisTask, self).__init__(**kwargs) + self.parameters = parameters + self.task_name = task_name + + +class SentimentAnalysisTaskParameters(msrest.serialization.Model): + """SentimentAnalysisTaskParameters. + + :ivar model_version: + :vartype model_version: str + :ivar logging_opt_out: + :vartype logging_opt_out: bool + :ivar opinion_mining: + :vartype opinion_mining: bool + :ivar string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :vartype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + + _attribute_map = { + 'model_version': {'key': 'model-version', 'type': 'str'}, + 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, + 'opinion_mining': {'key': 'opinionMining', 'type': 'bool'}, + 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, + } + + def __init__( + self, + *, + model_version: Optional[str] = "latest", + logging_opt_out: Optional[bool] = False, + opinion_mining: Optional[bool] = False, + string_index_type: Optional[Union[str, "StringIndexType"]] = None, + **kwargs + ): + """ + :keyword model_version: + :paramtype model_version: str + :keyword logging_opt_out: + :paramtype logging_opt_out: bool + :keyword opinion_mining: + :paramtype opinion_mining: bool + :keyword string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", + "Utf16CodeUnit". + :paramtype string_index_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType + """ + super(SentimentAnalysisTaskParameters, self).__init__(**kwargs) + self.model_version = model_version + self.logging_opt_out = logging_opt_out + self.opinion_mining = opinion_mining + self.string_index_type = string_index_type + + +class SentimentConfidenceScorePerLabel(msrest.serialization.Model): + """Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative. + + All required parameters must be populated in order to send to Azure. + + :ivar positive: Required. + :vartype positive: float + :ivar neutral: Required. + :vartype neutral: float + :ivar negative: Required. + :vartype negative: float + """ + + _validation = { + 'positive': {'required': True}, + 'neutral': {'required': True}, + 'negative': {'required': True}, + } + + _attribute_map = { + 'positive': {'key': 'positive', 'type': 'float'}, + 'neutral': {'key': 'neutral', 'type': 'float'}, + 'negative': {'key': 'negative', 'type': 'float'}, + } + + def __init__( + self, + *, + positive: float, + neutral: float, + negative: float, + **kwargs + ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword neutral: Required. + :paramtype neutral: float + :keyword negative: Required. + :paramtype negative: float + """ + super(SentimentConfidenceScorePerLabel, self).__init__(**kwargs) + self.positive = positive + self.neutral = neutral + self.negative = negative + + +class SentimentResponse(msrest.serialization.Model): + """SentimentResponse. + + All required parameters must be populated in order to send to Azure. + + :ivar documents: Required. Sentiment analysis per document. + :vartype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentSentiment] + :ivar errors: Required. Errors by document id. + :vartype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :ivar model_version: Required. This field indicates which model is used for scoring. + :vartype model_version: str + """ + + _validation = { + 'documents': {'required': True}, + 'errors': {'required': True}, + 'model_version': {'required': True}, + } + + _attribute_map = { + 'documents': {'key': 'documents', 'type': '[DocumentSentiment]'}, + 'errors': {'key': 'errors', 'type': '[DocumentError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + documents: List["DocumentSentiment"], + errors: List["DocumentError"], + model_version: str, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + """ + :keyword documents: Required. Sentiment analysis per document. + :paramtype documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentSentiment] + :keyword errors: Required. Errors by document id. + :paramtype errors: list[~azure.ai.textanalytics.v3_2_preview_2.models.DocumentError] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the request payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.RequestStatistics + :keyword model_version: Required. This field indicates which model is used for scoring. + :paramtype model_version: str + """ + super(SentimentResponse, self).__init__(**kwargs) + self.documents = documents + self.errors = errors + self.statistics = statistics + self.model_version = model_version + + +class SentimentTaskResult(msrest.serialization.Model): + """SentimentTaskResult. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'SentimentResponse'}, + } + + def __init__( + self, + *, + results: Optional["SentimentResponse"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse + """ + super(SentimentTaskResult, self).__init__(**kwargs) + self.results = results + + +class SingleClassificationDocument(msrest.serialization.Model): + """SingleClassificationDocument. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Required. Unique, non-empty document identifier. + :vartype id: str + :ivar classification: Required. + :vartype classification: ~azure.ai.textanalytics.v3_2_preview_2.models.ClassificationResult + :ivar warnings: Required. Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :ivar statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + + _validation = { + 'id': {'required': True}, + 'classification': {'required': True}, + 'warnings': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'classification': {'key': 'classification', 'type': 'ClassificationResult'}, + 'warnings': {'key': 'warnings', 'type': '[TextAnalyticsWarning]'}, + 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, + } + + def __init__( + self, + *, + id: str, + classification: "ClassificationResult", + warnings: List["TextAnalyticsWarning"], + statistics: Optional["DocumentStatistics"] = None, + **kwargs + ): + """ + :keyword id: Required. Unique, non-empty document identifier. + :paramtype id: str + :keyword classification: Required. + :paramtype classification: ~azure.ai.textanalytics.v3_2_preview_2.models.ClassificationResult + :keyword warnings: Required. Warnings encountered while processing document. + :paramtype warnings: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsWarning] + :keyword statistics: if showStats=true was specified in the request this field will contain + information about the document payload. + :paramtype statistics: ~azure.ai.textanalytics.v3_2_preview_2.models.DocumentStatistics + """ + super(SingleClassificationDocument, self).__init__(**kwargs) + self.id = id + self.classification = classification + self.warnings = warnings + self.statistics = statistics + + +class TargetConfidenceScoreLabel(msrest.serialization.Model): + """Represents the confidence scores across all sentiment classes: positive, neutral, negative. + + All required parameters must be populated in order to send to Azure. + + :ivar positive: Required. + :vartype positive: float + :ivar negative: Required. + :vartype negative: float + """ + + _validation = { + 'positive': {'required': True}, + 'negative': {'required': True}, + } + + _attribute_map = { + 'positive': {'key': 'positive', 'type': 'float'}, + 'negative': {'key': 'negative', 'type': 'float'}, + } + + def __init__( + self, + *, + positive: float, + negative: float, + **kwargs + ): + """ + :keyword positive: Required. + :paramtype positive: float + :keyword negative: Required. + :paramtype negative: float + """ + super(TargetConfidenceScoreLabel, self).__init__(**kwargs) + self.positive = positive + self.negative = negative + + +class TargetRelation(msrest.serialization.Model): + """TargetRelation. + + All required parameters must be populated in order to send to Azure. + + :ivar relation_type: Required. The type related to the target. Possible values include: + "assessment", "target". + :vartype relation_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.TargetRelationType + :ivar ref: Required. The JSON pointer indicating the linked object. + :vartype ref: str + """ + + _validation = { + 'relation_type': {'required': True}, + 'ref': {'required': True}, + } + + _attribute_map = { + 'relation_type': {'key': 'relationType', 'type': 'str'}, + 'ref': {'key': 'ref', 'type': 'str'}, + } + + def __init__( + self, + *, + relation_type: Union[str, "TargetRelationType"], + ref: str, + **kwargs + ): + """ + :keyword relation_type: Required. The type related to the target. Possible values include: + "assessment", "target". + :paramtype relation_type: str or + ~azure.ai.textanalytics.v3_2_preview_2.models.TargetRelationType + :keyword ref: Required. The JSON pointer indicating the linked object. + :paramtype ref: str + """ + super(TargetRelation, self).__init__(**kwargs) + self.relation_type = relation_type + self.ref = ref + + +class TasksStateTasks(msrest.serialization.Model): + """TasksStateTasks. + + All required parameters must be populated in order to send to Azure. + + :ivar completed: Required. + :vartype completed: int + :ivar failed: Required. + :vartype failed: int + :ivar in_progress: Required. + :vartype in_progress: int + :ivar total: Required. + :vartype total: int + :ivar entity_recognition_tasks: + :vartype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityRecognitionTasksItem] + :ivar entity_recognition_pii_tasks: + :vartype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityRecognitionPiiTasksItem] + :ivar key_phrase_extraction_tasks: + :vartype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksKeyPhraseExtractionTasksItem] + :ivar entity_linking_tasks: + :vartype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityLinkingTasksItem] + :ivar sentiment_analysis_tasks: + :vartype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksSentimentAnalysisTasksItem] + :ivar extractive_summarization_tasks: + :vartype extractive_summarization_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksExtractiveSummarizationTasksItem] + :ivar custom_entity_recognition_tasks: + :vartype custom_entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomEntityRecognitionTasksItem] + :ivar custom_single_classification_tasks: + :vartype custom_single_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomSingleClassificationTasksItem] + :ivar custom_multi_classification_tasks: + :vartype custom_multi_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomMultiClassificationTasksItem] + """ + + _validation = { + 'completed': {'required': True}, + 'failed': {'required': True}, + 'in_progress': {'required': True}, + 'total': {'required': True}, + } + + _attribute_map = { + 'completed': {'key': 'completed', 'type': 'int'}, + 'failed': {'key': 'failed', 'type': 'int'}, + 'in_progress': {'key': 'inProgress', 'type': 'int'}, + 'total': {'key': 'total', 'type': 'int'}, + 'entity_recognition_tasks': {'key': 'entityRecognitionTasks', 'type': '[TasksStateTasksEntityRecognitionTasksItem]'}, + 'entity_recognition_pii_tasks': {'key': 'entityRecognitionPiiTasks', 'type': '[TasksStateTasksEntityRecognitionPiiTasksItem]'}, + 'key_phrase_extraction_tasks': {'key': 'keyPhraseExtractionTasks', 'type': '[TasksStateTasksKeyPhraseExtractionTasksItem]'}, + 'entity_linking_tasks': {'key': 'entityLinkingTasks', 'type': '[TasksStateTasksEntityLinkingTasksItem]'}, + 'sentiment_analysis_tasks': {'key': 'sentimentAnalysisTasks', 'type': '[TasksStateTasksSentimentAnalysisTasksItem]'}, + 'extractive_summarization_tasks': {'key': 'extractiveSummarizationTasks', 'type': '[TasksStateTasksExtractiveSummarizationTasksItem]'}, + 'custom_entity_recognition_tasks': {'key': 'customEntityRecognitionTasks', 'type': '[TasksStateTasksCustomEntityRecognitionTasksItem]'}, + 'custom_single_classification_tasks': {'key': 'customSingleClassificationTasks', 'type': '[TasksStateTasksCustomSingleClassificationTasksItem]'}, + 'custom_multi_classification_tasks': {'key': 'customMultiClassificationTasks', 'type': '[TasksStateTasksCustomMultiClassificationTasksItem]'}, + } + + def __init__( + self, + *, + completed: int, + failed: int, + in_progress: int, + total: int, + entity_recognition_tasks: Optional[List["TasksStateTasksEntityRecognitionTasksItem"]] = None, + entity_recognition_pii_tasks: Optional[List["TasksStateTasksEntityRecognitionPiiTasksItem"]] = None, + key_phrase_extraction_tasks: Optional[List["TasksStateTasksKeyPhraseExtractionTasksItem"]] = None, + entity_linking_tasks: Optional[List["TasksStateTasksEntityLinkingTasksItem"]] = None, + sentiment_analysis_tasks: Optional[List["TasksStateTasksSentimentAnalysisTasksItem"]] = None, + extractive_summarization_tasks: Optional[List["TasksStateTasksExtractiveSummarizationTasksItem"]] = None, + custom_entity_recognition_tasks: Optional[List["TasksStateTasksCustomEntityRecognitionTasksItem"]] = None, + custom_single_classification_tasks: Optional[List["TasksStateTasksCustomSingleClassificationTasksItem"]] = None, + custom_multi_classification_tasks: Optional[List["TasksStateTasksCustomMultiClassificationTasksItem"]] = None, + **kwargs + ): + """ + :keyword completed: Required. + :paramtype completed: int + :keyword failed: Required. + :paramtype failed: int + :keyword in_progress: Required. + :paramtype in_progress: int + :keyword total: Required. + :paramtype total: int + :keyword entity_recognition_tasks: + :paramtype entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityRecognitionTasksItem] + :keyword entity_recognition_pii_tasks: + :paramtype entity_recognition_pii_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityRecognitionPiiTasksItem] + :keyword key_phrase_extraction_tasks: + :paramtype key_phrase_extraction_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksKeyPhraseExtractionTasksItem] + :keyword entity_linking_tasks: + :paramtype entity_linking_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksEntityLinkingTasksItem] + :keyword sentiment_analysis_tasks: + :paramtype sentiment_analysis_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksSentimentAnalysisTasksItem] + :keyword extractive_summarization_tasks: + :paramtype extractive_summarization_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksExtractiveSummarizationTasksItem] + :keyword custom_entity_recognition_tasks: + :paramtype custom_entity_recognition_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomEntityRecognitionTasksItem] + :keyword custom_single_classification_tasks: + :paramtype custom_single_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomSingleClassificationTasksItem] + :keyword custom_multi_classification_tasks: + :paramtype custom_multi_classification_tasks: + list[~azure.ai.textanalytics.v3_2_preview_2.models.TasksStateTasksCustomMultiClassificationTasksItem] + """ + super(TasksStateTasks, self).__init__(**kwargs) + self.completed = completed + self.failed = failed + self.in_progress = in_progress + self.total = total + self.entity_recognition_tasks = entity_recognition_tasks + self.entity_recognition_pii_tasks = entity_recognition_pii_tasks + self.key_phrase_extraction_tasks = key_phrase_extraction_tasks + self.entity_linking_tasks = entity_linking_tasks + self.sentiment_analysis_tasks = sentiment_analysis_tasks + self.extractive_summarization_tasks = extractive_summarization_tasks + self.custom_entity_recognition_tasks = custom_entity_recognition_tasks + self.custom_single_classification_tasks = custom_single_classification_tasks + self.custom_multi_classification_tasks = custom_multi_classification_tasks + + +class TaskState(msrest.serialization.Model): + """TaskState. + + All required parameters must be populated in order to send to Azure. + + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + **kwargs + ): + """ + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TaskState, self).__init__(**kwargs) + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TasksStateTasksCustomEntityRecognitionTasksItem(TaskState, CustomEntitiesTaskResult): + """TasksStateTasksCustomEntityRecognitionTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomEntitiesResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + results: Optional["CustomEntitiesResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomEntitiesResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksCustomEntityRecognitionTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) + self.results = results + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TasksStateTasksCustomMultiClassificationTasksItem(TaskState, CustomMultiClassificationTaskResult): + """TasksStateTasksCustomMultiClassificationTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomMultiClassificationResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + results: Optional["CustomMultiClassificationResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomMultiClassificationResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksCustomMultiClassificationTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) + self.results = results + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TasksStateTasksCustomSingleClassificationTasksItem(TaskState, CustomSingleClassificationTaskResult): + """TasksStateTasksCustomSingleClassificationTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'CustomSingleClassificationResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + results: Optional["CustomSingleClassificationResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: + ~azure.ai.textanalytics.v3_2_preview_2.models.CustomSingleClassificationResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksCustomSingleClassificationTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) + self.results = results + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TasksStateTasksEntityLinkingTasksItem(TaskState, EntityLinkingTaskResult): + """TasksStateTasksEntityLinkingTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + results: Optional["EntityLinkingResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksEntityLinkingTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) + self.results = results + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, PiiTaskResult): + """TasksStateTasksEntityRecognitionPiiTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'PiiResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + results: Optional["PiiResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksEntityRecognitionPiiTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) + self.results = results + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TasksStateTasksEntityRecognitionTasksItem(TaskState, EntitiesTaskResult): + """TasksStateTasksEntityRecognitionTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntitiesResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + results: Optional["EntitiesResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksEntityRecognitionTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) + self.results = results + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TasksStateTasksExtractiveSummarizationTasksItem(TaskState, ExtractiveSummarizationTaskResult): + """TasksStateTasksExtractiveSummarizationTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'ExtractiveSummarizationResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + results: Optional["ExtractiveSummarizationResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.ExtractiveSummarizationResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksExtractiveSummarizationTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) + self.results = results + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, KeyPhraseTaskResult): + """TasksStateTasksKeyPhraseExtractionTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + results: Optional["KeyPhraseResult"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksKeyPhraseExtractionTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) + self.results = results + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TasksStateTasksSentimentAnalysisTasksItem(TaskState, SentimentTaskResult): + """TasksStateTasksSentimentAnalysisTasksItem. + + All required parameters must be populated in order to send to Azure. + + :ivar results: + :vartype results: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse + :ivar last_update_date_time: Required. + :vartype last_update_date_time: ~datetime.datetime + :ivar task_name: Required. + :vartype task_name: str + :ivar status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :vartype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + + _validation = { + 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': 'SentimentResponse'}, + 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + last_update_date_time: datetime.datetime, + task_name: str, + status: Union[str, "State"], + results: Optional["SentimentResponse"] = None, + **kwargs + ): + """ + :keyword results: + :paramtype results: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse + :keyword last_update_date_time: Required. + :paramtype last_update_date_time: ~datetime.datetime + :keyword task_name: Required. + :paramtype task_name: str + :keyword status: Required. Possible values include: "notStarted", "running", "succeeded", + "failed", "rejected", "cancelled", "cancelling". + :paramtype status: str or ~azure.ai.textanalytics.v3_2_preview_2.models.State + """ + super(TasksStateTasksSentimentAnalysisTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) + self.results = results + self.last_update_date_time = last_update_date_time + self.task_name = task_name + self.status = status + + +class TextAnalyticsError(msrest.serialization.Model): + """TextAnalyticsError. + + All required parameters must be populated in order to send to Azure. + + :ivar code: Required. Error code. Possible values include: "InvalidRequest", "InvalidArgument", + "InternalServerError", "ServiceUnavailable", "NotFound". + :vartype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.ErrorCodeValue + :ivar message: Required. Error message. + :vartype message: str + :ivar target: Error target. + :vartype target: str + :ivar innererror: Inner error contains more specific information. + :vartype innererror: ~azure.ai.textanalytics.v3_2_preview_2.models.InnerError + :ivar details: Details about specific errors that led to this reported error. + :vartype details: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'innererror': {'key': 'innererror', 'type': 'InnerError'}, + 'details': {'key': 'details', 'type': '[TextAnalyticsError]'}, + } + + def __init__( + self, + *, + code: Union[str, "ErrorCodeValue"], + message: str, + target: Optional[str] = None, + innererror: Optional["InnerError"] = None, + details: Optional[List["TextAnalyticsError"]] = None, + **kwargs + ): + """ + :keyword code: Required. Error code. Possible values include: "InvalidRequest", + "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". + :paramtype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.ErrorCodeValue + :keyword message: Required. Error message. + :paramtype message: str + :keyword target: Error target. + :paramtype target: str + :keyword innererror: Inner error contains more specific information. + :paramtype innererror: ~azure.ai.textanalytics.v3_2_preview_2.models.InnerError + :keyword details: Details about specific errors that led to this reported error. + :paramtype details: list[~azure.ai.textanalytics.v3_2_preview_2.models.TextAnalyticsError] + """ + super(TextAnalyticsError, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.innererror = innererror + self.details = details + + +class TextAnalyticsWarning(msrest.serialization.Model): + """TextAnalyticsWarning. + + All required parameters must be populated in order to send to Azure. + + :ivar code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :vartype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.WarningCodeValue + :ivar message: Required. Warning message. + :vartype message: str + :ivar target_ref: A JSON pointer reference indicating the target object. + :vartype target_ref: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target_ref': {'key': 'targetRef', 'type': 'str'}, + } + + def __init__( + self, + *, + code: Union[str, "WarningCodeValue"], + message: str, + target_ref: Optional[str] = None, + **kwargs + ): + """ + :keyword code: Required. Error code. Possible values include: "LongWordsInDocument", + "DocumentTruncated". + :paramtype code: str or ~azure.ai.textanalytics.v3_2_preview_2.models.WarningCodeValue + :keyword message: Required. Warning message. + :paramtype message: str + :keyword target_ref: A JSON pointer reference indicating the target object. + :paramtype target_ref: str + """ + super(TextAnalyticsWarning, self).__init__(**kwargs) + self.code = code + self.message = message + self.target_ref = target_ref diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/_text_analytics_client_enums.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/_text_analytics_client_enums.py similarity index 89% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/_text_analytics_client_enums.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/_text_analytics_client_enums.py index 06156b3b116d..61ecf267b1a7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/models/_text_analytics_client_enums.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/models/_text_analytics_client_enums.py @@ -6,34 +6,19 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from enum import Enum, EnumMeta +from enum import Enum from six import with_metaclass +from azure.core import CaseInsensitiveEnumMeta -class _CaseInsensitiveEnumMeta(EnumMeta): - def __getitem__(self, name): - return super().__getitem__(name.upper()) - def __getattr__(cls, name): - """Return the enum member matching `name` - We use __getattr__ instead of descriptors or inserting into the enum - class' __dict__ in order to support `name` and `value` being both - properties for enum members (which live in the class' __dict__) and - enum members themselves. - """ - try: - return cls._member_map_[name.upper()] - except KeyError: - raise AttributeError(name) - - -class Association(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class Association(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Describes if the entity is the subject of the text or if it describes someone else. """ SUBJECT = "subject" OTHER = "other" -class Certainty(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class Certainty(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Describes the entities certainty and polarity. """ @@ -43,14 +28,14 @@ class Certainty(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): NEGATIVE_POSSIBLE = "negativePossible" NEGATIVE = "negative" -class Conditionality(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class Conditionality(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Describes any conditionality on the entity. """ HYPOTHETICAL = "hypothetical" CONDITIONAL = "conditional" -class DocumentSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class DocumentSentimentValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). """ @@ -59,7 +44,7 @@ class DocumentSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum) NEGATIVE = "negative" MIXED = "mixed" -class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class ErrorCodeValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ @@ -69,12 +54,12 @@ class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SERVICE_UNAVAILABLE = "ServiceUnavailable" NOT_FOUND = "NotFound" -class ExtractiveSummarizationTaskParametersSortBy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class ExtractiveSummarizationTaskParametersSortBy(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): OFFSET = "Offset" RANK = "Rank" -class HealthcareEntityCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class HealthcareEntityCategory(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Healthcare Entity Category. """ @@ -105,7 +90,7 @@ class HealthcareEntityCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enu FAMILY_RELATION = "FAMILY_RELATION" TREATMENT_NAME = "TREATMENT_NAME" -class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class InnerErrorCodeValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ @@ -119,7 +104,7 @@ class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): UNSUPPORTED_LANGUAGE_CODE = "UnsupportedLanguageCode" INVALID_COUNTRY_HINT = "InvalidCountryHint" -class PiiCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class PiiCategory(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): ABA_ROUTING_NUMBER = "ABARoutingNumber" AR_NATIONAL_IDENTITY_NUMBER = "ARNationalIdentityNumber" @@ -295,12 +280,12 @@ class PiiCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): ALL = "All" DEFAULT = "Default" -class PiiTaskParametersDomain(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class PiiTaskParametersDomain(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): PHI = "phi" NONE = "none" -class RelationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class RelationType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Type of relation. Examples include: ``DosageOfMedication`` or 'FrequencyOfMedication', etc. """ @@ -326,7 +311,7 @@ class RelationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): VALUE_OF_CONDITION = "ValueOfCondition" VALUE_OF_EXAMINATION = "ValueOfExamination" -class SentenceSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class SentenceSentimentValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """The predicted Sentiment for the sentence. """ @@ -334,7 +319,7 @@ class SentenceSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum) NEUTRAL = "neutral" NEGATIVE = "negative" -class State(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class State(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): NOT_STARTED = "notStarted" RUNNING = "running" @@ -344,7 +329,7 @@ class State(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): CANCELLED = "cancelled" CANCELLING = "cancelling" -class StringIndexType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class StringIndexType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): #: Returned offset and length values will correspond to TextElements (Graphemes and Grapheme #: clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is @@ -357,14 +342,14 @@ class StringIndexType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): #: application is written in a language that support Unicode, for example Java, JavaScript. UTF16_CODE_UNIT = "Utf16CodeUnit" -class TargetRelationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class TargetRelationType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """The type related to the target. """ ASSESSMENT = "assessment" TARGET = "target" -class TokenSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class TokenSentimentValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Targeted sentiment in the sentence. """ @@ -372,7 +357,7 @@ class TokenSentimentValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MIXED = "mixed" NEGATIVE = "negative" -class WarningCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class WarningCodeValue(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/operations/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/operations/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/operations/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/operations/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/operations/_text_analytics_client_operations.py similarity index 60% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/operations/_text_analytics_client_operations.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/operations/_text_analytics_client_operations.py index 65b540342722..c226e00b86c4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/operations/_text_analytics_client_operations.py @@ -5,17 +5,22 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import functools from typing import TYPE_CHECKING import warnings from ...._lro import AnalyzeActionsLROPoller, AnalyzeActionsLROPollingMethod, AnalyzeHealthcareEntitiesLROPoller, AnalyzeHealthcareEntitiesLROPollingMethod from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.pipeline.transport import HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod from azure.core.polling.base_polling import LROBasePolling +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from msrest import Serializer from .. import models as _models +from .._vendor import _convert_request, _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -24,6 +29,419 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +_SERIALIZER = Serializer() +# fmt: off + +def build_analyze_request_initial( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/analyze') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + headers=header_parameters, + **kwargs + ) + + +def build_analyze_status_request( + job_id, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + top = kwargs.pop('top', 20) # type: Optional[int] + skip = kwargs.pop('skip', 0) # type: Optional[int] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/analyze/jobs/{jobId}') + path_format_arguments = { + "jobId": _SERIALIZER.url("job_id", job_id, 'str'), + } + + url = _format_url_section(url, **path_format_arguments) + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if top is not None: + query_parameters['$top'] = _SERIALIZER.query("top", top, 'int', maximum=50, minimum=1) + if skip is not None: + query_parameters['$skip'] = _SERIALIZER.query("skip", skip, 'int', minimum=0) + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_health_status_request( + job_id, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + top = kwargs.pop('top', 20) # type: Optional[int] + skip = kwargs.pop('skip', 0) # type: Optional[int] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/health/jobs/{jobId}') + path_format_arguments = { + "jobId": _SERIALIZER.url("job_id", job_id, 'str'), + } + + url = _format_url_section(url, **path_format_arguments) + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if top is not None: + query_parameters['$top'] = _SERIALIZER.query("top", top, 'int', maximum=50, minimum=1) + if skip is not None: + query_parameters['$skip'] = _SERIALIZER.query("skip", skip, 'int', minimum=0) + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_cancel_health_job_request_initial( + job_id, # type: str + **kwargs # type: Any +): + # type: (...) -> HttpRequest + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/health/jobs/{jobId}') + path_format_arguments = { + "jobId": _SERIALIZER.url("job_id", job_id, 'str'), + } + + url = _format_url_section(url, **path_format_arguments) + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="DELETE", + url=url, + headers=header_parameters, + **kwargs + ) + + +def build_health_request_initial( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/health/jobs') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_entities_recognition_general_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/recognition/general') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_entities_recognition_pii_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + domain = kwargs.pop('domain', None) # type: Optional[str] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + pii_categories = kwargs.pop('pii_categories', None) # type: Optional[List[Union[str, "_models.PiiCategory"]]] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/recognition/pii') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + if domain is not None: + query_parameters['domain'] = _SERIALIZER.query("domain", domain, 'str') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + if pii_categories is not None: + query_parameters['piiCategories'] = _SERIALIZER.query("pii_categories", pii_categories, '[str]', div=',') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_entities_linking_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/entities/linking') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_key_phrases_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/keyPhrases') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_languages_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/languages') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + + +def build_sentiment_request( + **kwargs # type: Any +): + # type: (...) -> HttpRequest + content_type = kwargs.pop('content_type', None) # type: Optional[str] + model_version = kwargs.pop('model_version', None) # type: Optional[str] + show_stats = kwargs.pop('show_stats', None) # type: Optional[bool] + logging_opt_out = kwargs.pop('logging_opt_out', None) # type: Optional[bool] + opinion_mining = kwargs.pop('opinion_mining', None) # type: Optional[bool] + string_index_type = kwargs.pop('string_index_type', None) # type: Optional[Union[str, "_models.StringIndexType"]] + + accept = "application/json, text/json" + # Construct URL + url = kwargs.pop("template_url", '/sentiment') + + # Construct parameters + query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if model_version is not None: + query_parameters['model-version'] = _SERIALIZER.query("model_version", model_version, 'str') + if show_stats is not None: + query_parameters['showStats'] = _SERIALIZER.query("show_stats", show_stats, 'bool') + if logging_opt_out is not None: + query_parameters['loggingOptOut'] = _SERIALIZER.query("logging_opt_out", logging_opt_out, 'bool') + if opinion_mining is not None: + query_parameters['opinionMining'] = _SERIALIZER.query("opinion_mining", opinion_mining, 'bool') + if string_index_type is not None: + query_parameters['stringIndexType'] = _SERIALIZER.query("string_index_type", string_index_type, 'str') + + # Construct headers + header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=url, + params=query_parameters, + headers=header_parameters, + **kwargs + ) + +# fmt: on class TextAnalyticsClientOperationsMixin(object): def _analyze_initial( @@ -37,53 +455,50 @@ def _analyze_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" - # Construct URL - url = self._analyze_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] if body is not None: - body_content = self._serialize.body(body, 'AnalyzeBatchInput') + json = self._serialize.body(body, 'AnalyzeBatchInput') else: - body_content = None - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + json = None + + request = build_analyze_request_initial( + content_type=content_type, + json=json, + template_url=self._analyze_initial.metadata['url'], + ) + request = _convert_request(request) + path_format_arguments = { + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) - response_headers = {} deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('AnalyzeJobState', pipeline_response) if response.status_code == 202: response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized + _analyze_initial.metadata = {'url': '/analyze'} # type: ignore + + @distributed_trace def begin_analyze( self, body=None, # type: Optional["_models.AnalyzeBatchInput"] @@ -96,18 +511,23 @@ def begin_analyze( executed. :param body: Collection of documents to analyze and tasks to execute. - :type body: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeBatchInput + :type body: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeBatchInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. Pass + in False for this operation to not poll, or pass in your own initialized polling object for a + personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) - :rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the + result of cls(response) + :rtype: + ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.AnalyzeJobState"] lro_delay = kwargs.pop( 'polling_interval', @@ -117,25 +537,25 @@ def begin_analyze( if cont_token is None: raw_result = self._analyze_initial( body=body, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('AnalyzeJobState', pipeline_response) - if cls: return cls(pipeline_response, deserialized, {}) return deserialized + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AnalyzeActionsLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AnalyzeActionsLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -147,8 +567,10 @@ def get_long_running_output(pipeline_response): ) else: return AnalyzeActionsLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze.metadata = {'url': '/analyze'} # type: ignore + @distributed_trace def analyze_status( self, job_id, # type: str @@ -177,7 +599,7 @@ def analyze_status( :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: AnalyzeJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.AnalyzeJobState + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.AnalyzeJobState :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.AnalyzeJobState"] @@ -185,36 +607,27 @@ def analyze_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self.analyze_status.metadata['url'] # type: ignore + + request = build_analyze_status_request( + job_id=job_id, + show_stats=show_stats, + top=top, + skip=skip, + template_url=self.analyze_status.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=50, minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0) - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('AnalyzeJobState', pipeline_response) @@ -223,8 +636,11 @@ def analyze_status( return cls(pipeline_response, deserialized, {}) return deserialized + analyze_status.metadata = {'url': '/analyze/jobs/{jobId}'} # type: ignore + + @distributed_trace def health_status( self, job_id, # type: str @@ -251,7 +667,7 @@ def health_status( :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: HealthcareJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HealthcareJobState"] @@ -259,36 +675,27 @@ def health_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self.health_status.metadata['url'] # type: ignore + + request = build_health_status_request( + job_id=job_id, + top=top, + skip=skip, + show_stats=show_stats, + template_url=self.health_status.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=50, minimum=1) - if skip is not None: - query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', minimum=0) - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('HealthcareJobState', pipeline_response) @@ -297,8 +704,10 @@ def health_status( return cls(pipeline_response, deserialized, {}) return deserialized + health_status.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore + def _cancel_health_job_initial( self, job_id, # type: str @@ -310,40 +719,36 @@ def _cancel_health_job_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - accept = "application/json, text/json" - # Construct URL - url = self._cancel_health_job_initial.metadata['url'] # type: ignore + + request = build_cancel_health_job_request_initial( + job_id=job_id, + template_url=self._cancel_health_job_initial.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) response_headers = {} response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, None, response_headers) _cancel_health_job_initial.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore + + @distributed_trace def begin_cancel_health_job( self, job_id, # type: str @@ -358,15 +763,17 @@ def begin_cancel_health_job( :type job_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be LROBasePolling. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be LROBasePolling. Pass in False for + this operation to not poll, or pass in your own initialized polling object for a personal + polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( 'polling_interval', @@ -379,20 +786,18 @@ def begin_cancel_health_job( cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'jobId': self._serialize.url("job_id", job_id, 'str'), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = LROBasePolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = LROBasePolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -404,6 +809,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_cancel_health_job.metadata = {'url': '/entities/health/jobs/{jobId}'} # type: ignore def _health_initial( @@ -421,57 +827,50 @@ def _health_initial( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self._health_initial.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_health_request_initial( + content_type=content_type, + model_version=model_version, + string_index_type=string_index_type, + logging_opt_out=logging_opt_out, + json=json, + template_url=self._health_initial.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) - raise HttpResponseError(response=response, model=error) + raise HttpResponseError(response=response) - response_headers = {} deserialized = None + response_headers = {} if response.status_code == 200: deserialized = self._deserialize('HealthcareJobState', pipeline_response) if response.status_code == 202: response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + if cls: return cls(pipeline_response, deserialized, response_headers) return deserialized + _health_initial.metadata = {'url': '/entities/health/jobs'} # type: ignore + + @distributed_trace def begin_health( self, documents, # type: List["_models.MultiLanguageInput"] @@ -487,14 +886,14 @@ def begin_health( symptoms, etc) and their relations. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with the Text Analytics natural language @@ -505,15 +904,20 @@ def begin_health( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AnalyzeHealthcareEntitiesLROPollingMethod. - Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be + AnalyzeHealthcareEntitiesLROPollingMethod. Pass in False for this operation to not poll, or + pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_1.models.HealthcareJobState] - :raises ~azure.core.exceptions.HttpResponseError: + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either + HealthcareJobState or the result of cls(response) + :rtype: + ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_2_preview_2.models.HealthcareJobState] + :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.HealthcareJobState"] lro_delay = kwargs.pop( 'polling_interval', @@ -526,25 +930,25 @@ def begin_health( model_version=model_version, string_index_type=string_index_type, logging_opt_out=logging_opt_out, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('HealthcareJobState', pipeline_response) - if cls: return cls(pipeline_response, deserialized, {}) return deserialized + path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - if polling is True: polling_method = AnalyzeHealthcareEntitiesLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AnalyzeHealthcareEntitiesLROPollingMethod(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -556,8 +960,10 @@ def get_long_running_output(pipeline_response): ) else: return AnalyzeHealthcareEntitiesLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_health.metadata = {'url': '/entities/health/jobs'} # type: ignore + @distributed_trace def entities_recognition_general( self, documents, # type: List["_models.MultiLanguageInput"] @@ -576,7 +982,7 @@ def entities_recognition_general( Analytics API` for the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -594,10 +1000,10 @@ def entities_recognition_general( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: EntitiesResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntitiesResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.EntitiesResult"] @@ -606,43 +1012,32 @@ def entities_recognition_general( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_general.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_general_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + string_index_type=string_index_type, + json=json, + template_url=self.entities_recognition_general.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntitiesResult', pipeline_response) @@ -651,8 +1046,11 @@ def entities_recognition_general( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_general.metadata = {'url': '/entities/recognition/general'} # type: ignore + + @distributed_trace def entities_recognition_pii( self, documents, # type: List["_models.MultiLanguageInput"] @@ -674,7 +1072,7 @@ def entities_recognition_pii( list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -695,12 +1093,12 @@ def entities_recognition_pii( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_1.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_2_preview_2.models.PiiCategory] :keyword callable cls: A custom type or function that will be passed the direct response :return: PiiResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.PiiResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.PiiResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.PiiResult"] @@ -709,47 +1107,34 @@ def entities_recognition_pii( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_recognition_pii.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_recognition_pii_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + domain=domain, + string_index_type=string_index_type, + pii_categories=pii_categories, + json=json, + template_url=self.entities_recognition_pii.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if domain is not None: - query_parameters['domain'] = self._serialize.query("domain", domain, 'str') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - if pii_categories is not None: - query_parameters['piiCategories'] = self._serialize.query("pii_categories", pii_categories, '[str]', div=',') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('PiiResult', pipeline_response) @@ -758,8 +1143,11 @@ def entities_recognition_pii( return cls(pipeline_response, deserialized, {}) return deserialized + entities_recognition_pii.metadata = {'url': '/entities/recognition/pii'} # type: ignore + + @distributed_trace def entities_linking( self, documents, # type: List["_models.MultiLanguageInput"] @@ -777,7 +1165,7 @@ def entities_linking( the list of enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -795,10 +1183,10 @@ def entities_linking( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: EntityLinkingResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.EntityLinkingResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.EntityLinkingResult"] @@ -807,43 +1195,32 @@ def entities_linking( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.entities_linking.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_entities_linking_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + string_index_type=string_index_type, + json=json, + template_url=self.entities_linking.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntityLinkingResult', pipeline_response) @@ -852,8 +1229,11 @@ def entities_linking( return cls(pipeline_response, deserialized, {}) return deserialized + entities_linking.metadata = {'url': '/entities/linking'} # type: ignore + + @distributed_trace def key_phrases( self, documents, # type: List["_models.MultiLanguageInput"] @@ -870,7 +1250,7 @@ def key_phrases( enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -887,7 +1267,7 @@ def key_phrases( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: KeyPhraseResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.KeyPhraseResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.KeyPhraseResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyPhraseResult"] @@ -896,41 +1276,31 @@ def key_phrases( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.key_phrases.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_key_phrases_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + json=json, + template_url=self.key_phrases.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('KeyPhraseResult', pipeline_response) @@ -939,8 +1309,11 @@ def key_phrases( return cls(pipeline_response, deserialized, {}) return deserialized + key_phrases.metadata = {'url': '/keyPhrases'} # type: ignore + + @distributed_trace def languages( self, documents, # type: List["_models.LanguageInput"] @@ -958,7 +1331,7 @@ def languages( enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.LanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -975,7 +1348,7 @@ def languages( :type logging_opt_out: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: LanguageResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.LanguageResult + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.LanguageResult"] @@ -984,41 +1357,31 @@ def languages( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.LanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.languages.metadata['url'] # type: ignore + _input = _models.LanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'LanguageBatchInput') + + request = build_languages_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + json=json, + template_url=self.languages.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'LanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('LanguageResult', pipeline_response) @@ -1027,8 +1390,11 @@ def languages( return cls(pipeline_response, deserialized, {}) return deserialized + languages.metadata = {'url': '/languages'} # type: ignore + + @distributed_trace def sentiment( self, documents, # type: List["_models.MultiLanguageInput"] @@ -1047,7 +1413,7 @@ def sentiment( (targets and assessments). :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_2_preview_1.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_2_preview_2.models.MultiLanguageInput] :param model_version: (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. :type model_version: str @@ -1068,10 +1434,10 @@ def sentiment( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_1.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_2_preview_2.models.StringIndexType :keyword callable cls: A custom type or function that will be passed the direct response :return: SentimentResponse, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_2_preview_1.models.SentimentResponse + :rtype: ~azure.ai.textanalytics.v3_2_preview_2.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.SentimentResponse"] @@ -1080,45 +1446,33 @@ def sentiment( } error_map.update(kwargs.pop('error_map', {})) - _input = _models.MultiLanguageBatchInput(documents=documents) - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json, text/json" + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - # Construct URL - url = self.sentiment.metadata['url'] # type: ignore + _input = _models.MultiLanguageBatchInput(documents=documents) + json = self._serialize.body(_input, 'MultiLanguageBatchInput') + + request = build_sentiment_request( + content_type=content_type, + model_version=model_version, + show_stats=show_stats, + logging_opt_out=logging_opt_out, + opinion_mining=opinion_mining, + string_index_type=string_index_type, + json=json, + template_url=self.sentiment.metadata['url'], + ) + request = _convert_request(request) path_format_arguments = { - 'Endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + "Endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if model_version is not None: - query_parameters['model-version'] = self._serialize.query("model_version", model_version, 'str') - if show_stats is not None: - query_parameters['showStats'] = self._serialize.query("show_stats", show_stats, 'bool') - if logging_opt_out is not None: - query_parameters['loggingOptOut'] = self._serialize.query("logging_opt_out", logging_opt_out, 'bool') - if opinion_mining is not None: - query_parameters['opinionMining'] = self._serialize.query("opinion_mining", opinion_mining, 'bool') - if string_index_type is not None: - query_parameters['stringIndexType'] = self._serialize.query("string_index_type", string_index_type, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_input, 'MultiLanguageBatchInput') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request.url = self._client.format_url(request.url, **path_format_arguments) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SentimentResponse', pipeline_response) @@ -1127,4 +1481,6 @@ def sentiment( return cls(pipeline_response, deserialized, {}) return deserialized + sentiment.metadata = {'url': '/sentiment'} # type: ignore + diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/py.typed b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/py.typed similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_1/py.typed rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2/py.typed diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_lro.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_lro.py index de42817c54d1..025bdeb1c0bb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_lro.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_lro.py @@ -3,6 +3,9 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ + +import base64 +import functools from typing import TYPE_CHECKING, Generic from six.moves.urllib.parse import urlencode from azure.core.polling._poller import PollingReturnType @@ -110,6 +113,8 @@ def _poll(self): class AnalyzeHealthcareEntitiesLROPollingMethod(TextAnalyticsLROPollingMethod): def __init__(self, *args, **kwargs): + self._doc_id_order = kwargs.pop("doc_id_order", None) + self._show_stats = kwargs.pop("show_stats", None) self._text_analytics_client = kwargs.pop("text_analytics_client") super(AnalyzeHealthcareEntitiesLROPollingMethod, self).__init__(*args, **kwargs) @@ -143,6 +148,13 @@ def id(self): return None return self._current_body.job_id + def get_continuation_token(self): + # type: () -> str + import pickle + self._initial_response.context.options["doc_id_order"] = self._doc_id_order + self._initial_response.context.options["show_stats"] = self._show_stats + return base64.b64encode(pickle.dumps(self._initial_response)).decode('ascii') + class AnalyzeHealthcareEntitiesLROPoller(LROPoller, Generic[PollingReturnType]): def polling_method(self): @@ -190,6 +202,24 @@ def id(self): """ return self.polling_method().id + @classmethod + def from_continuation_token(cls, polling_method, continuation_token, **kwargs): # type: ignore + # type: (AnalyzeHealthcareEntitiesLROPollingMethod, str, Any) -> AnalyzeHealthcareEntitiesLROPoller + client, initial_response, deserialization_callback = polling_method.from_continuation_token( + continuation_token, **kwargs + ) + polling_method._lro_algorithms = [ # pylint: disable=protected-access + TextAnalyticsOperationResourcePolling( + show_stats=initial_response.context.options["show_stats"] + ) + ] + return cls( + client, + initial_response, + functools.partial(deserialization_callback, initial_response), + polling_method + ) + def cancel(self, **kwargs): # type: ignore # type: (Any) -> LROPoller[None] """Cancel the operation currently being polled. @@ -231,6 +261,12 @@ def cancel(self, **kwargs): # type: ignore class AnalyzeActionsLROPollingMethod(TextAnalyticsLROPollingMethod): + def __init__(self, *args, **kwargs): + self._doc_id_order = kwargs.pop("doc_id_order", None) + self._task_id_order = kwargs.pop("task_id_order", None) + self._show_stats = kwargs.pop("show_stats", None) + super(AnalyzeActionsLROPollingMethod, self).__init__(*args, **kwargs) + @property def _current_body(self): from ._generated.models import AnalyzeJobMetadata @@ -291,6 +327,14 @@ def id(self): return None return self._current_body.job_id + def get_continuation_token(self): + # type: () -> str + import pickle + self._initial_response.context.options["doc_id_order"] = self._doc_id_order + self._initial_response.context.options["task_id_order"] = self._task_id_order + self._initial_response.context.options["show_stats"] = self._show_stats + return base64.b64encode(pickle.dumps(self._initial_response)).decode('ascii') + class AnalyzeActionsLROPoller(LROPoller, Generic[PollingReturnType]): def polling_method(self): @@ -390,3 +434,21 @@ def id(self): :rtype: str """ return self.polling_method().id + + @classmethod + def from_continuation_token(cls, polling_method, continuation_token, **kwargs): # type: ignore + # type: (AnalyzeActionsLROPollingMethod, str, Any) -> AnalyzeActionsLROPoller + client, initial_response, deserialization_callback = polling_method.from_continuation_token( + continuation_token, **kwargs + ) + polling_method._lro_algorithms = [ # pylint: disable=protected-access + TextAnalyticsOperationResourcePolling( + show_stats=initial_response.context.options["show_stats"] + ) + ] + return cls( + client, + initial_response, + functools.partial(deserialization_callback, initial_response), + polling_method + ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py index 8a43a22eaf52..9cdd6df18ce5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py @@ -11,7 +11,7 @@ ) from ._generated.v3_0 import models as _v3_0_models -from ._generated.v3_2_preview_1 import models as _v3_2_preview_1_models +from ._generated.v3_2_preview_2 import models as _v3_2_preview_models from ._version import DEFAULT_API_VERSION @@ -1746,6 +1746,9 @@ class _AnalyzeActionsType(str, Enum): ) ANALYZE_SENTIMENT = "analyze_sentiment" #: Sentiment Analysis action. EXTRACT_SUMMARY = "extract_summary" + RECOGNIZE_CUSTOM_ENTITIES = "recognize_custom_entities" + SINGLE_CATEGORY_CLASSIFY = "single_category_classify" + MULTI_CATEGORY_CLASSIFY = "multi_category_classify" class RecognizeEntitiesAction(DictMixin): @@ -1795,9 +1798,9 @@ def __repr__(self, **kwargs): :1024 ] - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: - from ._generated.v3_2_preview_1 import models + from ._generated.v3_2_preview_2 import models else: from ._generated.v3_1 import models return models.EntitiesTask( @@ -1805,7 +1808,8 @@ def _to_generated(self, api_version): model_version=self.model_version, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -1872,9 +1876,9 @@ def __repr__(self, **kwargs): )[:1024] ) - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: - from ._generated.v3_2_preview_1 import models + from ._generated.v3_2_preview_2 import models else: from ._generated.v3_1 import models return models.SentimentAnalysisTask( @@ -1883,7 +1887,8 @@ def _to_generated(self, api_version): opinion_mining=self.show_opinion_mining, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -1954,9 +1959,9 @@ def __repr__(self, **kwargs): )[:1024] ) - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: - from ._generated.v3_2_preview_1 import models + from ._generated.v3_2_preview_2 import models else: from ._generated.v3_1 import models return models.PiiTask( @@ -1966,7 +1971,8 @@ def _to_generated(self, api_version): pii_categories=self.categories_filter, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -2009,16 +2015,17 @@ def __repr__(self, **kwargs): )[:1024] ) - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: - from ._generated.v3_2_preview_1 import models + from ._generated.v3_2_preview_2 import models else: from ._generated.v3_1 import models return models.KeyPhrasesTask( parameters=models.KeyPhrasesTaskParameters( model_version=self.model_version, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) @@ -2071,9 +2078,9 @@ def __repr__(self, **kwargs): )[:1024] ) - def _to_generated(self, api_version): + def _to_generated(self, api_version, task_id): if api_version == DEFAULT_API_VERSION: - from ._generated.v3_2_preview_1 import models + from ._generated.v3_2_preview_2 import models else: from ._generated.v3_1 import models return models.EntityLinkingTask( @@ -2081,13 +2088,15 @@ def _to_generated(self, api_version): model_version=self.model_version, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, - ) + ), + task_name=task_id ) class ExtractSummaryAction(DictMixin): - """ExtractSummaryAction encapsulates the parameters for starting a long-running Extractive - Text Summarization operation. + """ExtractSummaryAction encapsulates the parameters for starting a long-running Extractive Text + Summarization operation. For a conceptual discussion of extractive summarization, see the service documentation: + https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/extractive-summarization :keyword str model_version: The model version to use for the analysis. :keyword str string_index_type: Specifies the method used to interpret string offsets. @@ -2140,15 +2149,16 @@ def __repr__(self): )[:1024] ) - def _to_generated(self, api_version): # pylint: disable=unused-argument - return _v3_2_preview_1_models.ExtractiveSummarizationTask( - parameters=_v3_2_preview_1_models.ExtractiveSummarizationTaskParameters( + def _to_generated(self, api_version, task_id): # pylint: disable=unused-argument + return _v3_2_preview_models.ExtractiveSummarizationTask( + parameters=_v3_2_preview_models.ExtractiveSummarizationTaskParameters( model_version=self.model_version, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, sentence_count=self.max_sentence_count, sort_by=self.order_by, - ) + ), + task_name=task_id ) @@ -2244,3 +2254,381 @@ def _from_generated(cls, sentence): offset=sentence.offset, length=sentence.length, ) + + +class RecognizeCustomEntitiesAction(DictMixin): + """RecognizeCustomEntitiesAction encapsulates the parameters for starting a long-running custom entity + recognition operation. To train a model to recognize your custom entities, see + https://aka.ms/azsdk/textanalytics/customentityrecognition + + :param str project_name: Required. This field indicates the project name for the model. + :param str deployment_name: This field indicates the deployment name for the model. + :keyword str string_index_type: Specifies the method used to interpret string offsets. + `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, + you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information + see https://aka.ms/text-analytics-offsets + :keyword bool disable_service_logs: If set to true, you opt-out of having your text input + logged on the service side for troubleshooting. By default, Text Analytics logs your + input text for 48 hours, solely to allow for troubleshooting issues in providing you with + the Text Analytics natural language processing functions. Setting this parameter to true, + disables input logging and may limit our ability to remediate issues that occur. Please see + Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for + additional details, and Microsoft Responsible AI principles at + https://www.microsoft.com/ai/responsible-ai. + :ivar str project_name: This field indicates the project name for the model. + :ivar str deployment_name: This field indicates the deployment name for the model. + :ivar str string_index_type: Specifies the method used to interpret string offsets. + `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, + you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information + see https://aka.ms/text-analytics-offsets + :ivar bool disable_service_logs: If set to true, you opt-out of having your text input + logged on the service side for troubleshooting. By default, Text Analytics logs your + input text for 48 hours, solely to allow for troubleshooting issues in providing you with + the Text Analytics natural language processing functions. Setting this parameter to true, + disables input logging and may limit our ability to remediate issues that occur. Please see + Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for + additional details, and Microsoft Responsible AI principles at + https://www.microsoft.com/ai/responsible-ai. + """ + + def __init__( + self, + project_name, + deployment_name, + **kwargs + ): + self.project_name = project_name + self.deployment_name = deployment_name + self.disable_service_logs = kwargs.get('disable_service_logs', None) + self.string_index_type = kwargs.get('string_index_type', None) + + def __repr__(self): + return "RecognizeCustomEntitiesAction(project_name={}, deployment_name={}, disable_service_logs={}, " \ + "string_index_type={})".format( + self.project_name, + self.deployment_name, + self.disable_service_logs, + self.string_index_type, + )[:1024] + + def _to_generated(self, api_version, task_id): # pylint: disable=unused-argument + return _v3_2_preview_models.CustomEntitiesTask( + parameters=_v3_2_preview_models.CustomEntitiesTaskParameters( + project_name=self.project_name, + deployment_name=self.deployment_name, + string_index_type=self.string_index_type, + logging_opt_out=self.disable_service_logs, + ), + task_name=task_id + ) + + +class RecognizeCustomEntitiesResult(DictMixin): + """RecognizeCustomEntitiesResult is a result object which contains + the custom recognized entities from a particular document. + + :ivar str id: Unique, non-empty document identifier that matches the + document id that was passed in with the request. If not specified + in the request, an id is assigned for the document. + :ivar entities: Recognized custom entities in the document. + :vartype entities: + list[~azure.ai.textanalytics.CategorizedEntity] + :ivar warnings: Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning] + :ivar statistics: If `show_stats=True` was specified in the request this + field will contain information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.TextDocumentStatistics + :ivar bool is_error: Boolean check for error item when iterating over list of + results. Always False for an instance of a RecognizeCustomEntitiesResult. + """ + + def __init__(self, **kwargs): + self.id = kwargs.get("id", None) + self.entities = kwargs.get("entities", None) + self.warnings = kwargs.get("warnings", []) + self.statistics = kwargs.get("statistics", None) + self.is_error = False + + def __repr__(self): + return "RecognizeCustomEntitiesResult(id={}, entities={}, warnings={}, statistics={}, is_error={})".format( + self.id, + repr(self.entities), + repr(self.warnings), + repr(self.statistics), + self.is_error, + )[ + :1024 + ] + + @classmethod + def _from_generated(cls, result): + return cls( + id=result.id, + entities=[ + CategorizedEntity._from_generated(e) # pylint: disable=protected-access + for e in result.entities + ], + warnings=[ + TextAnalyticsWarning._from_generated( # pylint: disable=protected-access + w + ) + for w in result.warnings + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + result.statistics + ), + ) + + +class MultiCategoryClassifyAction(DictMixin): + """MultiCategoryClassifyAction encapsulates the parameters for starting a long-running custom multi category + classification operation. To train a model to classify your documents, see + https://aka.ms/azsdk/textanalytics/customfunctionalities + + :param str project_name: Required. This field indicates the project name for the model. + :param str deployment_name: Required. This field indicates the deployment name for the model. + :keyword bool disable_service_logs: If set to true, you opt-out of having your text input + logged on the service side for troubleshooting. By default, Text Analytics logs your + input text for 48 hours, solely to allow for troubleshooting issues in providing you with + the Text Analytics natural language processing functions. Setting this parameter to true, + disables input logging and may limit our ability to remediate issues that occur. Please see + Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for + additional details, and Microsoft Responsible AI principles at + https://www.microsoft.com/ai/responsible-ai. + :ivar str project_name: This field indicates the project name for the model. + :ivar str deployment_name: This field indicates the deployment name for the model. + :ivar bool disable_service_logs: If set to true, you opt-out of having your text input + logged on the service side for troubleshooting. By default, Text Analytics logs your + input text for 48 hours, solely to allow for troubleshooting issues in providing you with + the Text Analytics natural language processing functions. Setting this parameter to true, + disables input logging and may limit our ability to remediate issues that occur. Please see + Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for + additional details, and Microsoft Responsible AI principles at + https://www.microsoft.com/ai/responsible-ai. + """ + + def __init__( + self, + project_name, + deployment_name, + **kwargs + ): + self.project_name = project_name + self.deployment_name = deployment_name + self.disable_service_logs = kwargs.get('disable_service_logs', None) + + def __repr__(self): + return "MultiCategoryClassifyAction(project_name={}, deployment_name={}, " \ + "disable_service_logs={})".format( + self.project_name, + self.deployment_name, + self.disable_service_logs, + )[:1024] + + def _to_generated(self, api_version, task_id): # pylint: disable=unused-argument + return _v3_2_preview_models.CustomMultiClassificationTask( + parameters=_v3_2_preview_models.CustomMultiClassificationTaskParameters( + project_name=self.project_name, + deployment_name=self.deployment_name, + logging_opt_out=self.disable_service_logs, + ), + task_name=task_id + ) + + +class MultiCategoryClassifyResult(DictMixin): + """MultiCategoryClassifyResult is a result object which contains + the classifications for a particular document. + + :ivar str id: Unique, non-empty document identifier. + :ivar classifications: Recognized classification results in the document. + :vartype classifications: list[~azure.ai.textanalytics.ClassificationCategory] + :ivar warnings: Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning] + :ivar statistics: If `show_stats=True` was specified in the request this + field will contain information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.TextDocumentStatistics + :ivar bool is_error: Boolean check for error item when iterating over list of + results. Always False for an instance of a MultiCategoryClassifyResult. + """ + + def __init__( + self, + **kwargs + ): + self.id = kwargs.get('id', None) + self.classifications = kwargs.get('classifications', None) + self.warnings = kwargs.get('warnings', []) + self.statistics = kwargs.get('statistics', None) + self.is_error = False + + def __repr__(self): + return "MultiCategoryClassifyResult(id={}, classifications={}, warnings={}, statistics={}, " \ + "is_error={})".format( + self.id, + repr(self.classifications), + repr(self.warnings), + repr(self.statistics), + self.is_error, + )[ + :1024 + ] + + @classmethod + def _from_generated(cls, result): + return cls( + id=result.id, + classifications=[ + ClassificationCategory._from_generated(e) # pylint: disable=protected-access + for e in result.classifications + ], + warnings=[ + TextAnalyticsWarning._from_generated( # pylint: disable=protected-access + w + ) + for w in result.warnings + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + result.statistics + ), + ) + + +class SingleCategoryClassifyAction(DictMixin): + """SingleCategoryClassifyAction encapsulates the parameters for starting a long-running custom single category + classification operation. To train a model to classify your documents, see + https://aka.ms/azsdk/textanalytics/customfunctionalities + + :param str project_name: Required. This field indicates the project name for the model. + :param str deployment_name: Required. This field indicates the deployment name for the model. + :keyword bool disable_service_logs: If set to true, you opt-out of having your text input + logged on the service side for troubleshooting. By default, Text Analytics logs your + input text for 48 hours, solely to allow for troubleshooting issues in providing you with + the Text Analytics natural language processing functions. Setting this parameter to true, + disables input logging and may limit our ability to remediate issues that occur. Please see + Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for + additional details, and Microsoft Responsible AI principles at + https://www.microsoft.com/ai/responsible-ai. + :ivar str project_name: This field indicates the project name for the model. + :ivar str deployment_name: This field indicates the deployment name for the model. + :ivar bool disable_service_logs: If set to true, you opt-out of having your text input + logged on the service side for troubleshooting. By default, Text Analytics logs your + input text for 48 hours, solely to allow for troubleshooting issues in providing you with + the Text Analytics natural language processing functions. Setting this parameter to true, + disables input logging and may limit our ability to remediate issues that occur. Please see + Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for + additional details, and Microsoft Responsible AI principles at + https://www.microsoft.com/ai/responsible-ai. + """ + + def __init__( + self, + project_name, + deployment_name, + **kwargs + ): + self.project_name = project_name + self.deployment_name = deployment_name + self.disable_service_logs = kwargs.get('disable_service_logs', None) + + def __repr__(self): + return "SingleCategoryClassifyAction(project_name={}, deployment_name={}, " \ + "disable_service_logs={})".format( + self.project_name, + self.deployment_name, + self.disable_service_logs, + )[:1024] + + def _to_generated(self, api_version, task_id): # pylint: disable=unused-argument + return _v3_2_preview_models.CustomSingleClassificationTask( + parameters=_v3_2_preview_models.CustomSingleClassificationTaskParameters( + project_name=self.project_name, + deployment_name=self.deployment_name, + logging_opt_out=self.disable_service_logs, + ), + task_name=task_id + ) + + +class SingleCategoryClassifyResult(DictMixin): + """SingleCategoryClassifyResult is a result object which contains + the classification for a particular document. + + :ivar str id: Unique, non-empty document identifier. + :ivar classification: Recognized classification results in the document. + :vartype classification: ~azure.ai.textanalytics.ClassificationCategory + :ivar warnings: Warnings encountered while processing document. + :vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning] + :ivar statistics: If `show_stats=True` was specified in the request this + field will contain information about the document payload. + :vartype statistics: ~azure.ai.textanalytics.TextDocumentStatistics + :ivar bool is_error: Boolean check for error item when iterating over list of + results. Always False for an instance of a SingleCategoryClassifyResult. + """ + + def __init__( + self, + **kwargs + ): + self.id = kwargs.get('id', None) + self.classification = kwargs.get('classification', None) + self.warnings = kwargs.get('warnings', []) + self.statistics = kwargs.get('statistics', None) + self.is_error = False + + def __repr__(self): + return "SingleCategoryClassifyResult(id={}, classification={}, warnings={}, statistics={}, " \ + "is_error={})".format( + self.id, + repr(self.classification), + repr(self.warnings), + repr(self.statistics), + self.is_error, + )[ + :1024 + ] + + @classmethod + def _from_generated(cls, result): + return cls( + id=result.id, + classification= + ClassificationCategory._from_generated(result.classification), # pylint: disable=protected-access + warnings=[ + TextAnalyticsWarning._from_generated( # pylint: disable=protected-access + w + ) + for w in result.warnings + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + result.statistics + ), + ) + + +class ClassificationCategory(DictMixin): + """ClassificationCategory represents a classification of the input document. + + :ivar str category: Classification type. + :ivar float confidence_score: Confidence score between 0 and 1 of the recognized classification. + """ + + def __init__( + self, + **kwargs + ): + self.category = kwargs.get('category', None) + self.confidence_score = kwargs.get('confidence_score', None) + + def __repr__(self): + return "ClassificationCategory(category={}, confidence_score={})".format( + self.category, + self.confidence_score, + )[:1024] + + @classmethod + def _from_generated(cls, result): + return cls( + category=result.category, + confidence_score=result.confidence_score + ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py index 2d94bfef3b31..497e12a361fa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py @@ -6,15 +6,19 @@ import six - +from ._generated.models import ( + EntitiesTask, + PiiTask, + EntityLinkingTask, + SentimentAnalysisTask, + ExtractiveSummarizationTask, + CustomEntitiesTask, + CustomSingleClassificationTask, + CustomMultiClassificationTask, +) from ._models import ( DetectLanguageInput, TextDocumentInput, - RecognizeEntitiesAction, - RecognizePiiEntitiesAction, - RecognizeLinkedEntitiesAction, - AnalyzeSentimentAction, - ExtractSummaryAction, _AnalyzeActionsType, ) @@ -88,17 +92,23 @@ def _validate_input(documents, hint, whole_input_hint): return request_batch -def _determine_action_type(action): - if isinstance(action, RecognizeEntitiesAction): +def _determine_action_type(action): # pylint: disable=too-many-return-statements + if isinstance(action, EntitiesTask): return _AnalyzeActionsType.RECOGNIZE_ENTITIES - if isinstance(action, RecognizePiiEntitiesAction): + if isinstance(action, PiiTask): return _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES - if isinstance(action, RecognizeLinkedEntitiesAction): + if isinstance(action, EntityLinkingTask): return _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES - if isinstance(action, AnalyzeSentimentAction): + if isinstance(action, SentimentAnalysisTask): return _AnalyzeActionsType.ANALYZE_SENTIMENT - if isinstance(action, ExtractSummaryAction): + if isinstance(action, ExtractiveSummarizationTask): return _AnalyzeActionsType.EXTRACT_SUMMARY + if isinstance(action, CustomEntitiesTask): + return _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES + if isinstance(action, CustomSingleClassificationTask): + return _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY + if isinstance(action, CustomMultiClassificationTask): + return _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY return _AnalyzeActionsType.EXTRACT_KEY_PHRASES diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py index d412ddf32643..a464e747c1dc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py @@ -34,6 +34,9 @@ AnalyzeHealthcareEntitiesResult, ExtractSummaryResult, _AnalyzeActionsType, + RecognizeCustomEntitiesResult, + SingleCategoryClassifyResult, + MultiCategoryClassifyResult, ) @@ -260,6 +263,32 @@ def summary_result( ) +@prepare_result +def custom_entities_result( + custom_entities, results, *args, **kwargs +): # pylint: disable=unused-argument + return RecognizeCustomEntitiesResult._from_generated( # pylint: disable=protected-access + custom_entities + ) + + +@prepare_result +def single_category_classify_result( + custom_category, results, *args, **kwargs +): # pylint: disable=unused-argument + return SingleCategoryClassifyResult._from_generated( # pylint: disable=protected-access + custom_category + ) + +@prepare_result +def multi_category_classify_result( + custom_categories, results, *args, **kwargs +): # pylint: disable=unused-argument + return MultiCategoryClassifyResult._from_generated( # pylint: disable=protected-access + custom_categories + ) + + def healthcare_extract_page_data( doc_id_order, obj, response_headers, health_job_state ): # pylint: disable=unused-argument @@ -271,7 +300,7 @@ def healthcare_extract_page_data( ) -def _get_deserialization_callback_from_task_type(task_type): +def _get_deserialization_callback_from_task_type(task_type): # pylint: disable=too-many-return-statements if task_type == _AnalyzeActionsType.RECOGNIZE_ENTITIES: return entities_result if task_type == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES: @@ -282,10 +311,16 @@ def _get_deserialization_callback_from_task_type(task_type): return sentiment_result if task_type == _AnalyzeActionsType.EXTRACT_SUMMARY: return summary_result + if task_type == _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES: + return custom_entities_result + if task_type == _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY: + return single_category_classify_result + if task_type == _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY: + return multi_category_classify_result return key_phrases_result -def _get_property_name_from_task_type(task_type): +def _get_property_name_from_task_type(task_type): # pylint: disable=too-many-return-statements if task_type == _AnalyzeActionsType.RECOGNIZE_ENTITIES: return "entity_recognition_tasks" if task_type == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES: @@ -296,23 +331,26 @@ def _get_property_name_from_task_type(task_type): return "sentiment_analysis_tasks" if task_type == _AnalyzeActionsType.EXTRACT_SUMMARY: return "extractive_summarization_tasks" + if task_type == _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES: + return "custom_entity_recognition_tasks" + if task_type == _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY: + return "custom_single_classification_tasks" + if task_type == _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY: + return "custom_multi_classification_tasks" return "key_phrase_extraction_tasks" -def _get_good_result( - current_task_type, - index_of_task_result, - doc_id_order, - response_headers, - returned_tasks_object, -): +def _get_good_result(task, doc_id_order, response_headers, returned_tasks_object): + current_task_type, task_name = task deserialization_callback = _get_deserialization_callback_from_task_type( current_task_type ) property_name = _get_property_name_from_task_type(current_task_type) - response_task_to_deserialize = getattr(returned_tasks_object, property_name)[ - index_of_task_result - ] + try: + response_task_to_deserialize = \ + next(task for task in getattr(returned_tasks_object, property_name) if task.task_name == task_name) + except StopIteration: + raise ValueError("Unexpected response from service - unable to deserialize result.") return deserialization_callback( doc_id_order, response_task_to_deserialize.results, response_headers, lro=True ) @@ -320,15 +358,10 @@ def _get_good_result( def get_iter_items(doc_id_order, task_order, response_headers, analyze_job_state): iter_items = defaultdict(list) # map doc id to action results - task_type_to_index = defaultdict( - int - ) # need to keep track of how many of each type of tasks we've seen returned_tasks_object = analyze_job_state.tasks - for current_task_type in task_order: - index_of_task_result = task_type_to_index[current_task_type] + for task in task_order: results = _get_good_result( - current_task_type, - index_of_task_result, + task, doc_id_order, response_headers, returned_tasks_object, @@ -336,7 +369,6 @@ def get_iter_items(doc_id_order, task_order, response_headers, analyze_job_state for result in results: iter_items[result.id].append(result) - task_type_to_index[current_task_type] += 1 return [iter_items[doc_id] for doc_id in doc_id_order if doc_id in iter_items] diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py index bc93cc5d6ae7..e10688b27c0b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_text_analytics_client.py @@ -5,7 +5,6 @@ # ------------------------------------ # pylint: disable=too-many-lines -import copy from typing import ( Union, Any, @@ -18,6 +17,7 @@ from azure.core.tracing.decorator import distributed_trace from azure.core.exceptions import HttpResponseError from ._base_client import TextAnalyticsClientBase, TextAnalyticsApiVersion +from ._lro import AnalyzeActionsLROPoller, AnalyzeHealthcareEntitiesLROPoller from ._request_handlers import ( _validate_input, _determine_action_type, @@ -64,8 +64,13 @@ AnalyzeHealthcareEntitiesResult, ExtractSummaryAction, ExtractSummaryResult, + RecognizeCustomEntitiesAction, + RecognizeCustomEntitiesResult, + SingleCategoryClassifyAction, + SingleCategoryClassifyResult, + MultiCategoryClassifyAction, + MultiCategoryClassifyResult, ) - from ._lro import AnalyzeHealthcareEntitiesLROPoller, AnalyzeActionsLROPoller class TextAnalyticsClient(TextAnalyticsClientBase): @@ -558,7 +563,10 @@ def begin_analyze_healthcare_entities( # type: ignore see https://aka.ms/text-analytics-offsets :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. - :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword str continuation_token: + Call `continuation_token()` on the poller object to save the long-running operation (LRO) + state into an opaque token. Pass the value as the `continuation_token` keyword argument + to restart the LRO from a saved state. :keyword bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your input text on the service side for troubleshooting. If set to False, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with @@ -589,7 +597,6 @@ def begin_analyze_healthcare_entities( # type: ignore """ language_arg = kwargs.pop("language", None) language = language_arg if language_arg is not None else self._default_language - docs = _validate_input(documents, "language", language) model_version = kwargs.pop("model_version", None) show_stats = kwargs.pop("show_stats", False) polling_interval = kwargs.pop("polling_interval", 5) @@ -597,7 +604,28 @@ def begin_analyze_healthcare_entities( # type: ignore string_index_type = kwargs.pop( "string_index_type", self._string_index_type_default ) + disable_service_logs = kwargs.pop("disable_service_logs", None) + + if continuation_token: + def get_result_from_cont_token(initial_response, pipeline_response): + doc_id_order = initial_response.context.options["doc_id_order"] + show_stats = initial_response.context.options["show_stats"] + return self._healthcare_result_callback( + doc_id_order, pipeline_response, None, {}, show_stats=show_stats + ) + + return AnalyzeHealthcareEntitiesLROPoller.from_continuation_token( + polling_method=AnalyzeHealthcareEntitiesLROPollingMethod( + text_analytics_client=self._client, + timeout=polling_interval, + **kwargs + ), + client=self._client._client, # pylint: disable=protected-access + deserialization_callback=get_result_from_cont_token, + continuation_token=continuation_token + ) + docs = _validate_input(documents, "language", language) doc_id_order = [doc.get("id") for doc in docs] my_cls = kwargs.pop( "cls", @@ -605,28 +633,28 @@ def begin_analyze_healthcare_entities( # type: ignore self._healthcare_result_callback, doc_id_order, show_stats=show_stats ), ) - disable_service_logs = kwargs.pop("disable_service_logs", None) - polling_kwargs = kwargs - operation_kwargs = copy.copy(kwargs) - if disable_service_logs is not None: - operation_kwargs["logging_opt_out"] = disable_service_logs try: return self._client.begin_health( docs, model_version=model_version, string_index_type=string_index_type, + logging_opt_out=disable_service_logs, cls=my_cls, polling=AnalyzeHealthcareEntitiesLROPollingMethod( text_analytics_client=self._client, timeout=polling_interval, + doc_id_order=doc_id_order, + show_stats=show_stats, lro_algorithms=[ - TextAnalyticsOperationResourcePolling(show_stats=show_stats) + TextAnalyticsOperationResourcePolling( + show_stats=show_stats, + ) ], - **polling_kwargs + **kwargs ), continuation_token=continuation_token, - **operation_kwargs + **kwargs ) except ValueError as error: @@ -854,15 +882,18 @@ def _analyze_result_callback( def begin_analyze_actions( # type: ignore self, documents, # type: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]] - actions, # type: List[Union[RecognizeEntitiesAction, RecognizeLinkedEntitiesAction, RecognizePiiEntitiesAction, ExtractKeyPhrasesAction, AnalyzeSentimentAction, ExtractSummaryAction]] # pylint: disable=line-too-long + actions, # type: List[Union[RecognizeEntitiesAction, RecognizeLinkedEntitiesAction, RecognizePiiEntitiesAction, ExtractKeyPhrasesAction, AnalyzeSentimentAction, ExtractSummaryAction, RecognizeCustomEntitiesAction, SingleCategoryClassifyAction, MultiCategoryClassifyAction]] # pylint: disable=line-too-long **kwargs # type: Any - ): # type: (...) -> AnalyzeActionsLROPoller[ItemPaged[List[Union[RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, ExtractKeyPhrasesResult, AnalyzeSentimentResult, ExtractSummaryResult, DocumentError]]]] # pylint: disable=line-too-long + ): # type: (...) -> AnalyzeActionsLROPoller[ItemPaged[List[Union[RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, ExtractKeyPhrasesResult, AnalyzeSentimentResult, ExtractSummaryResult, RecognizeCustomEntitiesResult, SingleCategoryClassifyResult, MultiCategoryClassifyResult, DocumentError]]]] # pylint: disable=line-too-long """Start a long-running operation to perform a variety of text analysis actions over a batch of documents. We recommend you use this function if you're looking to analyze larger documents, and / or combine multiple Text Analytics actions into one call. Otherwise, we recommend you use the action specific endpoints, for example :func:`analyze_sentiment`. + .. note:: See the service documentation for regional support of custom action features: + https://aka.ms/azsdk/textanalytics/customfunctionalities + :param documents: The set of documents to process as part of this batch. If you wish to specify the ID and language on a per-item basis you must use as input a list[:class:`~azure.ai.textanalytics.TextDocumentInput`] or a list of @@ -877,7 +908,8 @@ def begin_analyze_actions( # type: ignore Duplicate actions in list not supported. :type actions: list[RecognizeEntitiesAction or RecognizePiiEntitiesAction or ExtractKeyPhrasesAction or - RecognizeLinkedEntitiesAction or AnalyzeSentimentAction or ExtractSummaryAction] + RecognizeLinkedEntitiesAction or AnalyzeSentimentAction or ExtractSummaryAction or + RecognizeCustomEntitiesAction or SingleCategoryClassifyAction or MultiCategoryClassifyAction] :keyword str display_name: An optional display name to set for the requested analysis. :keyword str language: The 2 letter ISO 639-1 representation of language for the entire batch. For example, use "en" for English; "es" for Spanish etc. @@ -887,6 +919,10 @@ def begin_analyze_actions( # type: ignore :keyword bool show_stats: If set to true, response will contain document level statistics. :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. + :keyword str continuation_token: + Call `continuation_token()` on the poller object to save the long-running operation (LRO) + state into an opaque token. Pass the value as the `continuation_token` keyword argument + to restart the LRO from a saved state. :return: An instance of an AnalyzeActionsLROPoller. Call `result()` on the poller object to return a pageable heterogeneous list of lists. This list of lists is first ordered by the documents you input, then ordered by the actions you input. For example, @@ -901,13 +937,17 @@ def begin_analyze_actions( # type: ignore :rtype: ~azure.ai.textanalytics.AnalyzeActionsLROPoller[~azure.core.paging.ItemPaged[ list[Union[RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, - ExtractKeyPhrasesResult, AnalyzeSentimentResult, ExtractSummaryAction, DocumentError]]]] + ExtractKeyPhrasesResult, AnalyzeSentimentResult, ExtractSummaryAction, RecognizeCustomEntitiesResult, + SingleCategoryClassifyResult, MultiCategoryClassifyResult, DocumentError]]]] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError or NotImplementedError: .. versionadded:: v3.1 The *begin_analyze_actions* client method. .. versionadded:: v3.2-preview - The *ExtractSummaryAction* input option and *ExtractSummaryResult* result object + The *ExtractSummaryAction*, *RecognizeCustomEntitiesAction*, *SingleCategoryClassifyAction*, + and *MultiCategoryClassifyAction* input options and the corresponding *ExtractSummaryResult*, + *RecognizeCustomEntitiesResult*, *SingleCategoryClassifyResult*, and *MultiCategoryClassifyResult* + result objects .. admonition:: Example: @@ -920,92 +960,86 @@ def begin_analyze_actions( # type: ignore actions over a batch of documents. """ + continuation_token = kwargs.pop("continuation_token", None) display_name = kwargs.pop("display_name", None) language_arg = kwargs.pop("language", None) + show_stats = kwargs.pop("show_stats", False) + polling_interval = kwargs.pop("polling_interval", 5) language = language_arg if language_arg is not None else self._default_language + + if continuation_token: + def get_result_from_cont_token(initial_response, pipeline_response): + doc_id_order = initial_response.context.options["doc_id_order"] + task_id_order = initial_response.context.options["task_id_order"] + show_stats = initial_response.context.options["show_stats"] + return self._analyze_result_callback( + doc_id_order, task_id_order, pipeline_response, None, {}, show_stats=show_stats + ) + + return AnalyzeActionsLROPoller.from_continuation_token( + polling_method=AnalyzeActionsLROPollingMethod( + timeout=polling_interval, + **kwargs + ), + client=self._client._client, # pylint: disable=protected-access + deserialization_callback=get_result_from_cont_token, + continuation_token=continuation_token + ) + docs = self._client.models( api_version=self._api_version ).MultiLanguageBatchInput( documents=_validate_input(documents, "language", language) ) - show_stats = kwargs.pop("show_stats", False) - polling_interval = kwargs.pop("polling_interval", 5) - continuation_token = kwargs.pop("continuation_token", None) - doc_id_order = [doc.get("id") for doc in docs.documents] - task_order = [_determine_action_type(action) for action in actions] - if len(task_order) != len(set(task_order)): - raise ValueError("Multiple of the same action is not currently supported.") + try: + generated_tasks = [ + action._to_generated(self._api_version, str(idx)) # pylint: disable=protected-access + for idx, action in enumerate(actions) + ] + except AttributeError: + raise TypeError("Unsupported action type in list.") + task_order = [(_determine_action_type(a), a.task_name) for a in generated_tasks] try: analyze_tasks = self._client.models( api_version=self._api_version ).JobManifestTasks( entity_recognition_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_ENTITIES ], entity_recognition_pii_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES ], key_phrase_extraction_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.EXTRACT_KEY_PHRASES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_KEY_PHRASES ], entity_linking_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES ], sentiment_analysis_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.ANALYZE_SENTIMENT - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.ANALYZE_SENTIMENT ], extractive_summarization_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.EXTRACT_SUMMARY - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_SUMMARY + ], + custom_entity_recognition_tasks=[ + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES + ], + custom_single_classification_tasks=[ + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY + ], + custom_multi_classification_tasks=[ + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY ], ) analyze_body = self._client.models( @@ -1026,8 +1060,13 @@ def begin_analyze_actions( # type: ignore ), polling=AnalyzeActionsLROPollingMethod( timeout=polling_interval, + show_stats=show_stats, + doc_id_order=doc_id_order, + task_id_order=task_order, lro_algorithms=[ - TextAnalyticsOperationResourcePolling(show_stats=show_stats) + TextAnalyticsOperationResourcePolling( + show_stats=show_stats, + ) ], **kwargs ), diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_version.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_version.py index adb97393c714..9faba3e954c6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_version.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_version.py @@ -5,4 +5,4 @@ # ------------------------------------ VERSION = "5.2.0b2" -DEFAULT_API_VERSION = "v3.2-preview.1" +DEFAULT_API_VERSION = "v3.2-preview.2" diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_base_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_base_client_async.py index cdebda24c1af..79b618b77ce8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_base_client_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_base_client_async.py @@ -35,8 +35,8 @@ def __init__(self, endpoint, credential, **kwargs): credential=credential, api_version=kwargs.pop("api_version", DEFAULT_API_VERSION), sdk_moniker=USER_AGENT, - authentication_policy=_authentication_policy(credential), - custom_hook_policy=TextAnalyticsResponseHookPolicy(**kwargs), + authentication_policy=kwargs.pop("authentication_policy", _authentication_policy(credential)), + custom_hook_policy=kwargs.pop("custom_hook_policy", TextAnalyticsResponseHookPolicy(**kwargs)), **kwargs ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_lro_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_lro_async.py index de578bb7e70b..b3087790afb0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_lro_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_lro_async.py @@ -4,12 +4,15 @@ # Licensed under the MIT License. # ------------------------------------ import datetime -from typing import Optional +import base64 +import functools +from typing import Optional, Any from azure.core.exceptions import HttpResponseError from azure.core.polling import AsyncLROPoller from azure.core.polling.base_polling import OperationFailed, BadStatus from azure.core.polling.async_base_polling import AsyncLROBasePolling from azure.core.polling._async_poller import PollingReturnType +from .._lro import TextAnalyticsOperationResourcePolling _FINISHED = frozenset(["succeeded", "cancelled", "failed", "partiallycompleted"]) @@ -83,6 +86,8 @@ class AsyncAnalyzeHealthcareEntitiesLROPollingMethod( ): def __init__(self, *args, **kwargs): self._text_analytics_client = kwargs.pop("text_analytics_client") + self._doc_id_order = kwargs.pop("doc_id_order", None) + self._show_stats = kwargs.pop("show_stats", None) super(AsyncAnalyzeHealthcareEntitiesLROPollingMethod, self).__init__( *args, **kwargs ) @@ -117,6 +122,13 @@ def id(self): return None return self._current_body.job_id + def get_continuation_token(self): + # type() -> str + import pickle + self._initial_response.context.options["doc_id_order"] = self._doc_id_order + self._initial_response.context.options["show_stats"] = self._show_stats + return base64.b64encode(pickle.dumps(self._initial_response)).decode('ascii') + class AsyncAnalyzeHealthcareEntitiesLROPoller(AsyncLROPoller[PollingReturnType]): def polling_method(self) -> AsyncAnalyzeHealthcareEntitiesLROPollingMethod: # type: ignore @@ -159,6 +171,29 @@ def id(self) -> str: """ return self.polling_method().id + @classmethod + def from_continuation_token( # type: ignore + cls, + polling_method, # type: AsyncAnalyzeHealthcareEntitiesLROPollingMethod + continuation_token, # type: str + **kwargs # type: Any + ): + # type: (...) -> AsyncAnalyzeHealthcareEntitiesLROPoller + client, initial_response, deserialization_callback = polling_method.from_continuation_token( + continuation_token, **kwargs + ) + polling_method._lro_algorithms = [ # pylint: disable=protected-access + TextAnalyticsOperationResourcePolling( + show_stats=initial_response.context.options["show_stats"] + ) + ] + return cls( + client, + initial_response, + functools.partial(deserialization_callback, initial_response), + polling_method # type: ignore + ) + async def cancel(self, **kwargs) -> "AsyncLROPoller[None]": # type: ignore """Cancel the operation currently being polled. @@ -195,6 +230,12 @@ async def cancel(self, **kwargs) -> "AsyncLROPoller[None]": # type: ignore class AsyncAnalyzeActionsLROPollingMethod(TextAnalyticsAsyncLROPollingMethod): + def __init__(self, *args, **kwargs): + self._doc_id_order = kwargs.pop("doc_id_order", None) + self._task_id_order = kwargs.pop("task_id_order", None) + self._show_stats = kwargs.pop("show_stats", None) + super(AsyncAnalyzeActionsLROPollingMethod, self).__init__(*args, **kwargs) + @property def _current_body(self): from .._generated.models import AnalyzeJobMetadata @@ -255,6 +296,14 @@ def id(self): return None return self._current_body.job_id + def get_continuation_token(self): + # type: () -> str + import pickle + self._initial_response.context.options["doc_id_order"] = self._doc_id_order + self._initial_response.context.options["task_id_order"] = self._task_id_order + self._initial_response.context.options["show_stats"] = self._show_stats + return base64.b64encode(pickle.dumps(self._initial_response)).decode('ascii') + class AsyncAnalyzeActionsLROPoller(AsyncLROPoller[PollingReturnType]): def polling_method(self) -> AsyncAnalyzeActionsLROPollingMethod: # type: ignore @@ -344,3 +393,21 @@ def id(self) -> str: :rtype: str """ return self.polling_method().id + + @classmethod + def from_continuation_token(cls, polling_method, continuation_token, **kwargs): # type: ignore + # type: (AsyncAnalyzeActionsLROPollingMethod, str, Any) -> AsyncAnalyzeActionsLROPoller + client, initial_response, deserialization_callback = polling_method.from_continuation_token( + continuation_token, **kwargs + ) + polling_method._lro_algorithms = [ # pylint: disable=protected-access + TextAnalyticsOperationResourcePolling( + show_stats=initial_response.context.options["show_stats"] + ) + ] + return cls( + client, + initial_response, + functools.partial(deserialization_callback, initial_response), + polling_method # type: ignore + ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py index f85d08348cc4..fe1ded2d83ac 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_text_analytics_client_async.py @@ -5,7 +5,6 @@ # ------------------------------------ # pylint: disable=too-many-lines -import copy from typing import Union, Any, List, Dict, TYPE_CHECKING from functools import partial from azure.core.async_paging import AsyncItemPaged @@ -49,6 +48,12 @@ AnalyzeHealthcareEntitiesResult, ExtractSummaryAction, ExtractSummaryResult, + RecognizeCustomEntitiesAction, + RecognizeCustomEntitiesResult, + SingleCategoryClassifyAction, + SingleCategoryClassifyResult, + MultiCategoryClassifyAction, + MultiCategoryClassifyResult, ) from .._lro import TextAnalyticsOperationResourcePolling from ._lro_async import ( @@ -745,7 +750,10 @@ async def begin_analyze_healthcare_entities( # type: ignore For additional information see https://aka.ms/text-analytics-offsets :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. - :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword str continuation_token: + Call `continuation_token()` on the poller object to save the long-running operation (LRO) + state into an opaque token. Pass the value as the `continuation_token` keyword argument + to restart the LRO from a saved state. :keyword bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your input text on the service side for troubleshooting. If set to False, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with @@ -776,13 +784,33 @@ async def begin_analyze_healthcare_entities( # type: ignore """ language_arg = kwargs.pop("language", None) language = language_arg if language_arg is not None else self._default_language - docs = _validate_input(documents, "language", language) model_version = kwargs.pop("model_version", None) show_stats = kwargs.pop("show_stats", False) polling_interval = kwargs.pop("polling_interval", 5) continuation_token = kwargs.pop("continuation_token", None) string_index_type = kwargs.pop("string_index_type", self._string_code_unit) disable_service_logs = kwargs.pop("disable_service_logs", None) + + if continuation_token: + def get_result_from_cont_token(initial_response, pipeline_response): + doc_id_order = initial_response.context.options["doc_id_order"] + show_stats = initial_response.context.options["show_stats"] + return self._healthcare_result_callback( + doc_id_order, pipeline_response, None, {}, show_stats=show_stats + ) + + return AsyncAnalyzeHealthcareEntitiesLROPoller.from_continuation_token( + polling_method=AsyncAnalyzeHealthcareEntitiesLROPollingMethod( + text_analytics_client=self._client, + timeout=polling_interval, + **kwargs + ), + client=self._client._client, # pylint: disable=protected-access + deserialization_callback=get_result_from_cont_token, + continuation_token=continuation_token + ) + + docs = _validate_input(documents, "language", language) doc_id_order = [doc.get("id") for doc in docs] my_cls = kwargs.pop( "cls", @@ -790,27 +818,28 @@ async def begin_analyze_healthcare_entities( # type: ignore self._healthcare_result_callback, doc_id_order, show_stats=show_stats ), ) - polling_kwargs = kwargs - operation_kwargs = copy.copy(kwargs) - if disable_service_logs is not None: - operation_kwargs["logging_opt_out"] = disable_service_logs try: return await self._client.begin_health( docs, model_version=model_version, string_index_type=string_index_type, + logging_opt_out=disable_service_logs, cls=my_cls, polling=AsyncAnalyzeHealthcareEntitiesLROPollingMethod( text_analytics_client=self._client, + doc_id_order=doc_id_order, + show_stats=show_stats, timeout=polling_interval, lro_algorithms=[ - TextAnalyticsOperationResourcePolling(show_stats=show_stats) + TextAnalyticsOperationResourcePolling( + show_stats=show_stats, + ) ], - **polling_kwargs, + **kwargs, ), continuation_token=continuation_token, - **operation_kwargs, + **kwargs, ) except ValueError as error: @@ -851,6 +880,9 @@ async def begin_analyze_actions( # type: ignore ExtractKeyPhrasesAction, AnalyzeSentimentAction, ExtractSummaryAction, + RecognizeCustomEntitiesAction, + SingleCategoryClassifyAction, + MultiCategoryClassifyAction, ] ], # pylint: disable=line-too-long **kwargs: Any, @@ -864,6 +896,9 @@ async def begin_analyze_actions( # type: ignore ExtractKeyPhrasesResult, AnalyzeSentimentResult, ExtractSummaryResult, + RecognizeCustomEntitiesResult, + SingleCategoryClassifyResult, + MultiCategoryClassifyResult, DocumentError, ] ] @@ -875,6 +910,9 @@ async def begin_analyze_actions( # type: ignore combine multiple Text Analytics actions into one call. Otherwise, we recommend you use the action specific endpoints, for example :func:`analyze_sentiment`. + .. note:: See the service documentation for regional support of custom action features: + https://aka.ms/azsdk/textanalytics/customfunctionalities + :param documents: The set of documents to process as part of this batch. If you wish to specify the ID and language on a per-item basis you must use as input a list[:class:`~azure.ai.textanalytics.TextDocumentInput`] or a list of @@ -889,7 +927,9 @@ async def begin_analyze_actions( # type: ignore Duplicate actions in list not supported. :type actions: list[RecognizeEntitiesAction or RecognizePiiEntitiesAction or ExtractKeyPhrasesAction or - RecognizeLinkedEntitiesAction or AnalyzeSentimentAction, or ExtractSummaryAction] + RecognizeLinkedEntitiesAction or AnalyzeSentimentAction or ExtractSummaryAction or + RecognizeCustomEntitiesAction or SingleCategoryClassifyAction or + MultiCategoryClassifyAction] :keyword str display_name: An optional display name to set for the requested analysis. :keyword str language: The 2 letter ISO 639-1 representation of language for the entire batch. For example, use "en" for English; "es" for Spanish etc. @@ -899,6 +939,10 @@ async def begin_analyze_actions( # type: ignore :keyword bool show_stats: If set to true, response will contain document level statistics. :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. + :keyword str continuation_token: + Call `continuation_token()` on the poller object to save the long-running operation (LRO) + state into an opaque token. Pass the value as the `continuation_token` keyword argument + to restart the LRO from a saved state. :return: An instance of an AsyncAnalyzeActionsLROPoller. Call `result()` on the poller object to return a pageable heterogeneous list of lists. This list of lists is first ordered by the documents you input, then ordered by the actions you input. For example, @@ -913,13 +957,17 @@ async def begin_analyze_actions( # type: ignore :rtype: ~azure.ai.textanalytics.aio.AsyncAnalyzeActionsLROPoller[~azure.core.async_paging.AsyncItemPaged[ list[Union[RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, - ExtractKeyPhrasesResult, AnalyzeSentimentResult, ExtractSummaryResult, DocumentError]]]] + ExtractKeyPhrasesResult, AnalyzeSentimentResult, ExtractSummaryAction, RecognizeCustomEntitiesResult, + SingleCategoryClassifyResult, MultiCategoryClassifyResult, DocumentError]]]] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError or NotImplementedError: .. versionadded:: v3.1 The *begin_analyze_actions* client method. .. versionadded:: v3.2-preview - The *ExtractSummaryAction* input option and *ExtractSummaryResult* result object + The *ExtractSummaryAction*, *RecognizeCustomEntitiesAction*, *SingleCategoryClassifyAction*, + and *MultiCategoryClassifyAction* input options and the corresponding *ExtractSummaryResult*, + *RecognizeCustomEntitiesResult*, *SingleCategoryClassifyResult*, + and *MultiCategoryClassifyResult* result objects .. admonition:: Example: @@ -935,89 +983,84 @@ async def begin_analyze_actions( # type: ignore display_name = kwargs.pop("display_name", None) language_arg = kwargs.pop("language", None) language = language_arg if language_arg is not None else self._default_language + + show_stats = kwargs.pop("show_stats", False) + polling_interval = kwargs.pop("polling_interval", 5) + continuation_token = kwargs.pop("continuation_token", None) + + if continuation_token: + def get_result_from_cont_token(initial_response, pipeline_response): + doc_id_order = initial_response.context.options["doc_id_order"] + task_id_order = initial_response.context.options["task_id_order"] + show_stats = initial_response.context.options["show_stats"] + return self._analyze_result_callback( + doc_id_order, task_id_order, pipeline_response, None, {}, show_stats=show_stats + ) + + return AsyncAnalyzeActionsLROPoller.from_continuation_token( + polling_method=AsyncAnalyzeActionsLROPollingMethod( + timeout=polling_interval, + **kwargs + ), + client=self._client._client, # pylint: disable=protected-access + deserialization_callback=get_result_from_cont_token, + continuation_token=continuation_token + ) + docs = self._client.models( api_version=self._api_version ).MultiLanguageBatchInput( documents=_validate_input(documents, "language", language) ) - show_stats = kwargs.pop("show_stats", False) - polling_interval = kwargs.pop("polling_interval", 5) - continuation_token = kwargs.pop("continuation_token", None) - doc_id_order = [doc.get("id") for doc in docs.documents] - task_order = [_determine_action_type(action) for action in actions] - if len(task_order) != len(set(task_order)): - raise ValueError("Multiple of the same action is not currently supported.") + try: + generated_tasks = [ + action._to_generated(self._api_version, str(idx)) # pylint: disable=protected-access + for idx, action in enumerate(actions) + ] + except AttributeError: + raise TypeError("Unsupported action type in list.") + task_order = [(_determine_action_type(a), a.task_name) for a in generated_tasks] try: analyze_tasks = self._client.models( api_version=self._api_version ).JobManifestTasks( entity_recognition_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_ENTITIES ], entity_recognition_pii_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES ], key_phrase_extraction_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.EXTRACT_KEY_PHRASES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_KEY_PHRASES ], entity_linking_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES ], sentiment_analysis_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.ANALYZE_SENTIMENT - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.ANALYZE_SENTIMENT ], extractive_summarization_tasks=[ - t._to_generated( # pylint: disable=protected-access - self._api_version - ) - for t in [ - a - for a in actions - if _determine_action_type(a) - == _AnalyzeActionsType.EXTRACT_SUMMARY - ] + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_SUMMARY + ], + custom_entity_recognition_tasks=[ + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES + ], + custom_single_classification_tasks=[ + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.SINGLE_CATEGORY_CLASSIFY + ], + custom_multi_classification_tasks=[ + a for a in generated_tasks + if _determine_action_type(a) == _AnalyzeActionsType.MULTI_CATEGORY_CLASSIFY ], ) analyze_body = self._client.models( @@ -1038,8 +1081,13 @@ async def begin_analyze_actions( # type: ignore ), polling=AsyncAnalyzeActionsLROPollingMethod( timeout=polling_interval, + show_stats=show_stats, + doc_id_order=doc_id_order, + task_id_order=task_order, lro_algorithms=[ - TextAnalyticsOperationResourcePolling(show_stats=show_stats) + TextAnalyticsOperationResourcePolling( + show_stats=show_stats, + ) ], **kwargs, ), diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md index ddb34aecd59c..78651d4214d6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md @@ -31,6 +31,9 @@ These sample programs show common scenarios for the Text Analytics client's offe |[sample_analyze_healthcare_entities.py][analyze_healthcare_entities_sample] and [sample_analyze_healthcare_entities_async.py][analyze_healthcare_entities_sample_async]|Analyze healthcare entities| |[sample_analyze_actions.py][analyze_sample] and [sample_analyze_actions_async.py][analyze_sample_async]|Run multiple analyses together in a single request| |[sample_extract_summary.py][extract_summary_sample] and [sample_extract_summary_async.py][extract_summary_sample_async]|As part of the analyze API, run extractive text summarization on documents| +|[sample_recognize_custom_entities.py][recognize_custom_entities_sample] and [sample_recognize_custom_entities_async.py][recognize_custom_entities_sample_async]|Use a custom model to recognize custom entities in documents| +|[sample_single_category_classify.py][single_category_classify_sample] and [sample_single_category_classify_async.py][single_category_classify_sample_async]|Use a custom model to classify documents into a single category| +|[sample_multi_category_classify.py][multi_category_classify_sample] and [sample_multi_category_classify_async.py][multi_category_classify_sample_async]|Use a custom model to classify documents into multiple categories| ## Prerequisites * Python 2.7, or 3.6 or later is required to use this package (3.6 or later if using asyncio) @@ -101,6 +104,12 @@ what you can do with the Azure Text Analytics client library. [sample_analyze_healthcare_entities_with_cancellation_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_with_cancellation_async.py [extract_summary_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_summary.py [extract_summary_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_summary_async.py +[recognize_custom_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py +[recognize_custom_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py +[single_category_classify_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py +[single_category_classify_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py +[multi_category_classify_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py +[multi_category_classify_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py [pip]: https://pypi.org/project/pip/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_text_analytics_account]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account?tabs=singleservice%2Cwindows diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py new file mode 100644 index 000000000000..32d61e12aaac --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +""" +FILE: sample_multi_category_classify_async.py + +DESCRIPTION: + This sample demonstrates how to classify documents into multiple custom categories. Here we have a few + movie plot summaries that must be categorized into movie genres like Sci-Fi, Horror, Comedy, Romance, etc. + Classifying documents is available as an action type through the begin_analyze_actions API. + + To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities + +USAGE: + python sample_multi_category_classify_async.py + + Set the environment variables with your own values before running the sample: + 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. + 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 3) MULTI_CATEGORY_CLASSIFY_PROJECT_NAME - your Text Analytics Language Studio project name + 4) MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Text Analytics deployed model name +""" + + +import os +import asyncio + + +async def sample_classify_document_multi_categories_async(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + from azure.ai.textanalytics import MultiCategoryClassifyAction + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + project_name = os.environ["MULTI_CATEGORY_CLASSIFY_PROJECT_NAME"] + deployed_model_name = os.environ["MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + "In the not-too-distant future, Earth's dying sun spells the end for humanity. In a last-ditch effort to " + "save the planet, a crew of eight men and women ventures into space with a device that could revive the " + "star. However, an accident, a grave mistake and a distress beacon from a long-lost spaceship throw " + "the crew and its desperate mission into a tailspin.", + + "Despite his family's generations-old ban on music, young Miguel dreams of becoming an accomplished " + "musician like his idol Ernesto de la Cruz. Desperate to prove his talent, Miguel finds himself " + "in the stunning and colorful Land of the Dead. After meeting a charming trickster named Héctor, " + "the two new friends embark on an extraordinary journey to unlock the real story behind Miguel's " + "family history" + ] + async with text_analytics_client: + poller = await text_analytics_client.begin_analyze_actions( + documents, + actions=[ + MultiCategoryClassifyAction( + project_name=project_name, + deployment_name=deployed_model_name + ), + ], + ) + + pages = await poller.result() + + document_results = [] + async for page in pages: + document_results.append(page) + for doc, classification_results in zip(documents, document_results): + for classification_result in classification_results: + if not classification_result.is_error: + classifications = classification_result.classifications + print("The movie plot '{}' was classified as the following genres:\n".format(doc)) + for classification in classifications: + print("'{}' with confidence score {}.".format( + classification.category, classification.confidence_score + )) + else: + print("Movie plot '{}' has an error with code '{}' and message '{}'".format( + doc, classification_result.code, classification_result.message + )) + + +async def main(): + await sample_classify_document_multi_categories_async() + + +if __name__ == '__main__': + asyncio.run(main()) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py new file mode 100644 index 000000000000..b46a42c61301 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +""" +FILE: sample_recognize_custom_entities_async.py + +DESCRIPTION: + This sample demonstrates how to recognize custom entities in documents. + Recognizing custom entities is available as an action type through the begin_analyze_actions API. + + To train a model to recognize your custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition + +USAGE: + python sample_recognize_custom_entities_async.py + + Set the environment variables with your own values before running the sample: + 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. + 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 3) CUSTOM_ENTITIES_PROJECT_NAME - your Text Analytics Language Studio project name + 4) CUSTOM_ENTITIES_DEPLOYMENT_NAME - your Text Analytics deployed model name +""" + + +import os +import asyncio + + +async def sample_recognize_custom_entities_async(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + from azure.ai.textanalytics import RecognizeCustomEntitiesAction + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + project_name = os.environ["CUSTOM_ENTITIES_PROJECT_NAME"] + deployed_model_name = os.environ["CUSTOM_ENTITIES_DEPLOYMENT_NAME"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + document = [ + "The Grantor(s), John Smith, who also appears of record as John A. Smith, for and in consideration of " + "Ten dollars and Zero cents ($10.00) and other good and valuable consideration in hand paid, conveys, and " + "warrants to Jane Doe, the following described real estate, situated in the County of King, State of " + "Washington: Lot A, King County Short Plat Number AAAAAAAA, recorded under Recording Number AAAAAAAAA in " + "King County, Washington." + ] + + async with text_analytics_client: + poller = await text_analytics_client.begin_analyze_actions( + document, + actions=[ + RecognizeCustomEntitiesAction( + project_name=project_name, + deployment_name=deployed_model_name + ), + ], + ) + + document_results = await poller.result() + + async for result in document_results: + custom_entities_result = result[0] # first document, first result + if not custom_entities_result.is_error: + for entity in custom_entities_result.entities: + if entity.category == "Seller Name": + print("The seller of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Buyer Name": + print("The buyer of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Buyer Fee": + print("The buyer fee is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Lot Number": + print("The lot number of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Short Plat Number": + print("The short plat number of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Recording Number": + print("The recording number of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + else: + print("...Is an error with code '{}' and message '{}'".format( + custom_entities_result.code, custom_entities_result.message + )) + + +async def main(): + await sample_recognize_custom_entities_async() + + +if __name__ == '__main__': + asyncio.run(main()) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py new file mode 100644 index 000000000000..e516caeef9d1 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +""" +FILE: sample_single_category_classify_async.py + +DESCRIPTION: + This sample demonstrates how to classify documents into a single custom category. Here we several + support tickets that need to be classified as internet, printer, email or hardware issues. + Classifying documents is available as an action type through the begin_analyze_actions API. + + To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities + +USAGE: + python sample_single_category_classify_async.py + + Set the environment variables with your own values before running the sample: + 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. + 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 3) SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME - your Text Analytics Language Studio project name + 4) SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Text Analytics deployed model name +""" + + +import os +import asyncio + + +async def sample_classify_document_single_category_async(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + from azure.ai.textanalytics import SingleCategoryClassifyAction + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + project_name = os.environ["SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME"] + deployed_model_name = os.environ["SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + "My internet has stopped working. I tried resetting the router, but it just keeps blinking red.", + "I submitted 3 jobs to print but the printer is unresponsive. I can't see it under my devices either.", + "My computer will not boot. Pushing the power button does nothing - just a black screen.", + "I seem to not be receiving all my emails on time. Emails from 2 days ago show up as just received.", + ] + + async with text_analytics_client: + poller = await text_analytics_client.begin_analyze_actions( + documents, + actions=[ + SingleCategoryClassifyAction( + project_name=project_name, + deployment_name=deployed_model_name + ), + ], + ) + + pages = await poller.result() + + document_results = [] + async for page in pages: + document_results.append(page) + + for doc, classification_results in zip(documents, document_results): + for classification_result in classification_results: + if not classification_result.is_error: + classification = classification_result.classification + print("The document text '{}' was classified as '{}' with confidence score {}.".format( + doc, classification.category, classification.confidence_score) + ) + else: + print("Document text '{}' has an error with code '{}' and message '{}'".format( + doc, classification_result.code, classification_result.message + )) + + +async def main(): + await sample_classify_document_single_category_async() + + +if __name__ == '__main__': + asyncio.run(main()) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py new file mode 100644 index 000000000000..c69ec1ec685d --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +""" +FILE: sample_multi_category_classify.py + +DESCRIPTION: + This sample demonstrates how to classify documents into multiple custom categories. Here we have a few + movie plot summaries that must be categorized into movie genres like Sci-Fi, Horror, Comedy, Romance, etc. + Classifying documents is available as an action type through the begin_analyze_actions API. + + To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities + +USAGE: + python sample_multi_category_classify.py + + Set the environment variables with your own values before running the sample: + 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. + 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 3) MULTI_CATEGORY_CLASSIFY_PROJECT_NAME - your Text Analytics Language Studio project name + 4) MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Text Analytics deployed model name +""" + + +import os + + +def sample_classify_document_multi_categories(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import ( + TextAnalyticsClient, + MultiCategoryClassifyAction + ) + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + project_name = os.environ["MULTI_CATEGORY_CLASSIFY_PROJECT_NAME"] + deployed_model_name = os.environ["MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + "In the not-too-distant future, Earth's dying sun spells the end for humanity. In a last-ditch effort to " + "save the planet, a crew of eight men and women ventures into space with a device that could revive the " + "star. However, an accident, a grave mistake and a distress beacon from a long-lost spaceship throw " + "the crew and its desperate mission into a tailspin.", + + "Despite his family's generations-old ban on music, young Miguel dreams of becoming an accomplished " + "musician like his idol Ernesto de la Cruz. Desperate to prove his talent, Miguel finds himself " + "in the stunning and colorful Land of the Dead. After meeting a charming trickster named Héctor, " + "the two new friends embark on an extraordinary journey to unlock the real story behind Miguel's " + "family history" + ] + + poller = text_analytics_client.begin_analyze_actions( + documents, + actions=[ + MultiCategoryClassifyAction( + project_name=project_name, + deployment_name=deployed_model_name + ), + ], + ) + + document_results = poller.result() + for doc, classification_results in zip(documents, document_results): + for classification_result in classification_results: + if not classification_result.is_error: + classifications = classification_result.classifications + print("The movie plot '{}' was classified as the following genres:\n".format(doc)) + for classification in classifications: + print("'{}' with confidence score {}.".format( + classification.category, classification.confidence_score + )) + else: + print("Movie plot '{}' has an error with code '{}' and message '{}'".format( + doc, classification_result.code, classification_result.message + )) + + +if __name__ == "__main__": + sample_classify_document_multi_categories() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py new file mode 100644 index 000000000000..795c6e16b62a --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +""" +FILE: sample_recognize_custom_entities.py + +DESCRIPTION: + This sample demonstrates how to recognize custom entities in documents. + Recognizing custom entities is available as an action type through the begin_analyze_actions API. + + To train a model to recognize your custom entities, see https://aka.ms/azsdk/textanalytics/customentityrecognition + +USAGE: + python sample_recognize_custom_entities.py + + Set the environment variables with your own values before running the sample: + 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. + 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 3) CUSTOM_ENTITIES_PROJECT_NAME - your Text Analytics Language Studio project name + 4) CUSTOM_ENTITIES_DEPLOYMENT_NAME - your Text Analytics deployed model name +""" + + +import os + + +def sample_recognize_custom_entities(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import ( + TextAnalyticsClient, + RecognizeCustomEntitiesAction + ) + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + project_name = os.environ["CUSTOM_ENTITIES_PROJECT_NAME"] + deployed_model_name = os.environ["CUSTOM_ENTITIES_DEPLOYMENT_NAME"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + document = [ + "The Grantor(s), John Smith, who also appears of record as John A. Smith, for and in consideration of " + "Ten dollars and Zero cents ($10.00) and other good and valuable consideration in hand paid, conveys, and " + "warrants to Jane Doe, the following described real estate, situated in the County of King, State of " + "Washington: Lot A, King County Short Plat Number AAAAAAAA, recorded under Recording Number AAAAAAAAA in " + "King County, Washington." + ] + + poller = text_analytics_client.begin_analyze_actions( + document, + actions=[ + RecognizeCustomEntitiesAction( + project_name=project_name, + deployment_name=deployed_model_name + ), + ], + ) + + document_results = poller.result() + for result in document_results: + custom_entities_result = result[0] # first document, first result + if not custom_entities_result.is_error: + for entity in custom_entities_result.entities: + if entity.category == "Seller Name": + print("The seller of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Buyer Name": + print("The buyer of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Buyer Fee": + print("The buyer fee is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Lot Number": + print("The lot number of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Short Plat Number": + print("The short plat number of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + if entity.category == "Recording Number": + print("The recording number of the property is {} with confidence score {}.".format( + entity.text, entity.confidence_score) + ) + else: + print("...Is an error with code '{}' and message '{}'".format( + custom_entities_result.code, custom_entities_result.message + )) + + +if __name__ == "__main__": + sample_recognize_custom_entities() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py new file mode 100644 index 000000000000..1baeaaf2acd7 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +""" +FILE: sample_single_category_classify.py + +DESCRIPTION: + This sample demonstrates how to classify documents into a single custom category. Here we several + support tickets that need to be classified as internet, printer, email or hardware issues. + Classifying documents is available as an action type through the begin_analyze_actions API. + + To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities + +USAGE: + python sample_single_category_classify.py + + Set the environment variables with your own values before running the sample: + 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. + 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 3) SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME - your Text Analytics Language Studio project name + 4) SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Text Analytics deployed model name +""" + + +import os + + +def sample_classify_document_single_category(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import ( + TextAnalyticsClient, + SingleCategoryClassifyAction + ) + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + project_name = os.environ["SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME"] + deployed_model_name = os.environ["SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + "My internet has stopped working. I tried resetting the router, but it just keeps blinking red.", + "I submitted 3 jobs to print but the printer is unresponsive. I can't see it under my devices either.", + "My computer will not boot. Pushing the power button does nothing - just a black screen.", + "I seem to not be receiving all my emails on time. Emails from 2 days ago show up as just received.", + ] + + poller = text_analytics_client.begin_analyze_actions( + documents, + actions=[ + SingleCategoryClassifyAction( + project_name=project_name, + deployment_name=deployed_model_name + ), + ], + ) + + document_results = poller.result() + for doc, classification_results in zip(documents, document_results): + for classification_result in classification_results: + if not classification_result.is_error: + classification = classification_result.classification + print("The document text '{}' was classified as '{}' with confidence score {}.".format( + doc, classification.category, classification.confidence_score) + ) + else: + print("Document text '{}' has an error with code '{}' and message '{}'".format( + doc, classification_result.code, classification_result.message + )) + + +if __name__ == "__main__": + sample_classify_document_single_category() diff --git a/sdk/textanalytics/azure-ai-textanalytics/setup.py b/sdk/textanalytics/azure-ai-textanalytics/setup.py index 0e99e4b17a6e..5cc1787da551 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/setup.py +++ b/sdk/textanalytics/azure-ai-textanalytics/setup.py @@ -69,6 +69,7 @@ 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'License :: OSI Approved :: MIT License', ], zip_safe=False, @@ -79,7 +80,7 @@ 'azure.ai', ]), install_requires=[ - "azure-core<2.0.0,>=1.14.0", + "azure-core<2.0.0,>=1.16.0", "msrest>=0.6.21", 'azure-common~=1.1', 'six>=1.11.0', diff --git a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md index ff1a29d6f5fe..f236cba560fd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md @@ -3,7 +3,7 @@ To generate this file, simply type ``` -autorest swagger/README.md +autorest swagger/README.md --python-sdks-folder= ``` We automatically hardcode in that this is `python` and `multiapi`. @@ -28,15 +28,15 @@ multiapi: true batch: - tag: release_3_0 - tag: release_3_1 - - tag: release_3_2_preview.1 + - tag: release_3_2_preview.2 - multiapiscript: true ``` ## Multiapiscript ```yaml $(multiapiscript) -output-folder: ../azure/ai/textanalytics/_generated/ -default-api: v3_2_preview_1 +output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/ +default-api: v3_2_preview_2 clear-output-folder: true perform-load: false ``` @@ -48,7 +48,7 @@ These settings apply only when `--tag=release_3_0` is specified on the command l ```yaml $(tag) == 'release_3_0' input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/stable/v3.0/TextAnalytics.json namespace: azure.ai.textanalytics.v3_0 -output-folder: ../azure/ai/textanalytics/_generated/v3_0 +output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0 ``` ## Release 3.1 @@ -58,17 +58,17 @@ These settings apply only when `--tag=release_3_1` is specified on the command l ```yaml $(tag) == 'release_3_1' input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/stable/v3.1/TextAnalytics.json namespace: azure.ai.textanalytics.v3_1 -output-folder: ../azure/ai/textanalytics/_generated/v3_1 +output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1 ``` -## Release 3.2-preview.1 +## Release 3.2-preview.2 -These settings apply only when `--tag=release_3_2_preview.1` is specified on the command line. +These settings apply only when `--tag=release_3_2_preview.2` is specified on the command line. -```yaml $(tag) == 'release_3_2_preview.1' -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.1/TextAnalytics.json -namespace: azure.ai.textanalytics.v3_2_preview_1 -output-folder: ../azure/ai/textanalytics/_generated/v3_2_preview_1 +```yaml $(tag) == 'release_3_2_preview.2' +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/71c9d235dab9206194691d083f0248c8613e2e17/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.2/TextAnalytics.json +namespace: azure.ai.textanalytics.v3_2_preview_2 +output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_2_preview_2 ``` ### Override Analyze's pager poller @@ -110,13 +110,13 @@ directive: $["parameters"] = [{"$ref": "#/parameters/Endpoint"}]; ``` -### Override parameterizing the ApiVersion v3.2-preview.1 +### Override parameterizing the ApiVersion v3.2-preview.2 -```yaml $(tag) == 'release_3_2_preview.1' +```yaml $(tag) == 'release_3_2_preview.2' directive: - from: swagger-document where: '$["x-ms-parameterized-host"]' transform: > - $["hostTemplate"] = "{Endpoint}/text/analytics/v3.2-preview.1"; + $["hostTemplate"] = "{Endpoint}/text/analytics/v3.2-preview.2"; $["parameters"] = [{"$ref": "#/parameters/Endpoint"}]; ``` \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/asynctestcase.py b/sdk/textanalytics/azure-ai-textanalytics/tests/asynctestcase.py index 708df984a98b..dd720bce3440 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/asynctestcase.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/asynctestcase.py @@ -5,10 +5,9 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -import asyncio + import os -import functools -from azure_devtools.scenario_tests.utilities import trim_kwargs_from_test_function +import pytest from azure.core.credentials import AccessToken from testcase import TextAnalyticsTest @@ -24,6 +23,7 @@ async def get_token(self, *args): return self.token + class AsyncTextAnalyticsTest(TextAnalyticsTest): def generate_oauth_token(self): diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_extract_summary_action.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_extract_summary_action.yaml index 259b97fcdaee..2e2dc5f2a66d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_extract_summary_action.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_extract_summary_action.yaml @@ -4,30 +4,31 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}]}, "analysisInput": {"documents": [{"id": "1", "text": - "The government of British Prime Minster Theresa May has been plunged into turmoil - with the resignation of two senior Cabinet ministers in a deep split over her - Brexit strategy. The Foreign Secretary Boris Johnson, quit on Monday, hours - after the resignation late on Sunday night of the minister in charge of Brexit - negotiations, David Davis. Their decision to leave the government came three - days after May appeared to have agreed a deal with herfractured Cabinet on the - UK''s post Brexit relationship with the EU. That plan is now in tatters and - her political future appears uncertain. May appeared in Parliament on Monday - afternoon to defend her plan, minutes after Downing Street confirmed the departure - of Johnson. May acknowledged the splits in her statement to MPs, saying of the - ministers who quit: We do not agree about the best way of delivering our shared - commitment to honoring the result of the referendum. The Prime Minister''s latest - plitical drama began late on Sunday night when Davis quit, declaring he could - not support May''s Brexit plan. He said it involved too close a relationship - with the EU and gave only an illusion of control being returned to the UK after - it left the EU. It seems to me we''re giving too much away, too easily, and - that''s a dangerous strategy at this time, Davis said in a BBC radio interview - Monday morning. Johnson''s resignation came Monday afternoon local time, just - before the Prime Minister was due to make a scheduled statement in Parliament. - This afternoon, the Prime Minister accepted the resignation of Boris Johnson - as Foreign Secretary, a statement from Downing Street said.", "language": "en"}, - {"id": "2", "text": "Microsoft fue fundado por Bill Gates y Paul Allen", "language": - "es"}]}}' + 3, "sortBy": "Offset"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "The government of British + Prime Minster Theresa May has been plunged into turmoil with the resignation + of two senior Cabinet ministers in a deep split over her Brexit strategy. The + Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation + late on Sunday night of the minister in charge of Brexit negotiations, David + Davis. Their decision to leave the government came three days after May appeared + to have agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship + with the EU. That plan is now in tatters and her political future appears uncertain. + May appeared in Parliament on Monday afternoon to defend her plan, minutes after + Downing Street confirmed the departure of Johnson. May acknowledged the splits + in her statement to MPs, saying of the ministers who quit: We do not agree about + the best way of delivering our shared commitment to honoring the result of the + referendum. The Prime Minister''s latest plitical drama began late on Sunday + night when Davis quit, declaring he could not support May''s Brexit plan. He + said it involved too close a relationship with the EU and gave only an illusion + of control being returned to the UK after it left the EU. It seems to me we''re + giving too much away, too easily, and that''s a dangerous strategy at this time, + Davis said in a BBC radio interview Monday morning. Johnson''s resignation came + Monday afternoon local time, just before the Prime Minister was due to make + a scheduled statement in Parliament. This afternoon, the Prime Minister accepted + the resignation of Boris Johnson as Foreign Secretary, a statement from Downing + Street said.", "language": "en"}, {"id": "2", "text": "Microsoft fue fundado + por Bill Gates y Paul Allen", "language": "es"}]}}' headers: Accept: - application/json, text/json @@ -36,23 +37,23 @@ interactions: Connection: - keep-alive Content-Length: - - '2138' + - '2268' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - 9b8cecd9-2fcf-4ed5-a163-687ce277cfe4 + - 68966721-177c-4b3e-b196-a72dc1c5f869 date: - - Mon, 02 Aug 2021 21:28:42 GMT + - Thu, 07 Oct 2021 23:37:56 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/3272e64e-64b0-4a07-97aa-e91c225d05a2 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -60,7 +61,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1408' + - '476' status: code: 202 message: Accepted @@ -74,19 +75,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/3272e64e-64b0-4a07-97aa-e91c225d05a2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9?showStats=True response: body: - string: '{"jobId":"3272e64e-64b0-4a07-97aa-e91c225d05a2","lastUpdateDateTime":"2021-08-02T21:28:44Z","createdDateTime":"2021-08-02T21:28:42Z","expirationDateTime":"2021-08-03T21:28:42Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"8b252660-33b7-4d2c-a19c-fa59361ca1c9","lastUpdateDateTime":"2021-10-07T23:37:57Z","createdDateTime":"2021-10-07T23:37:56Z","expirationDateTime":"2021-10-08T23:37:56Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 9d6fb934-5c44-4f32-be3e-37d47e3dcbdb + - f55c994c-1f73-42a9-b842-ffcb2029849a content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:28:49 GMT + - Thu, 07 Oct 2021 23:38:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -94,7 +95,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '655' + - '756' status: code: 200 message: OK @@ -108,19 +109,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/3272e64e-64b0-4a07-97aa-e91c225d05a2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9?showStats=True response: body: - string: '{"jobId":"3272e64e-64b0-4a07-97aa-e91c225d05a2","lastUpdateDateTime":"2021-08-02T21:28:44Z","createdDateTime":"2021-08-02T21:28:42Z","expirationDateTime":"2021-08-03T21:28:42Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"8b252660-33b7-4d2c-a19c-fa59361ca1c9","lastUpdateDateTime":"2021-10-07T23:37:57Z","createdDateTime":"2021-10-07T23:37:56Z","expirationDateTime":"2021-10-08T23:37:56Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 86933a07-0e1a-4624-a96f-5d467504d7b1 + - 649c89b9-aa97-4120-aef7-462c1be30b22 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:28:54 GMT + - Thu, 07 Oct 2021 23:38:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -128,7 +129,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '82' + - '685' status: code: 200 message: OK @@ -142,29 +143,63 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/3272e64e-64b0-4a07-97aa-e91c225d05a2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9?showStats=True response: body: - string: '{"jobId":"3272e64e-64b0-4a07-97aa-e91c225d05a2","lastUpdateDateTime":"2021-08-02T21:28:56Z","createdDateTime":"2021-08-02T21:28:42Z","expirationDateTime":"2021-08-03T21:28:42Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:28:56.8777397Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The + string: '{"jobId":"8b252660-33b7-4d2c-a19c-fa59361ca1c9","lastUpdateDateTime":"2021-10-07T23:37:57Z","createdDateTime":"2021-10-07T23:37:56Z","expirationDateTime":"2021-10-08T23:37:56Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 6e580812-be12-4381-9f95-137b25bee4c9 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:38:13 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '968' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8b252660-33b7-4d2c-a19c-fa59361ca1c9?showStats=True + response: + body: + string: '{"jobId":"8b252660-33b7-4d2c-a19c-fa59361ca1c9","lastUpdateDateTime":"2021-10-07T23:38:15Z","createdDateTime":"2021-10-07T23:37:56Z","expirationDateTime":"2021-10-08T23:37:56Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:38:15.3431529Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The government of British Prime Minster Theresa May has been plunged into turmoil with the resignation of two senior Cabinet ministers in a deep split over - her Brexit strategy.","rankScore":1.0,"offset":0,"length":176},{"text":"The + her Brexit strategy.","rankScore":0.57,"offset":0,"length":176},{"text":"The Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation late on Sunday night of the minister in charge of Brexit negotiations, David - Davis.","rankScore":0.9711179434493907,"offset":177,"length":164},{"text":"Their - decision to leave the government came three days after May appeared to have - agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship - with the EU.","rankScore":0.9103508917712292,"offset":342,"length":171}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"sentences":[{"text":"Microsoft + Davis.","rankScore":1.0,"offset":177,"length":164},{"text":"Their decision + to leave the government came three days after May appeared to have agreed + a deal with herfractured Cabinet on the UK''s post Brexit relationship with + the EU.","rankScore":0.47,"offset":342,"length":171}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"sentences":[{"text":"Microsoft fue fundado por Bill Gates y Paul Allen","rankScore":1.0,"offset":0,"length":49}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: apim-request-id: - - 557d8a8f-47e5-4e06-8e0c-fe1fc99ec680 + - dcd3b1b0-9c46-452a-8b02-4b22f52011a0 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:00 GMT + - Thu, 07 Oct 2021 23:38:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -172,7 +207,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '165' + - '325' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml index 7a37fc46f567..24d2c7aed8fa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml @@ -2,9 +2,11 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - false}}], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded - by Bill Gates and Paul Allen", "language": "en"}, {"id": "2", "text": "Microsoft + false}, "taskName": "0"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded by + Bill Gates and Paul Allen", "language": "en"}, {"id": "2", "text": "Microsoft fue fundado por Bill Gates y Paul Allen", "language": "es"}]}}' headers: Accept: @@ -14,23 +16,23 @@ interactions: Connection: - keep-alive Content-Length: - - '484' + - '614' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - d5a16525-283a-414b-864c-434902d16450 + - 4900bf99-d90f-4c71-82c7-605da7cb2a61 date: - - Mon, 02 Aug 2021 21:29:01 GMT + - Thu, 07 Oct 2021 23:38:19 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/7054258a-aa9c-4a39-9d92-354cc67e2b83 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '984' + - '391' status: code: 202 message: Accepted @@ -52,19 +54,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/7054258a-aa9c-4a39-9d92-354cc67e2b83?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True response: body: - string: '{"jobId":"7054258a-aa9c-4a39-9d92-354cc67e2b83","lastUpdateDateTime":"2021-08-02T21:29:02Z","createdDateTime":"2021-08-02T21:29:01Z","expirationDateTime":"2021-08-03T21:29:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:20Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 9ec35105-2bcf-407b-b72f-1774235716e1 + - bf6c5b95-e2f5-497c-87f6-2fc07c832e49 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:07 GMT + - Thu, 07 Oct 2021 23:38:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +74,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '653' + - '9' status: code: 200 message: OK @@ -86,19 +88,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/7054258a-aa9c-4a39-9d92-354cc67e2b83?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True response: body: - string: '{"jobId":"7054258a-aa9c-4a39-9d92-354cc67e2b83","lastUpdateDateTime":"2021-08-02T21:29:02Z","createdDateTime":"2021-08-02T21:29:01Z","expirationDateTime":"2021-08-03T21:29:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:20Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 3660f2d9-64d5-4099-8125-44ba29ac0948 + - 33b7a3e6-12af-4c07-9eff-493b2ae60f35 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:12 GMT + - Thu, 07 Oct 2021 23:38:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '43' + - '684' status: code: 200 message: OK @@ -120,21 +122,89 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/7054258a-aa9c-4a39-9d92-354cc67e2b83?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True response: body: - string: '{"jobId":"7054258a-aa9c-4a39-9d92-354cc67e2b83","lastUpdateDateTime":"2021-08-02T21:29:14Z","createdDateTime":"2021-08-02T21:29:01Z","expirationDateTime":"2021-08-03T21:29:01Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:29:14.0101558Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:20Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 2247a90c-6c9b-46c0-b857-79c74346cc53 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:38:35 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '99' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True + response: + body: + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:20Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 5e5038e6-e506-45f3-81f0-c52afcb7da7e + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:38:40 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '8' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fe68e29b-c0d8-4566-950d-20aa98a6470f?showStats=True + response: + body: + string: '{"jobId":"fe68e29b-c0d8-4566-950d-20aa98a6470f","lastUpdateDateTime":"2021-10-07T23:38:42Z","createdDateTime":"2021-10-07T23:38:19Z","expirationDateTime":"2021-10-08T23:38:19Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:38:42.0291176Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":50,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 57f36fd7-42be-4d3c-82d3-444ab5bd7284 + - c17b9765-d9b5-4861-8421-19601deb5d4f content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:17 GMT + - Thu, 07 Oct 2021 23:38:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +212,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '76' + - '85' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml index d65872d6dbb6..6ea7403dfc28 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml @@ -3,11 +3,13 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": []}, "analysisInput": {"documents": - [{"id": "1", "text": "Microsoft was founded by Bill Gates and Paul Allen.", - "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at. - It was too expensive.", "language": "en"}, {"id": "3", "text": "The restaurant - had really good food. I recommend you try it.", "language": "en"}]}}' + false}, "taskName": "0"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded + by Bill Gates and Paul Allen.", "language": "en"}, {"id": "2", "text": "I did + not like the hotel we stayed at. It was too expensive.", "language": "en"}, + {"id": "3", "text": "The restaurant had really good food. I recommend you try + it.", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -16,23 +18,23 @@ interactions: Connection: - keep-alive Content-Length: - - '623' + - '753' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - 3f49be76-c28e-4156-b6f7-91e5222aa54d + - d0b49155-808e-4856-b491-5cf6f6065300 date: - - Mon, 02 Aug 2021 21:29:18 GMT + - Thu, 07 Oct 2021 23:38:46 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/477bb74c-51b1-475c-be3b-627bcf598555 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '134' + - '439' status: code: 202 message: Accepted @@ -54,19 +56,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/477bb74c-51b1-475c-be3b-627bcf598555?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330?showStats=True response: body: - string: '{"jobId":"477bb74c-51b1-475c-be3b-627bcf598555","lastUpdateDateTime":"2021-08-02T21:29:18Z","createdDateTime":"2021-08-02T21:29:18Z","expirationDateTime":"2021-08-03T21:29:18Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"0bbdff6d-3c1f-469a-8c9b-de6b71738330","lastUpdateDateTime":"2021-10-07T23:38:47Z","createdDateTime":"2021-10-07T23:38:46Z","expirationDateTime":"2021-10-08T23:38:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - eee7eda7-ca32-40b9-a0ce-661b76f00d5e + - 91331033-03a5-4547-86b7-4e233039cd17 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:22 GMT + - Thu, 07 Oct 2021 23:38:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -74,7 +76,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '9' status: code: 200 message: OK @@ -88,19 +90,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/477bb74c-51b1-475c-be3b-627bcf598555?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330?showStats=True response: body: - string: '{"jobId":"477bb74c-51b1-475c-be3b-627bcf598555","lastUpdateDateTime":"2021-08-02T21:29:18Z","createdDateTime":"2021-08-02T21:29:18Z","expirationDateTime":"2021-08-03T21:29:18Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"0bbdff6d-3c1f-469a-8c9b-de6b71738330","lastUpdateDateTime":"2021-10-07T23:38:47Z","createdDateTime":"2021-10-07T23:38:46Z","expirationDateTime":"2021-10-08T23:38:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 10c2ed5c-013e-4900-9492-b15cd421bf79 + - 23361bad-4577-4e88-b7d2-3bb45ebcc1e4 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:28 GMT + - Thu, 07 Oct 2021 23:38:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -108,7 +110,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '8' status: code: 200 message: OK @@ -122,12 +124,46 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/477bb74c-51b1-475c-be3b-627bcf598555?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330?showStats=True response: body: - string: '{"jobId":"477bb74c-51b1-475c-be3b-627bcf598555","lastUpdateDateTime":"2021-08-02T21:29:31Z","createdDateTime":"2021-08-02T21:29:18Z","expirationDateTime":"2021-08-03T21:29:18Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:29:31.9941035Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft + string: '{"jobId":"0bbdff6d-3c1f-469a-8c9b-de6b71738330","lastUpdateDateTime":"2021-10-07T23:38:47Z","createdDateTime":"2021-10-07T23:38:46Z","expirationDateTime":"2021-10-08T23:38:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 4da259e6-d208-4c2f-9c32-39a081e1deef + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:39:01 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '8' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/0bbdff6d-3c1f-469a-8c9b-de6b71738330?showStats=True + response: + body: + string: '{"jobId":"0bbdff6d-3c1f-469a-8c9b-de6b71738330","lastUpdateDateTime":"2021-10-07T23:39:07Z","createdDateTime":"2021-10-07T23:38:46Z","expirationDateTime":"2021-10-08T23:38:46Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:07.2675012Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft was founded by Bill Gates and Paul Allen."}],"warnings":[]},{"id":"2","sentiment":"negative","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.22,"negative":0.77},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."},{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":39,"length":21,"text":"It was too expensive."}],"warnings":[]},{"id":"3","sentiment":"positive","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The @@ -135,11 +171,11 @@ interactions: recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 9abb14b4-b1e3-4689-84fd-9376b7991745 + - 1dd56720-8cff-4969-915d-3eff982ee1cf content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:33 GMT + - Thu, 07 Oct 2021 23:39:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -147,7 +183,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '191' + - '995' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml index 9fdf598a3ea7..335df01f9c52 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml @@ -1,13 +1,15 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": - [], "extractiveSummarizationTasks": []}, "analysisInput": {"documents": [{"id": - "0", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "1", "text": - "Your ABA number - 111000025 - is the first 9 digits in the lower left hand - corner of your personal check.", "language": "en"}, {"id": "2", "text": "Is - 998.214.865-68 your Brazilian CPF number?", "language": "en"}]}}' + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "0"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "My SSN is 859-98-0987.", + "language": "en"}, {"id": "1", "text": "Your ABA number - 111000025 - is the + first 9 digits in the lower left hand corner of your personal check.", "language": + "en"}, {"id": "2", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": + "en"}]}}' headers: Accept: - application/json, text/json @@ -16,23 +18,23 @@ interactions: Connection: - keep-alive Content-Length: - - '637' + - '767' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - fee3d8c7-eedc-483f-9a11-f6c305915dd3 + - 9958a898-b828-4d19-9713-f45f527a4243 date: - - Mon, 02 Aug 2021 21:29:35 GMT + - Thu, 07 Oct 2021 23:39:11 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/5c916be4-5997-42b2-866e-f945822914ac + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/712b5d55-16dc-4e4d-b087-b01bc353674b strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '250' + - '248' status: code: 202 message: Accepted @@ -54,57 +56,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/5c916be4-5997-42b2-866e-f945822914ac?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/712b5d55-16dc-4e4d-b087-b01bc353674b?showStats=True response: body: - string: '{"jobId":"5c916be4-5997-42b2-866e-f945822914ac","lastUpdateDateTime":"2021-08-02T21:29:35Z","createdDateTime":"2021-08-02T21:29:34Z","expirationDateTime":"2021-08-03T21:29:34Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - ecec385d-f686-42f4-abca-f760e0d18780 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 02 Aug 2021 21:29:40 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '11' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/5c916be4-5997-42b2-866e-f945822914ac?showStats=True - response: - body: - string: '{"jobId":"5c916be4-5997-42b2-866e-f945822914ac","lastUpdateDateTime":"2021-08-02T21:29:42Z","createdDateTime":"2021-08-02T21:29:34Z","expirationDateTime":"2021-08-03T21:29:34Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:29:42.0349931Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My + string: '{"jobId":"712b5d55-16dc-4e4d-b087-b01bc353674b","lastUpdateDateTime":"2021-10-07T23:39:15Z","createdDateTime":"2021-10-07T23:39:11Z","expirationDateTime":"2021-10-08T23:39:11Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:15.4940866Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My SSN is ***********.","id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: apim-request-id: - - d6e48141-0598-4004-9523-40199c1d9093 + - 0dcbc202-3ecb-4b36-b6ab-f1c6a6669fb8 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:45 GMT + - Thu, 07 Oct 2021 23:39:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -112,7 +80,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '62' + - '220' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml index 2970b52b1cbf..64ee4cc6daa1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml @@ -1,14 +1,15 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": - [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": []}, "analysisInput": - {"documents": [{"id": "1", "text": "Microsoft was founded by Bill Gates and - Paul Allen on April 4, 1975", "language": "en"}, {"id": "2", "text": "Microsoft - fue fundado por Bill Gates y Paul Allen el 4 de abril de 1975.", "language": - "es"}, {"id": "3", "text": "Microsoft wurde am 4. April 1975 von Bill Gates - und Paul Allen gegr\u00fcndet.", "language": "de"}]}}' + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded + by Bill Gates and Paul Allen on April 4, 1975", "language": "en"}, {"id": "2", + "text": "Microsoft fue fundado por Bill Gates y Paul Allen el 4 de abril de + 1975.", "language": "es"}, {"id": "3", "text": "Microsoft wurde am 4. April + 1975 von Bill Gates und Paul Allen gegr\u00fcndet.", "language": "de"}]}}' headers: Accept: - application/json, text/json @@ -17,23 +18,23 @@ interactions: Connection: - keep-alive Content-Length: - - '684' + - '814' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - df686fe3-2d43-45c0-87a6-51445f92046c + - d91bc9ab-190d-4317-aae1-58f83d75de17 date: - - Mon, 02 Aug 2021 21:29:45 GMT + - Thu, 07 Oct 2021 23:39:17 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/6dc2549e-36d4-437f-bb7c-8340b68bf9a2 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f055f6f-8699-4b40-bf0d-38b0bb361e7f strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '128' + - '1000' status: code: 202 message: Accepted @@ -55,46 +56,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/6dc2549e-36d4-437f-bb7c-8340b68bf9a2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f055f6f-8699-4b40-bf0d-38b0bb361e7f?showStats=True response: body: - string: '{"jobId":"6dc2549e-36d4-437f-bb7c-8340b68bf9a2","lastUpdateDateTime":"2021-08-02T21:29:46Z","createdDateTime":"2021-08-02T21:29:46Z","expirationDateTime":"2021-08-03T21:29:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 3f66e56e-1242-4455-8751-fb3674d71e2a - content-type: - - application/json; charset=utf-8 - date: - - Mon, 02 Aug 2021 21:29:51 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '13' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/6dc2549e-36d4-437f-bb7c-8340b68bf9a2?showStats=True - response: - body: - string: '{"jobId":"6dc2549e-36d4-437f-bb7c-8340b68bf9a2","lastUpdateDateTime":"2021-08-02T21:29:52Z","createdDateTime":"2021-08-02T21:29:46Z","expirationDateTime":"2021-08-03T21:29:46Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:29:52.7317463Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill + string: '{"jobId":"2f055f6f-8699-4b40-bf0d-38b0bb361e7f","lastUpdateDateTime":"2021-10-07T23:39:20Z","createdDateTime":"2021-10-07T23:39:18Z","expirationDateTime":"2021-10-08T23:39:18Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:20.6239035Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"2","statistics":{"charactersCount":72,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -106,11 +73,11 @@ interactions: Allen","category":"Person","offset":52,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - e93e46a1-9b09-4917-878f-710bb3c09f9a + - 3968f48b-ad8a-4f94-9a34-87963f422767 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:56 GMT + - Thu, 07 Oct 2021 23:39:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,7 +85,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '102' + - '905' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_analyze_continuation_token.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_analyze_continuation_token.yaml new file mode 100644 index 000000000000..5d27da4cf7f8 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_analyze_continuation_token.yaml @@ -0,0 +1,691 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "1"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "3"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": + false}, "taskName": "2"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report by + the Government Accountability Office (GAO) found that the dramatic increase + in oil and natural gas development on federal lands over the past six years + has stretched the staff of the BLM to a point that it has been unable to meet + its environmental protection responsibilities.", "language": "en"}, {"id": "2", + "text": "David Schmidt, senior vice president--Food Safety, International Food + Information Council (IFIC), Washington, D.C., discussed the physical activity + component.", "language": "en"}, {"id": "3", "text": "", "language": "en"}, {"id": + "4", "text": "I need a reservation for an indoor restaurant in China. Please + don''t stop the music. Play music and add it to my playlist", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1528' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: + - ab0cb781-fe7f-4aeb-9902-d21d2354a35e + date: + - Mon, 25 Oct 2021 19:24:11 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '393' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:14Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"running","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":3,"total":4,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - fca0b61a-41bf-44dc-9e29-dd6288ffebec + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:18 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1912' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:19Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"running","errors":[],"tasks":{"completed":2,"failed":0,"inProgress":2,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:19.310668Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - e91c6d04-d36a-41ee-b3d8-3388b9f61211 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:22 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '143' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:19Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"running","errors":[],"tasks":{"completed":2,"failed":0,"inProgress":2,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:19.310668Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - c26a1d46-ea72-4ce9-9bc9-143e71c15330 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:26 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '3702' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:19Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"running","errors":[],"tasks":{"completed":2,"failed":0,"inProgress":2,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:19.310668Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - d208e6a1-041f-442d-8b6d-fd660ef99a8d + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:27 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '167' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:19Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"running","errors":[],"tasks":{"completed":2,"failed":0,"inProgress":2,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:19.310668Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - c16672fa-e0c2-4788-9fa7-e629b23ae41f + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:31 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '173' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:32Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"running","errors":[],"tasks":{"completed":3,"failed":0,"inProgress":1,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:19.310668Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:32.7619484Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","keyPhrases":["Government + Accountability Office","natural gas development","past six years","environmental + protection responsibilities","recent report","dramatic increase","federal + lands","GAO","oil","staff","BLM","point"],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["International + Food Information Council","senior vice president","physical activity component","Food + Safety","David Schmidt","D.C.","IFIC","Washington"],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["indoor + restaurant","reservation","China","music","playlist"],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - e0e5788c-e8bd-4d10-a078-51e123bc7c55 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:32 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '227' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:32Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"running","errors":[],"tasks":{"completed":3,"failed":0,"inProgress":1,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:19.310668Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:32.7619484Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","keyPhrases":["Government + Accountability Office","natural gas development","past six years","environmental + protection responsibilities","recent report","dramatic increase","federal + lands","GAO","oil","staff","BLM","point"],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["International + Food Information Council","senior vice president","physical activity component","Food + Safety","David Schmidt","D.C.","IFIC","Washington"],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["indoor + restaurant","reservation","China","music","playlist"],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - 9b52a9dd-f698-4e42-8866-563c312ce4be + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:37 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '241' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:32Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"running","errors":[],"tasks":{"completed":3,"failed":0,"inProgress":1,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:19.310668Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:32.7619484Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","keyPhrases":["Government + Accountability Office","natural gas development","past six years","environmental + protection responsibilities","recent report","dramatic increase","federal + lands","GAO","oil","staff","BLM","point"],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["International + Food Information Council","senior vice president","physical activity component","Food + Safety","David Schmidt","D.C.","IFIC","Washington"],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["indoor + restaurant","reservation","China","music","playlist"],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - 3e951462-3a10-4788-ab89-2619f997e54f + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:38 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '372' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:41Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"succeeded","errors":[],"tasks":{"completed":4,"failed":0,"inProgress":0,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:19.310668Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:32.7619484Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","keyPhrases":["Government + Accountability Office","natural gas development","past six years","environmental + protection responsibilities","recent report","dramatic increase","federal + lands","GAO","oil","staff","BLM","point"],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["International + Food Information Council","senior vice president","physical activity component","Food + Safety","David Schmidt","D.C.","IFIC","Washington"],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["indoor + restaurant","reservation","China","music","playlist"],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:41.0065874Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":295,"transactionsCount":1},"confidenceScores":{"positive":0.23,"neutral":0.61,"negative":0.16},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.23,"neutral":0.61,"negative":0.16},"offset":0,"length":295,"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities."}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":158,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":1.0,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.0,"neutral":1.0,"negative":0.0},"offset":0,"length":158,"text":"David + Schmidt, senior vice president--Food Safety, International Food Information + Council (IFIC), Washington, D.C., discussed the physical activity component."}],"warnings":[]},{"id":"4","sentiment":"positive","statistics":{"charactersCount":121,"transactionsCount":1},"confidenceScores":{"positive":0.57,"neutral":0.41,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"offset":0,"length":55,"text":"I + need a reservation for an indoor restaurant in China."},{"sentiment":"neutral","confidenceScores":{"positive":0.12,"neutral":0.78,"negative":0.1},"offset":56,"length":28,"text":"Please + don''t stop the music."},{"sentiment":"positive","confidenceScores":{"positive":0.57,"neutral":0.41,"negative":0.02},"offset":85,"length":36,"text":"Play + music and add it to my playlist"}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: + - 7d7905a7-275c-4857-b2d0-fbf55fb79cfa + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:43 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '306' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/2f741440-6838-4e66-b59d-fe9400de222b?showStats=True + response: + body: + string: '{"jobId":"2f741440-6838-4e66-b59d-fe9400de222b","lastUpdateDateTime":"2021-10-25T19:24:41Z","createdDateTime":"2021-10-25T19:24:11Z","expirationDateTime":"2021-10-26T19:24:11Z","status":"succeeded","errors":[],"tasks":{"completed":4,"failed":0,"inProgress":0,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:19.310668Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:14.7282104Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:32.7619484Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","keyPhrases":["Government + Accountability Office","natural gas development","past six years","environmental + protection responsibilities","recent report","dramatic increase","federal + lands","GAO","oil","staff","BLM","point"],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["International + Food Information Council","senior vice president","physical activity component","Food + Safety","David Schmidt","D.C.","IFIC","Washington"],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["indoor + restaurant","reservation","China","music","playlist"],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-25T19:24:41.0065874Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":295,"transactionsCount":1},"confidenceScores":{"positive":0.23,"neutral":0.61,"negative":0.16},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.23,"neutral":0.61,"negative":0.16},"offset":0,"length":295,"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities."}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":158,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":1.0,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.0,"neutral":1.0,"negative":0.0},"offset":0,"length":158,"text":"David + Schmidt, senior vice president--Food Safety, International Food Information + Council (IFIC), Washington, D.C., discussed the physical activity component."}],"warnings":[]},{"id":"4","sentiment":"positive","statistics":{"charactersCount":121,"transactionsCount":1},"confidenceScores":{"positive":0.57,"neutral":0.41,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"offset":0,"length":55,"text":"I + need a reservation for an indoor restaurant in China."},{"sentiment":"neutral","confidenceScores":{"positive":0.12,"neutral":0.78,"negative":0.1},"offset":56,"length":28,"text":"Please + don''t stop the music."},{"sentiment":"positive","confidenceScores":{"positive":0.57,"neutral":0.41,"negative":0.02},"offset":85,"length":36,"text":"Play + music and add it to my playlist"}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: + - 05b53899-25ee-44bc-bc86-538fbb3d530b + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 19:24:44 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '311' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml index 0226ebcc74de..2327dc1a2230 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml @@ -1,17 +1,19 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "0", "text": "This is written in English.", "language": - "en"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "This is written in + English.", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -20,13 +22,13 @@ interactions: Connection: - keep-alive Content-Length: - - '923' + - '1138' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -34,13 +36,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 7e1a0af6-06c6-4917-9f2a-52ac4a4cb2c1 + - 3c6b9c55-94ae-412d-8e5b-7135b77d987e content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:29:57 GMT + - Thu, 07 Oct 2021 23:39:24 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml index 9927aedfaa59..44cb828ccc92 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml @@ -1,16 +1,19 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": true, "stringIndexType": - "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}]}, "analysisInput": {"documents": [{"id": "1", "text": - "I did not like the hotel we stayed at.", "language": "english"}]}}' + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": + [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the + hotel we stayed at.", "language": "english"}]}}' headers: Accept: - application/json, text/json @@ -19,13 +22,13 @@ interactions: Connection: - keep-alive Content-Length: - - '921' + - '1136' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid parameter in request","innererror":{"code":"InvalidParameterValue","message":"Job @@ -33,11 +36,11 @@ interactions: job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: apim-request-id: - - 417134ca-d259-4d84-8aa0-8323fae697f1 + - 477a0d83-2bcc-4078-b8ae-c323964379b5 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:57 GMT + - Thu, 07 Oct 2021 23:39:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '654' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml index 7a4eb43fdc97..be6fae1efdda 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml @@ -1,17 +1,19 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "1", "text": "I did not like the hotel we stayed at.", - "language": "english"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the + hotel we stayed at.", "language": "english"}]}}' headers: Accept: - application/json, text/json @@ -20,13 +22,13 @@ interactions: Connection: - keep-alive Content-Length: - - '924' + - '1139' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid parameter in request","innererror":{"code":"InvalidParameterValue","message":"Job @@ -34,11 +36,11 @@ interactions: job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: apim-request-id: - - d89ccb83-73b2-4bc5-9d69-fce9f98a3c37 + - 093850c2-978a-48df-893e-01a66eb90561 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:58 GMT + - Thu, 07 Oct 2021 23:39:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml index d98333e7837e..999d10fbc9a2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml @@ -2,8 +2,10 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - false}}], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - []}, "analysisInput": {"documents": [{"id": "0", "text": "", "language": "en"}]}}' + false}, "taskName": "0"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "0", "text": "", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -12,24 +14,24 @@ interactions: Connection: - keep-alive Content-Length: - - '342' + - '472' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Document text is empty."}}}' headers: apim-request-id: - - 04acc0f2-d7c5-4b2f-9185-762b3e471998 + - 6eff5795-f82e-4f79-9aaf-19c0aa854ef4 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:29:58 GMT + - Thu, 07 Oct 2021 23:39:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '666' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_custom_partial_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_custom_partial_error.yaml new file mode 100644 index 000000000000..aa165030f375 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_custom_partial_error.yaml @@ -0,0 +1,95 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [{"parameters": + {"project-name": "textanalytics_custom_entities_project_name", "deployment-name": + "textanalytics_custom_entities_project_name"}, "taskName": "2"}], "customSingleClassificationTasks": + [{"parameters": {"project-name": "single_category_classify_project_name", "deployment-name": + "single_category_classify_project_name"}, "taskName": "0"}], "customMultiClassificationTasks": + [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", + "deployment-name": "textanalytics_multi_category_classify_project_name"}, "taskName": + "1"}]}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report + by the Government Accountability Office (GAO) found that the dramatic increase + in oil and natural gas development on federal lands over the past six years + has stretched the staff of the BLM to a point that it has been unable to meet + its environmental protection responsibilities.", "language": "en"}, {"id": "2", + "text": "", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1170' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: + - 78c01927-844e-43d5-b214-c434c262bee7 + date: + - Thu, 07 Oct 2021 23:39:29 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cc91b62-6188-4333-99cf-a3c4ad7d5be2 + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '2131' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cc91b62-6188-4333-99cf-a3c4ad7d5be2?showStats=True + response: + body: + string: '{"jobId":"9cc91b62-6188-4333-99cf-a3c4ad7d5be2","lastUpdateDateTime":"2021-10-07T23:39:33Z","createdDateTime":"2021-10-07T23:39:28Z","expirationDateTime":"2021-10-08T23:39:28Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:32.2418795Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past + six years","category":"timeRange","offset":156,"length":14,"confidenceScore":0.54}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:33.0466949Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:32.745959Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + headers: + apim-request-id: + - 46ce3d85-369f-487a-b447-f7ba08da19bb + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:39:34 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '244' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml index c71e08904ced..d1a2a184856c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml @@ -1,15 +1,24 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": + "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + true}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": true, "stringIndexType": - "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true}}], "entityLinkingTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": true, "opinionMining": - false}}], "extractiveSummarizationTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}]}, "analysisInput": {"documents": [{"id": "0", "text": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [{"parameters": {"project-name": "textanalytics_custom_entities_project_name", + "deployment-name": "textanalytics_custom_entities_project_name", "loggingOptOut": + true}, "taskName": "8"}], "customSingleClassificationTasks": [{"parameters": + {"project-name": "single_category_classify_project_name", "deployment-name": + "single_category_classify_project_name", "loggingOptOut": true}, "taskName": + "6"}], "customMultiClassificationTasks": [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", + "deployment-name": "textanalytics_multi_category_classify_project_name", "loggingOptOut": + true}, "taskName": "7"}]}, "analysisInput": {"documents": [{"id": "0", "text": "Test for logging disable", "language": "en"}]}}' headers: Accept: @@ -19,23 +28,23 @@ interactions: Connection: - keep-alive Content-Length: - - '915' + - '1643' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - 188a3007-12bf-45f2-bf92-a4138fb3119c + - 6ee56acd-876e-4b26-ae42-49f38d90c54b date: - - Mon, 02 Aug 2021 21:29:59 GMT + - Thu, 07 Oct 2021 23:39:36 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/183519e6-03c2-4c4c-9c58-8650a3cfd169 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -43,7 +52,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '327' + - '1258' status: code: 202 message: Accepted @@ -57,19 +66,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/183519e6-03c2-4c4c-9c58-8650a3cfd169 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 response: body: - string: '{"jobId":"183519e6-03c2-4c4c-9c58-8650a3cfd169","lastUpdateDateTime":"2021-08-02T21:30:01Z","createdDateTime":"2021-08-02T21:29:59Z","expirationDateTime":"2021-08-03T21:29:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:39Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":6,"total":9,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - 397f3b2d-b72e-4a64-9146-0ba018e8d455 + - 2107abf6-7804-4461-887f-557ea1705ce5 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:04 GMT + - Thu, 07 Oct 2021 23:39:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -77,7 +86,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '154' status: code: 200 message: OK @@ -91,22 +100,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/183519e6-03c2-4c4c-9c58-8650a3cfd169 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 response: body: - string: '{"jobId":"183519e6-03c2-4c4c-9c58-8650a3cfd169","lastUpdateDateTime":"2021-08-02T21:30:07Z","createdDateTime":"2021-08-02T21:29:59Z","expirationDateTime":"2021-08-03T21:29:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:07.0175711Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:06.8160554Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:45Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":4,"total":9,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:06.955071Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:07.4495809Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - 436e11f7-ea15-4066-b80b-163924eb8f03 + - 0e9f61d4-175f-40d7-be34-f1223602e257 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:10 GMT + - Thu, 07 Oct 2021 23:39:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -114,7 +123,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '189' + - '386' status: code: 200 message: OK @@ -128,23 +137,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/183519e6-03c2-4c4c-9c58-8650a3cfd169 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 response: body: - string: '{"jobId":"183519e6-03c2-4c4c-9c58-8650a3cfd169","lastUpdateDateTime":"2021-08-02T21:30:12Z","createdDateTime":"2021-08-02T21:29:59Z","expirationDateTime":"2021-08-03T21:29:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:07.0175711Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:06.8160554Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:50Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":8,"failed":0,"inProgress":1,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:49.1632088Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:06.955071Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:12.438369Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test - for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:07.4495809Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:47.9178506Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:50.0955163Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - d3a06460-fe42-4df0-bd0e-1c8c88f72004 + - 58f16c18-2458-4e03-92c6-9911f203aaf6 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:15 GMT + - Thu, 07 Oct 2021 23:39:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -152,7 +161,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '201' + - '1084' status: code: 200 message: OK @@ -166,24 +175,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/183519e6-03c2-4c4c-9c58-8650a3cfd169 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 response: body: - string: '{"jobId":"183519e6-03c2-4c4c-9c58-8650a3cfd169","lastUpdateDateTime":"2021-08-02T21:30:18Z","createdDateTime":"2021-08-02T21:29:59Z","expirationDateTime":"2021-08-03T21:29:59Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:07.0175711Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:06.8160554Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:50Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":8,"failed":0,"inProgress":1,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:49.1632088Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:06.955071Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:12.438369Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test - for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:07.4495809Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:18.0417199Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test - for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:47.9178506Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:50.0955163Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: apim-request-id: - - 0f6c1811-819e-4dd2-b0aa-12d6a83085fa + - 7b9e1af8-4010-4180-8f67-06fc3abe41c1 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:20 GMT + - Thu, 07 Oct 2021 23:39:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -191,7 +199,84 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '215' + - '499' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 + response: + body: + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:39:50Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":8,"failed":0,"inProgress":1,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:49.1632088Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:47.9178506Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:50.0955163Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + headers: + apim-request-id: + - 4f80ec6f-73b9-4545-8190-c169e6b4ae67 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:40:04 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '469' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e1355ed-a3a6-4601-834d-7e64e00e7542 + response: + body: + string: '{"jobId":"9e1355ed-a3a6-4601-834d-7e64e00e7542","lastUpdateDateTime":"2021-10-07T23:40:04Z","createdDateTime":"2021-10-07T23:39:35Z","expirationDateTime":"2021-10-08T23:39:35Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":9,"failed":0,"inProgress":0,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:49.1632088Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:45.7188108Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:43.9036183Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:47.9178506Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:50.0955163Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:40:04.4303317Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test + for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:36.4911537Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:38.7982983Z","taskName":"6","state":"succeeded","results":{"documents":[{"id":"0","classification":{"category":"PlayMusic","confidenceScore":0.6},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:39:39.7682419Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + headers: + apim-request-id: + - f3b4b7f9-8324-49ff-9c44-daf6bae0927c + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:40:09 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '587' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml index d532ea471266..1f5d8b3c6702 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml @@ -1,17 +1,19 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "0", "text": "This is written in English.", "language": - "en"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "This is written in + English.", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -20,13 +22,13 @@ interactions: Connection: - keep-alive Content-Length: - - '923' + - '1138' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -34,13 +36,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - c929d21c-ba93-41fb-aa46-f427bd389506 + - a6d8a10e-4116-4e50-8fa3-d0d65b8e1855 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:30:21 GMT + - Thu, 07 Oct 2021 23:40:09 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_action_with_options.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_action_with_options.yaml index b84886d7ac95..f26bba6a1a4b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_action_with_options.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_action_with_options.yaml @@ -4,28 +4,30 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 5, "sortBy": "Rank"}}]}, "analysisInput": {"documents": [{"id": "0", "text": - "The government of British Prime Minster Theresa May has been plunged into turmoil - with the resignation of two senior Cabinet ministers in a deep split over her - Brexit strategy. The Foreign Secretary Boris Johnson, quit on Monday, hours - after the resignation late on Sunday night of the minister in charge of Brexit - negotiations, David Davis. Their decision to leave the government came three - days after May appeared to have agreed a deal with herfractured Cabinet on the - UK''s post Brexit relationship with the EU. That plan is now in tatters and - her political future appears uncertain. May appeared in Parliament on Monday - afternoon to defend her plan, minutes after Downing Street confirmed the departure - of Johnson. May acknowledged the splits in her statement to MPs, saying of the - ministers who quit: We do not agree about the best way of delivering our shared - commitment to honoring the result of the referendum. The Prime Minister''s latest - plitical drama began late on Sunday night when Davis quit, declaring he could - not support May''s Brexit plan. He said it involved too close a relationship - with the EU and gave only an illusion of control being returned to the UK after - it left the EU. It seems to me we''re giving too much away, too easily, and - that''s a dangerous strategy at this time, Davis said in a BBC radio interview - Monday morning. Johnson''s resignation came Monday afternoon local time, just - before the Prime Minister was due to make a scheduled statement in Parliament. - This afternoon, the Prime Minister accepted the resignation of Boris Johnson - as Foreign Secretary, a statement from Downing Street said.", "language": "en"}]}}' + 5, "sortBy": "Rank"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "0", "text": "The government of British + Prime Minster Theresa May has been plunged into turmoil with the resignation + of two senior Cabinet ministers in a deep split over her Brexit strategy. The + Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation + late on Sunday night of the minister in charge of Brexit negotiations, David + Davis. Their decision to leave the government came three days after May appeared + to have agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship + with the EU. That plan is now in tatters and her political future appears uncertain. + May appeared in Parliament on Monday afternoon to defend her plan, minutes after + Downing Street confirmed the departure of Johnson. May acknowledged the splits + in her statement to MPs, saying of the ministers who quit: We do not agree about + the best way of delivering our shared commitment to honoring the result of the + referendum. The Prime Minister''s latest plitical drama began late on Sunday + night when Davis quit, declaring he could not support May''s Brexit plan. He + said it involved too close a relationship with the EU and gave only an illusion + of control being returned to the UK after it left the EU. It seems to me we''re + giving too much away, too easily, and that''s a dangerous strategy at this time, + Davis said in a BBC radio interview Monday morning. Johnson''s resignation came + Monday afternoon local time, just before the Prime Minister was due to make + a scheduled statement in Parliament. This afternoon, the Prime Minister accepted + the resignation of Boris Johnson as Foreign Secretary, a statement from Downing + Street said.", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -34,23 +36,23 @@ interactions: Connection: - keep-alive Content-Length: - - '2044' + - '2174' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - 47d03452-7749-4550-b364-3d448fe01fda + - 27cd70b7-9bca-444c-ba26-e26029e0c0a8 date: - - Mon, 02 Aug 2021 21:30:21 GMT + - Thu, 07 Oct 2021 23:40:10 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/099fcec2-c206-4414-9475-4f610c2f8097 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -58,7 +60,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '294' + - '185' status: code: 202 message: Accepted @@ -72,19 +74,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/099fcec2-c206-4414-9475-4f610c2f8097?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42?showStats=True response: body: - string: '{"jobId":"099fcec2-c206-4414-9475-4f610c2f8097","lastUpdateDateTime":"2021-08-02T21:30:23Z","createdDateTime":"2021-08-02T21:30:22Z","expirationDateTime":"2021-08-03T21:30:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"776bd04e-618b-4459-803b-629deb914e42","lastUpdateDateTime":"2021-10-07T23:40:11Z","createdDateTime":"2021-10-07T23:40:10Z","expirationDateTime":"2021-10-08T23:40:10Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 773fcb61-425c-4be5-9b01-ae20b4fd8669 + - 5ce62e6d-bcc1-49b9-a833-b27f9c8ab1b6 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:27 GMT + - Thu, 07 Oct 2021 23:40:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -92,7 +94,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '41' status: code: 200 message: OK @@ -106,19 +108,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/099fcec2-c206-4414-9475-4f610c2f8097?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42?showStats=True response: body: - string: '{"jobId":"099fcec2-c206-4414-9475-4f610c2f8097","lastUpdateDateTime":"2021-08-02T21:30:23Z","createdDateTime":"2021-08-02T21:30:22Z","expirationDateTime":"2021-08-03T21:30:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"776bd04e-618b-4459-803b-629deb914e42","lastUpdateDateTime":"2021-10-07T23:40:11Z","createdDateTime":"2021-10-07T23:40:10Z","expirationDateTime":"2021-10-08T23:40:10Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - e70b6d6c-e47f-45ba-8587-233823b3f54a + - 35e0add7-6008-43a5-8cba-84ae5a209f81 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:32 GMT + - Thu, 07 Oct 2021 23:40:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -126,7 +128,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '49' status: code: 200 message: OK @@ -140,19 +142,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/099fcec2-c206-4414-9475-4f610c2f8097?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42?showStats=True response: body: - string: '{"jobId":"099fcec2-c206-4414-9475-4f610c2f8097","lastUpdateDateTime":"2021-08-02T21:30:23Z","createdDateTime":"2021-08-02T21:30:22Z","expirationDateTime":"2021-08-03T21:30:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"776bd04e-618b-4459-803b-629deb914e42","lastUpdateDateTime":"2021-10-07T23:40:11Z","createdDateTime":"2021-10-07T23:40:10Z","expirationDateTime":"2021-10-08T23:40:10Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 7baebcb9-df0c-4ce5-b70d-824f16cb95af + - 6d89a076-deee-403e-882b-6f69a5881737 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:37 GMT + - Thu, 07 Oct 2021 23:40:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -160,7 +162,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '23' status: code: 200 message: OK @@ -174,31 +176,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/099fcec2-c206-4414-9475-4f610c2f8097?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/776bd04e-618b-4459-803b-629deb914e42?showStats=True response: body: - string: '{"jobId":"099fcec2-c206-4414-9475-4f610c2f8097","lastUpdateDateTime":"2021-08-02T21:30:41Z","createdDateTime":"2021-08-02T21:30:22Z","expirationDateTime":"2021-08-03T21:30:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:41.9003227Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The - government of British Prime Minster Theresa May has been plunged into turmoil - with the resignation of two senior Cabinet ministers in a deep split over - her Brexit strategy.","rankScore":1.0,"offset":0,"length":176},{"text":"The + string: '{"jobId":"776bd04e-618b-4459-803b-629deb914e42","lastUpdateDateTime":"2021-10-07T23:40:27Z","createdDateTime":"2021-10-07T23:40:10Z","expirationDateTime":"2021-10-08T23:40:10Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:40:27.4693543Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation late on Sunday night of the minister in charge of Brexit negotiations, David - Davis.","rankScore":0.9711179434493907,"offset":177,"length":164},{"text":"Their - decision to leave the government came three days after May appeared to have - agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship - with the EU.","rankScore":0.9103508917712292,"offset":342,"length":171},{"text":"That - plan is now in tatters and her political future appears uncertain.","rankScore":0.8227722338472695,"offset":514,"length":71},{"text":"May - appeared in Parliament on Monday afternoon to defend her plan, minutes after - Downing Street confirmed the departure of Johnson.","rankScore":0.6751042854876602,"offset":586,"length":131}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' + Davis.","rankScore":1.0,"offset":177,"length":164},{"text":"The government + of British Prime Minster Theresa May has been plunged into turmoil with the + resignation of two senior Cabinet ministers in a deep split over her Brexit + strategy.","rankScore":0.57,"offset":0,"length":176},{"text":"Their decision + to leave the government came three days after May appeared to have agreed + a deal with herfractured Cabinet on the UK''s post Brexit relationship with + the EU.","rankScore":0.47,"offset":342,"length":171},{"text":"That plan is + now in tatters and her political future appears uncertain.","rankScore":0.36,"offset":514,"length":71},{"text":"The + Prime Minister''s latest plitical drama began late on Sunday night when Davis + quit, declaring he could not support May''s Brexit plan.","rankScore":0.26,"offset":918,"length":136}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: apim-request-id: - - e94dcf0d-2834-49be-a708-2c1611945cd5 + - d7c1df5a-5541-4b5c-8249-0414154ee829 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:42 GMT + - Thu, 07 Oct 2021 23:40:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -206,7 +208,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '73' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_partial_results.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_partial_results.yaml index 8f0cea5f7d9b..d9b3e0427323 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_partial_results.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_extract_summary_partial_results.yaml @@ -4,8 +4,10 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}]}, "analysisInput": {"documents": [{"id": "1", "text": - "", "language": "en"}, {"id": "2", "text": "hello world", "language": "en"}]}}' + 3, "sortBy": "Offset"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "", "language": "en"}, {"id": + "2", "text": "hello world", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -14,23 +16,23 @@ interactions: Connection: - keep-alive Content-Length: - - '475' + - '605' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - f58fa7d8-6aef-45e8-82ba-37fa2eaa9f55 + - e28db531-0925-4473-bff5-20b50687e22a date: - - Mon, 02 Aug 2021 21:30:44 GMT + - Thu, 07 Oct 2021 23:40:31 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/6d47b405-03f5-4fb0-9e35-f0abf05d5cd3 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '111' + - '255' status: code: 202 message: Accepted @@ -52,19 +54,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/6d47b405-03f5-4fb0-9e35-f0abf05d5cd3?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec?showStats=True response: body: - string: '{"jobId":"6d47b405-03f5-4fb0-9e35-f0abf05d5cd3","lastUpdateDateTime":"2021-08-02T21:30:44Z","createdDateTime":"2021-08-02T21:30:44Z","expirationDateTime":"2021-08-03T21:30:44Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6028f03e-60c1-43d7-bc5a-a0e9d9023fec","lastUpdateDateTime":"2021-10-07T23:40:32Z","createdDateTime":"2021-10-07T23:40:31Z","expirationDateTime":"2021-10-08T23:40:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 1bc526c0-2c9d-4e04-9eb7-c5ec382edf10 + - e66ee153-53b4-4944-88d5-7b4c2c39724e content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:49 GMT + - Thu, 07 Oct 2021 23:40:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +74,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '46' status: code: 200 message: OK @@ -86,19 +88,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/6d47b405-03f5-4fb0-9e35-f0abf05d5cd3?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec?showStats=True response: body: - string: '{"jobId":"6d47b405-03f5-4fb0-9e35-f0abf05d5cd3","lastUpdateDateTime":"2021-08-02T21:30:44Z","createdDateTime":"2021-08-02T21:30:44Z","expirationDateTime":"2021-08-03T21:30:44Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6028f03e-60c1-43d7-bc5a-a0e9d9023fec","lastUpdateDateTime":"2021-10-07T23:40:32Z","createdDateTime":"2021-10-07T23:40:31Z","expirationDateTime":"2021-10-08T23:40:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 24d815fe-1ec8-4a3c-bd2d-b6cbd0a14e04 + - 50c67605-32d5-461e-8b3e-01266d7f2ce3 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:53 GMT + - Thu, 07 Oct 2021 23:40:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '15' status: code: 200 message: OK @@ -120,22 +122,55 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/6d47b405-03f5-4fb0-9e35-f0abf05d5cd3?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec?showStats=True response: body: - string: '{"jobId":"6d47b405-03f5-4fb0-9e35-f0abf05d5cd3","lastUpdateDateTime":"2021-08-02T21:30:56Z","createdDateTime":"2021-08-02T21:30:44Z","expirationDateTime":"2021-08-03T21:30:44Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:30:56.9573055Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"6028f03e-60c1-43d7-bc5a-a0e9d9023fec","lastUpdateDateTime":"2021-10-07T23:40:32Z","createdDateTime":"2021-10-07T23:40:31Z","expirationDateTime":"2021-10-08T23:40:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 293e461c-58ed-4d1c-90ef-03258152d8d8 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:40:46 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/6028f03e-60c1-43d7-bc5a-a0e9d9023fec?showStats=True + response: + body: + string: '{"jobId":"6028f03e-60c1-43d7-bc5a-a0e9d9023fec","lastUpdateDateTime":"2021-10-07T23:40:49Z","createdDateTime":"2021-10-07T23:40:31Z","expirationDateTime":"2021-10-08T23:40:31Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:40:49.1817214Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-08-01"}}]}}' headers: apim-request-id: - - 2462db62-ebd3-4583-9bda-4fe5ec7e86a6 + - 1d1081f6-50fa-49b9-87eb-11b14d4a827c content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:30:59 GMT + - Thu, 07 Oct 2021 23:40:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -143,7 +178,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '70' + - '202' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml index e37c3438d599..990fdc09633f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml @@ -1,17 +1,19 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "0", "text": "This should fail because we''re passing - in an invalid language hint", "language": "notalanguage"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "This should fail because + we''re passing in an invalid language hint", "language": "notalanguage"}]}}' headers: Accept: - application/json, text/json @@ -20,23 +22,23 @@ interactions: Connection: - keep-alive Content-Length: - - '972' + - '1187' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - d84360c8-d4aa-4eb6-a779-913175112a9c + - 524fafc7-c206-4359-9490-4fc9f8c5a17b date: - - Mon, 02 Aug 2021 21:31:00 GMT + - Thu, 07 Oct 2021 23:40:53 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/10130184-69c8-4293-a072-d125494d6d91 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '269' + - '648' status: code: 202 message: Accepted @@ -58,19 +60,53 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/10130184-69c8-4293-a072-d125494d6d91 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb response: body: - string: '{"jobId":"10130184-69c8-4293-a072-d125494d6d91","lastUpdateDateTime":"2021-08-02T21:31:01Z","createdDateTime":"2021-08-02T21:31:00Z","expirationDateTime":"2021-08-03T21:31:00Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:40:53Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: apim-request-id: - - e46f3068-0b17-4099-9f3f-e5b15108a1aa + - 8d753749-2ad7-40c8-a744-34a44ac07e7b content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:31:05 GMT + - Thu, 07 Oct 2021 23:40:57 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '23' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb + response: + body: + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:40:59Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + headers: + apim-request-id: + - 2e7abfa9-27b0-46fc-81dc-aaba3e76647a + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -92,25 +128,75 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb + response: + body: + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:41:08Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:08.1351322Z","taskName":"0","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.1967898Z","taskName":"3","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.7816898Z","taskName":"2","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.4585937Z","taskName":"1","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,da,fi,nl,pl,ru,sv,de,en,es,fr,it,pt-BR,pt-PT,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - bf50252b-b8e4-4515-8a1e-9a8f618477ba + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:08 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '555' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/10130184-69c8-4293-a072-d125494d6d91 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb response: body: - string: '{"jobId":"10130184-69c8-4293-a072-d125494d6d91","lastUpdateDateTime":"2021-08-02T21:31:07Z","createdDateTime":"2021-08-02T21:31:00Z","expirationDateTime":"2021-08-03T21:31:00Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":4,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:07.0426689Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:41:08Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:08.1351322Z","taskName":"0","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:06.9909423Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.1967898Z","taskName":"3","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.7816898Z","taskName":"2","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.4585937Z","taskName":"1","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,da,fi,nl,pl,ru,sv,de,en,es,fr,it,pt-BR,pt-PT,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - f3e4ef19-4c81-4081-8cef-00b3f4a110d0 + - 5707d54d-5870-45dc-a4fb-93a8b0ffb53b content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:31:10 GMT + - Thu, 07 Oct 2021 23:41:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,7 +204,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '146' + - '248' status: code: 200 message: OK @@ -132,33 +218,33 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/10130184-69c8-4293-a072-d125494d6d91 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb response: body: - string: '{"jobId":"10130184-69c8-4293-a072-d125494d6d91","lastUpdateDateTime":"2021-08-02T21:31:13Z","createdDateTime":"2021-08-02T21:31:00Z","expirationDateTime":"2021-08-03T21:31:00Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:07.0426689Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:41:15Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:08.1351322Z","taskName":"0","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:13.849641Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.1967898Z","taskName":"3","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:06.9909423Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.7816898Z","taskName":"2","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:12.4583147Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:15.8767191Z","taskName":"5","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-PT,pt-BR. - For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-08-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:12.6397836Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.4585937Z","taskName":"1","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' + language code. Supported languages: ja,ko,zh-Hans,da,fi,nl,pl,ru,sv,de,en,es,fr,it,pt-BR,pt-PT,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - cba2f218-9627-452f-824d-50dc740fc781 + - 98d88870-1dd1-4dde-b473-c55e050af242 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:31:16 GMT + - Thu, 07 Oct 2021 23:41:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -166,7 +252,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '186' + - '254' status: code: 200 message: OK @@ -180,36 +266,36 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/10130184-69c8-4293-a072-d125494d6d91 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/20700fe9-a203-4c42-96c5-a902ca3cbbbb response: body: - string: '{"jobId":"10130184-69c8-4293-a072-d125494d6d91","lastUpdateDateTime":"2021-08-02T21:31:17Z","createdDateTime":"2021-08-02T21:31:00Z","expirationDateTime":"2021-08-03T21:31:00Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:07.0426689Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"20700fe9-a203-4c42-96c5-a902ca3cbbbb","lastUpdateDateTime":"2021-10-07T23:41:23Z","createdDateTime":"2021-10-07T23:40:52Z","expirationDateTime":"2021-10-08T23:40:52Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:08.1351322Z","taskName":"0","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:13.849641Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.1967898Z","taskName":"3","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:06.9909423Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.7816898Z","taskName":"2","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:12.4583147Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:15.8767191Z","taskName":"5","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-PT,pt-BR. - For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:17.9229613Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:06.4585937Z","taskName":"1","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,da,fi,nl,pl,ru,sv,de,en,es,fr,it,pt-BR,pt-PT,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:12.6397836Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:23.605784Z","taskName":"4","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 872f1b9e-f3ad-4eae-8c6f-c2376073763f + - 979736f8-8008-4b6a-b897-79bcc1de73cc content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:31:21 GMT + - Thu, 07 Oct 2021 23:41:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -217,7 +303,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '216' + - '334' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multi_category_classify.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multi_category_classify.yaml new file mode 100644 index 000000000000..bf229f1fd89b --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multi_category_classify.yaml @@ -0,0 +1,88 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": [{"parameters": + {"project-name": "textanalytics_multi_category_classify_project_name", "deployment-name": + "textanalytics_multi_category_classify_project_name"}, "taskName": "0"}]}, "analysisInput": + {"documents": [{"id": "1", "text": "A recent report by the Government Accountability + Office (GAO) found that the dramatic increase in oil and natural gas development + on federal lands over the past six years has stretched the staff of the BLM + to a point that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food + Safety, International Food Information Council (IFIC), Washington, D.C., discussed + the physical activity component.", "language": "en"}, {"id": "3", "text": "I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1196' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: + - 9e97987a-7066-4590-b132-a948c28014ba + date: + - Thu, 07 Oct 2021 23:41:25 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/15f01764-884e-46a6-805a-617e74dab0f9 + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '226' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/15f01764-884e-46a6-805a-617e74dab0f9?showStats=True + response: + body: + string: '{"jobId":"15f01764-884e-46a6-805a-617e74dab0f9","lastUpdateDateTime":"2021-10-07T23:41:26Z","createdDateTime":"2021-10-07T23:41:25Z","expirationDateTime":"2021-10-08T23:41:25Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:26.4004139Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classifications":[],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classifications":[{"category":"BookRestaurant","confidenceScore":0.97}],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + headers: + apim-request-id: + - 3572e3dc-1139-4c6d-aa4b-161f4c3eea43 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:30 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '178' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action.yaml new file mode 100644 index 000000000000..b32c233ed998 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action.yaml @@ -0,0 +1,918 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "2"}, {"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint"}, "taskName": "7"}], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}, {"parameters": {"model-version": "latest", "loggingOptOut": + true, "piiCategories": ["USSocialSecurityNumber"], "stringIndexType": "UnicodeCodePoint"}, + "taskName": "5"}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false}, "taskName": "6"}, {"parameters": {"model-version": + "latest", "loggingOptOut": false}, "taskName": "11"}], "entityLinkingTasks": + [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint"}, "taskName": "3"}, {"parameters": {"model-version": "latest", + "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "9"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "0"}, {"parameters": + {"model-version": "latest", "loggingOptOut": false, "opinionMining": true}, + "taskName": "8"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 3, "sortBy": "Rank"}, "taskName": "4"}, {"parameters": {"model-version": "latest", + "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 1, "sortBy": "Offset"}, "taskName": "10"}], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "28", "text": "My SSN is 859-98-0987. + Here is another sentence.", "language": "en"}, {"id": "3", "text": "Is 998.214.865-68 + your Brazilian CPF number? Here is another sentence.", "language": "en"}, {"id": + "5", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2390' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: + - 10d2dad8-0cb9-49a8-9064-64fa8cc3c57d + date: + - Thu, 07 Oct 2021 23:41:33 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1639' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: '{"jobId":"265cca67-f8d7-4b75-aca0-88bce8803c8b","lastUpdateDateTime":"2021-10-07T23:41:38Z","createdDateTime":"2021-10-07T23:41:31Z","expirationDateTime":"2021-10-08T23:41:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":12,"total":12}}' + headers: + apim-request-id: + - 5cb18956-14de-498e-bd66-59bc1b6c9a1e + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:37 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: '{"jobId":"265cca67-f8d7-4b75-aca0-88bce8803c8b","lastUpdateDateTime":"2021-10-07T23:41:40Z","createdDateTime":"2021-10-07T23:41:31Z","expirationDateTime":"2021-10-08T23:41:31Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":11,"total":12,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:41:40.7983208Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"28","entities":[{"text":"859","category":"Quantity","subcategory":"Number","offset":10,"length":3,"confidenceScore":0.8},{"text":"98","category":"Quantity","subcategory":"Number","offset":14,"length":2,"confidenceScore":0.8},{"text":"0987","category":"Quantity","subcategory":"Number","offset":17,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"998","category":"Quantity","subcategory":"Number","offset":3,"length":3,"confidenceScore":0.8},{"text":"214","category":"Quantity","subcategory":"Number","offset":7,"length":3,"confidenceScore":0.8},{"text":"865","category":"Quantity","subcategory":"Number","offset":11,"length":3,"confidenceScore":0.8},{"text":"68","category":"Quantity","subcategory":"Number","offset":15,"length":2,"confidenceScore":0.8}],"warnings":[]},{"id":"5","entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.95},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.66},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.65},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.94},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.83}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - cae9ab79-7122-49f1-9f9e-dc54982fa8ee + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:42 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '92' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: "{\"jobId\":\"265cca67-f8d7-4b75-aca0-88bce8803c8b\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:47Z\",\"createdDateTime\":\"2021-10-07T23:41:31Z\",\"\ + expirationDateTime\":\"2021-10-08T23:41:31Z\",\"status\":\"running\",\"errors\"\ + :[],\"displayName\":\"NA\",\"tasks\":{\"completed\":4,\"failed\":0,\"inProgress\"\ + :8,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\":\"2021-10-07T23:41:40.7983208Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:44.8597665Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:44.8119202Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:47.2930334Z\",\"taskName\":\"5\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the Government Accountability\ + \ Office (GAO) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the past six years has stretched the staff of the\ + \ BLM to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-01-15\"}}]}}" + headers: + apim-request-id: + - 96dd08bb-4639-4c54-b7d1-989a01b60237 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:48 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '333' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: "{\"jobId\":\"265cca67-f8d7-4b75-aca0-88bce8803c8b\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:53Z\",\"createdDateTime\":\"2021-10-07T23:41:31Z\",\"\ + expirationDateTime\":\"2021-10-08T23:41:31Z\",\"status\":\"running\",\"errors\"\ + :[],\"displayName\":\"NA\",\"tasks\":{\"completed\":9,\"failed\":0,\"inProgress\"\ + :3,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\":\"2021-10-07T23:41:53.7576255Z\"\ + ,\"taskName\":\"2\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:40.7983208Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:44.8597665Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:44.8119202Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:52.6444045Z\",\"taskName\":\"1\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the ********************************\ + \ (***) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the ************** has stretched the staff of the\ + \ *** to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[{\"text\":\"Government Accountability\ + \ Office\",\"category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.96},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.93},{\"text\":\"past six years\",\"category\":\"\ + DateTime\",\"subcategory\":\"DateRange\",\"offset\":156,\"length\":14,\"confidenceScore\"\ + :0.8},{\"text\":\"BLM\",\"category\":\"Organization\",\"offset\":202,\"length\"\ + :3,\"confidenceScore\":0.9}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:47.2930334Z\"\ + ,\"taskName\":\"5\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + redactedText\":\"My SSN is ***********. Here is another sentence.\",\"id\"\ + :\"28\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]},{\"\ + redactedText\":\"Is 998.214.865-68 your Brazilian CPF number? Here is another\ + \ sentence.\",\"id\":\"3\",\"entities\":[],\"warnings\":[]},{\"redactedText\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}}],\"extractiveSummarizationTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:51.6186346Z\",\"taskName\":\"10\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"sentences\":[{\"text\":\"My\ + \ SSN is 859-98-0987.\",\"rankScore\":1.0,\"offset\":0,\"length\":22}],\"\ + warnings\":[]},{\"id\":\"3\",\"sentences\":[{\"text\":\"Is 998.214.865-68\ + \ your Brazilian CPF number?\",\"rankScore\":1.0,\"offset\":0,\"length\":44}],\"\ + warnings\":[]},{\"id\":\"5\",\"sentences\":[{\"text\":\"A recent report by\ + \ the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"rankScore\":1.0,\"\ + offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-08-01\"}}],\"keyPhraseExtractionTasks\":[{\"lastUpdateDateTime\":\"\ + 2021-10-07T23:41:50.5445647Z\",\"taskName\":\"6\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:51.5804408Z\",\"taskName\":\"11\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}}]}}" + headers: + apim-request-id: + - 30c525e8-275d-4771-b881-0ea8b12603a6 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:41:54 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '790' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: "{\"jobId\":\"265cca67-f8d7-4b75-aca0-88bce8803c8b\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:57Z\",\"createdDateTime\":\"2021-10-07T23:41:31Z\",\"\ + expirationDateTime\":\"2021-10-08T23:41:31Z\",\"status\":\"running\",\"errors\"\ + :[],\"displayName\":\"NA\",\"tasks\":{\"completed\":11,\"failed\":0,\"inProgress\"\ + :1,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\":\"2021-10-07T23:41:53.7576255Z\"\ + ,\"taskName\":\"2\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:40.7983208Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:44.8597665Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:44.8119202Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:52.6444045Z\",\"taskName\":\"1\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the ********************************\ + \ (***) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the ************** has stretched the staff of the\ + \ *** to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[{\"text\":\"Government Accountability\ + \ Office\",\"category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.96},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.93},{\"text\":\"past six years\",\"category\":\"\ + DateTime\",\"subcategory\":\"DateRange\",\"offset\":156,\"length\":14,\"confidenceScore\"\ + :0.8},{\"text\":\"BLM\",\"category\":\"Organization\",\"offset\":202,\"length\"\ + :3,\"confidenceScore\":0.9}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:47.2930334Z\"\ + ,\"taskName\":\"5\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + redactedText\":\"My SSN is ***********. Here is another sentence.\",\"id\"\ + :\"28\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]},{\"\ + redactedText\":\"Is 998.214.865-68 your Brazilian CPF number? Here is another\ + \ sentence.\",\"id\":\"3\",\"entities\":[],\"warnings\":[]},{\"redactedText\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}}],\"extractiveSummarizationTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:57.3126417Z\",\"taskName\":\"4\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"sentences\":[{\"text\":\"My\ + \ SSN is 859-98-0987.\",\"rankScore\":1.0,\"offset\":0,\"length\":22},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":23,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"3\",\"sentences\":[{\"text\":\"Is 998.214.865-68\ + \ your Brazilian CPF number?\",\"rankScore\":1.0,\"offset\":0,\"length\":44},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":45,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"5\",\"sentences\":[{\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"rankScore\":1.0,\"\ + offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-08-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:51.6186346Z\"\ + ,\"taskName\":\"10\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentences\":[{\"text\":\"My SSN is 859-98-0987.\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":22}],\"warnings\":[]},{\"id\":\"3\",\"sentences\"\ + :[{\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":44}],\"warnings\":[]},{\"id\":\"5\",\"sentences\"\ + :[{\"text\":\"A recent report by the Government Accountability Office (GAO)\ + \ found that the dramatic increase in oil and natural gas development on federal\ + \ lands over the past six years has stretched the staff of the BLM to a point\ + \ that it has been unable to meet its environmental protection responsibilities.\"\ + ,\"rankScore\":1.0,\"offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-08-01\"}}],\"keyPhraseExtractionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:50.5445647Z\",\"taskName\":\"6\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:51.5804408Z\",\"taskName\":\"11\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}}],\"sentimentAnalysisTasks\"\ + :[{\"lastUpdateDateTime\":\"2021-10-07T23:41:55.5919878Z\",\"taskName\":\"\ + 8\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"28\",\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :22,\"text\":\"My SSN is 859-98-0987.\",\"targets\":[],\"assessments\":[]},{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.02,\"neutral\"\ + :0.9,\"negative\":0.08},\"offset\":23,\"length\":25,\"text\":\"Here is another\ + \ sentence.\",\"targets\":[],\"assessments\":[]}],\"warnings\":[]},{\"id\"\ + :\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"\ + neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"\ + offset\":0,\"length\":44,\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\"\ + ,\"targets\":[],\"assessments\":[]},{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":45,\"length\"\ + :25,\"text\":\"Here is another sentence.\",\"targets\":[],\"assessments\"\ + :[]}],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.23,\"neutral\"\ + :0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"targets\":[],\"\ + assessments\":[]}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"\ + }}]}}" + headers: + apim-request-id: + - f61de0c4-1f1a-4ada-b111-6a8aef607e76 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:00 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '847' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/265cca67-f8d7-4b75-aca0-88bce8803c8b + response: + body: + string: "{\"jobId\":\"265cca67-f8d7-4b75-aca0-88bce8803c8b\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:42:01Z\",\"createdDateTime\":\"2021-10-07T23:41:31Z\",\"\ + expirationDateTime\":\"2021-10-08T23:41:31Z\",\"status\":\"succeeded\",\"\ + errors\":[],\"displayName\":\"NA\",\"tasks\":{\"completed\":12,\"failed\"\ + :0,\"inProgress\":0,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:53.7576255Z\",\"taskName\":\"2\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[{\"text\":\"859\"\ + ,\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":10,\"length\"\ + :3,\"confidenceScore\":0.8},{\"text\":\"98\",\"category\":\"Quantity\",\"\ + subcategory\":\"Number\",\"offset\":14,\"length\":2,\"confidenceScore\":0.8},{\"\ + text\":\"0987\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\"\ + :17,\"length\":4,\"confidenceScore\":0.8}],\"warnings\":[]},{\"id\":\"3\"\ + ,\"entities\":[{\"text\":\"998\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"\ + 214\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":7,\"\ + length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:40.7983208Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:44.8597665Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:44.8119202Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:52.6444045Z\",\"taskName\":\"1\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the ********************************\ + \ (***) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the ************** has stretched the staff of the\ + \ *** to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[{\"text\":\"Government Accountability\ + \ Office\",\"category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.96},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.93},{\"text\":\"past six years\",\"category\":\"\ + DateTime\",\"subcategory\":\"DateRange\",\"offset\":156,\"length\":14,\"confidenceScore\"\ + :0.8},{\"text\":\"BLM\",\"category\":\"Organization\",\"offset\":202,\"length\"\ + :3,\"confidenceScore\":0.9}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:47.2930334Z\"\ + ,\"taskName\":\"5\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + redactedText\":\"My SSN is ***********. Here is another sentence.\",\"id\"\ + :\"28\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]},{\"\ + redactedText\":\"Is 998.214.865-68 your Brazilian CPF number? Here is another\ + \ sentence.\",\"id\":\"3\",\"entities\":[],\"warnings\":[]},{\"redactedText\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}}],\"extractiveSummarizationTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:57.3126417Z\",\"taskName\":\"4\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"sentences\":[{\"text\":\"My\ + \ SSN is 859-98-0987.\",\"rankScore\":1.0,\"offset\":0,\"length\":22},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":23,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"3\",\"sentences\":[{\"text\":\"Is 998.214.865-68\ + \ your Brazilian CPF number?\",\"rankScore\":1.0,\"offset\":0,\"length\":44},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":45,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"5\",\"sentences\":[{\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"rankScore\":1.0,\"\ + offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-08-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:51.6186346Z\"\ + ,\"taskName\":\"10\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentences\":[{\"text\":\"My SSN is 859-98-0987.\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":22}],\"warnings\":[]},{\"id\":\"3\",\"sentences\"\ + :[{\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":44}],\"warnings\":[]},{\"id\":\"5\",\"sentences\"\ + :[{\"text\":\"A recent report by the Government Accountability Office (GAO)\ + \ found that the dramatic increase in oil and natural gas development on federal\ + \ lands over the past six years has stretched the staff of the BLM to a point\ + \ that it has been unable to meet its environmental protection responsibilities.\"\ + ,\"rankScore\":1.0,\"offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-08-01\"}}],\"keyPhraseExtractionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:50.5445647Z\",\"taskName\":\"6\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:41:51.5804408Z\",\"taskName\":\"11\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}}],\"sentimentAnalysisTasks\"\ + :[{\"lastUpdateDateTime\":\"2021-10-07T23:42:01.0041001Z\",\"taskName\":\"\ + 0\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"28\",\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :22,\"text\":\"My SSN is 859-98-0987.\"},{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":23,\"length\"\ + :25,\"text\":\"Here is another sentence.\"}],\"warnings\":[]},{\"id\":\"3\"\ + ,\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :44,\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\"},{\"sentiment\"\ + :\"neutral\",\"confidenceScores\":{\"positive\":0.02,\"neutral\":0.9,\"negative\"\ + :0.08},\"offset\":45,\"length\":25,\"text\":\"Here is another sentence.\"\ + }],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.23,\"neutral\"\ + :0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\"}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2020-04-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:41:55.5919878Z\"\ + ,\"taskName\":\"8\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"\ + neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"\ + offset\":0,\"length\":22,\"text\":\"My SSN is 859-98-0987.\",\"targets\":[],\"\ + assessments\":[]},{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":23,\"length\":25,\"text\"\ + :\"Here is another sentence.\",\"targets\":[],\"assessments\":[]}],\"warnings\"\ + :[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.01,\"neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"\ + neutral\",\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\"\ + :0.0},\"offset\":0,\"length\":44,\"text\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number?\",\"targets\":[],\"assessments\":[]},{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"\ + offset\":45,\"length\":25,\"text\":\"Here is another sentence.\",\"targets\"\ + :[],\"assessments\":[]}],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"\ + sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.23,\"neutral\":0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"targets\":[],\"assessments\":[]}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2020-04-01\"}}]}}" + headers: + apim-request-id: + - d4247c88-dcf4-4dac-aed2-53df0f4478e3 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:05 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1001' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action_with_partial_results.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action_with_partial_results.yaml new file mode 100644 index 000000000000..57c4be616b45 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_of_same_action_with_partial_results.yaml @@ -0,0 +1,184 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", + "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "0"}, {"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 5, "sortBy": "Offset"}, "taskName": "2"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "5", "text": "A recent report by the + Government Accountability Office (GAO) found that the dramatic increase in oil + and natural gas development on federal lands over the past six years has stretched + the staff of the BLM to a point that it has been unable to meet its environmental + protection responsibilities.", "language": "en"}, {"id": "2", "text": "", "language": + "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1176' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: + - 3bbd420f-7e91-4327-a413-3f4831d2a718 + date: + - Thu, 07 Oct 2021 23:42:07 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3 + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '394' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3 + response: + body: + string: '{"jobId":"bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3","lastUpdateDateTime":"2021-10-07T23:42:07Z","createdDateTime":"2021-10-07T23:42:07Z","expirationDateTime":"2021-10-08T23:42:07Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":3,"total":3}}' + headers: + apim-request-id: + - 5d85e5f3-cbda-49fb-b34c-eabd0fa81072 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:12 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3 + response: + body: + string: '{"jobId":"bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3","lastUpdateDateTime":"2021-10-07T23:42:16Z","createdDateTime":"2021-10-07T23:42:07Z","expirationDateTime":"2021-10-08T23:42:07Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":2,"total":3,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:16.4799137Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"5","entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.96},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.93},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.9}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - d0878f94-3915-4b6b-8e70-ca979388f4b1 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:17 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '76' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3 + response: + body: + string: '{"jobId":"bc5cc667-7a3d-4ce1-bde7-4943f2bd5ca3","lastUpdateDateTime":"2021-10-07T23:42:20Z","createdDateTime":"2021-10-07T23:42:07Z","expirationDateTime":"2021-10-08T23:42:07Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:16.4799137Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"5","entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.96},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.93},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.9}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:20.2399998Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"5","sentences":[{"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities.","rankScore":1.0,"offset":0,"length":295}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-08-01"}},{"lastUpdateDateTime":"2021-10-07T23:42:20.1526365Z","taskName":"2","state":"succeeded","results":{"documents":[{"id":"5","sentences":[{"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities.","rankScore":1.0,"offset":0,"length":295}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-08-01"}}]}}' + headers: + apim-request-id: + - 20afba51-5fee-4bb5-876a-33ff5850b8c8 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:42:22 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '187' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml index 23eb38ed2268..5408a6a6aba4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml @@ -1,25 +1,27 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "0", "text": "hello world", "language": "en"}, {"id": - "1", "text": "hello world", "language": "en"}, {"id": "2", "text": "hello world", - "language": "en"}, {"id": "3", "text": "hello world", "language": "en"}, {"id": - "4", "text": "hello world", "language": "en"}, {"id": "5", "text": "hello world", - "language": "en"}, {"id": "6", "text": "hello world", "language": "en"}, {"id": - "7", "text": "hello world", "language": "en"}, {"id": "8", "text": "hello world", - "language": "en"}, {"id": "9", "text": "hello world", "language": "en"}, {"id": - "10", "text": "hello world", "language": "en"}, {"id": "11", "text": "hello - world", "language": "en"}, {"id": "12", "text": "hello world", "language": "en"}, - {"id": "13", "text": "hello world", "language": "en"}, {"id": "14", "text": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "hello world", "language": + "en"}, {"id": "1", "text": "hello world", "language": "en"}, {"id": "2", "text": + "hello world", "language": "en"}, {"id": "3", "text": "hello world", "language": + "en"}, {"id": "4", "text": "hello world", "language": "en"}, {"id": "5", "text": + "hello world", "language": "en"}, {"id": "6", "text": "hello world", "language": + "en"}, {"id": "7", "text": "hello world", "language": "en"}, {"id": "8", "text": + "hello world", "language": "en"}, {"id": "9", "text": "hello world", "language": + "en"}, {"id": "10", "text": "hello world", "language": "en"}, {"id": "11", "text": + "hello world", "language": "en"}, {"id": "12", "text": "hello world", "language": + "en"}, {"id": "13", "text": "hello world", "language": "en"}, {"id": "14", "text": "hello world", "language": "en"}, {"id": "15", "text": "hello world", "language": "en"}, {"id": "16", "text": "hello world", "language": "en"}, {"id": "17", "text": "hello world", "language": "en"}, {"id": "18", "text": "hello world", "language": @@ -36,23 +38,23 @@ interactions: Connection: - keep-alive Content-Length: - - '2218' + - '2433' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - f2e921c7-f115-4b34-bf2a-7394ec699c9b + - c79ca97c-5404-4d96-ba1b-a60783399b95 date: - - Mon, 02 Aug 2021 21:31:22 GMT + - Thu, 07 Oct 2021 23:42:23 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -60,7 +62,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '606' + - '1299' status: code: 202 message: Accepted @@ -74,73 +76,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"93090000-2b0e-4add-914c-78ba4241780c","lastUpdateDateTime":"2021-08-02T21:31:24Z","createdDateTime":"2021-08-02T21:31:22Z","expirationDateTime":"2021-08-03T21:31:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' - headers: - apim-request-id: - - c190e2ad-c885-4d34-a838-c7f75da5d887 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 02 Aug 2021 21:31:28 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '9' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?showStats=True - response: - body: - string: '{"jobId":"93090000-2b0e-4add-914c-78ba4241780c","lastUpdateDateTime":"2021-08-02T21:31:32Z","createdDateTime":"2021-08-02T21:31:22Z","expirationDateTime":"2021-08-03T21:31:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.1614302Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:31.2963558Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.384961Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?$skip=20&$top=5&showStats=True"}' + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:24Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: apim-request-id: - - 7753e58f-4d9f-4f32-8c1d-2754a65d4054 + - 197ae1f7-1b6f-46ee-bb22-3fe66c1b36eb content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:31:33 GMT + - Thu, 07 Oct 2021 23:42:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -148,7 +96,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '434' + - '10' status: code: 200 message: OK @@ -162,79 +110,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"93090000-2b0e-4add-914c-78ba4241780c","lastUpdateDateTime":"2021-08-02T21:31:38Z","createdDateTime":"2021-08-02T21:31:22Z","expirationDateTime":"2021-08-03T21:31:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.1614302Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:31.2963558Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.384961Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.2159509Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.014555Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"4","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"5","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"6","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"7","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"8","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"9","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"10","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"11","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"12","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"13","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"14","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"15","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"16","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?$skip=20&$top=5&showStats=True"}' + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:30Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: apim-request-id: - - 2ad0305b-1818-4dd6-8829-d94205084dfd + - 818d7cd8-9e2e-4139-975b-32823cab817d content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:31:39 GMT + - Thu, 07 Oct 2021 23:42:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -242,7 +130,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '711' + - '8' status: code: 200 message: OK @@ -256,12 +144,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"93090000-2b0e-4add-914c-78ba4241780c","lastUpdateDateTime":"2021-08-02T21:31:38Z","createdDateTime":"2021-08-02T21:31:22Z","expirationDateTime":"2021-08-03T21:31:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.1614302Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:31.2963558Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.384961Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:38Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -281,7 +169,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.2159509Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -301,34 +189,14 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.014555Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"4","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"5","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"6","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"7","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"8","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"9","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"10","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"11","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"12","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"13","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"14","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"15","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"16","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?$skip=20&$top=5&showStats=True"}' + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - 22a6ae63-6d6d-4c9b-b591-559bb4b75fd0 + - dcd2cf61-6fe6-4356-ba27-0d3becd9aea8 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:31:44 GMT + - Thu, 07 Oct 2021 23:42:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -336,7 +204,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '693' + - '724' status: code: 200 message: OK @@ -350,12 +218,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"93090000-2b0e-4add-914c-78ba4241780c","lastUpdateDateTime":"2021-08-02T21:31:38Z","createdDateTime":"2021-08-02T21:31:22Z","expirationDateTime":"2021-08-03T21:31:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.1614302Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:31.2963558Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.384961Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:42Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -375,7 +243,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.2159509Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -395,7 +263,7 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.014555Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:42.2445153Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -415,14 +283,14 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - f5145908-312a-4c9e-90e1-18d4a2dadef0 + - 656ecef9-7bf4-415b-96b1-27b751f03dc8 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:31:51 GMT + - Thu, 07 Oct 2021 23:42:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -430,7 +298,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '698' + - '1068' status: code: 200 message: OK @@ -444,12 +312,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"93090000-2b0e-4add-914c-78ba4241780c","lastUpdateDateTime":"2021-08-02T21:31:38Z","createdDateTime":"2021-08-02T21:31:22Z","expirationDateTime":"2021-08-03T21:31:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.1614302Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:31.2963558Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.384961Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:48Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:48.3752273Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -469,7 +337,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.2159509Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -489,7 +357,7 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.014555Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:42.2445153Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -509,14 +377,14 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - e5d02b66-298c-4fb9-94b9-3acf1aacde28 + - b23fb705-13aa-4d64-b447-71f2cc0ac1c2 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:31:57 GMT + - Thu, 07 Oct 2021 23:42:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -524,7 +392,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '703' + - '1306' status: code: 200 message: OK @@ -538,12 +406,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=True response: body: - string: '{"jobId":"93090000-2b0e-4add-914c-78ba4241780c","lastUpdateDateTime":"2021-08-02T21:32:00Z","createdDateTime":"2021-08-02T21:31:22Z","expirationDateTime":"2021-08-03T21:31:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.1614302Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:31.2963558Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.384961Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:53Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:48.3752273Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -563,27 +431,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:00.0224503Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.2159509Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:53.6036308Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -603,7 +451,7 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.014555Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:42.2445153Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -623,14 +471,14 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - 175022da-4296-4d5b-bd7c-9efd9007e184 + - bdefdf20-586f-4b09-b80f-57314d7f228a content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:32:03 GMT + - Thu, 07 Oct 2021 23:42:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -638,7 +486,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '901' + - '1496' status: code: 200 message: OK @@ -652,27 +500,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/93090000-2b0e-4add-914c-78ba4241780c?showStats=true&$top=5&$skip=20 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a794e194-9ae5-4534-8bba-4e738c189838?showStats=true&$top=5&$skip=20 response: body: - string: '{"jobId":"93090000-2b0e-4add-914c-78ba4241780c","lastUpdateDateTime":"2021-08-02T21:32:00Z","createdDateTime":"2021-08-02T21:31:22Z","expirationDateTime":"2021-08-03T21:31:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.1614302Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:31.2963558Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:32.384961Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"redactedText":"hello + string: '{"jobId":"a794e194-9ae5-4534-8bba-4e738c189838","lastUpdateDateTime":"2021-10-07T23:42:53Z","createdDateTime":"2021-10-07T23:42:23Z","expirationDateTime":"2021-10-08T23:42:23Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:48.3752273Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.5531204Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:36.329959Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"redactedText":"hello world","id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:00.0224503Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.2159509Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","keyPhrases":["hello + world","id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:53.6036308Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:38.2241693Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"21","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"22","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"23","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"24","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:31:38.014555Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:42:42.2445153Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"21","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"22","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"23","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -680,11 +523,11 @@ interactions: world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - eea8500a-ec47-45b7-a828-9ecab1b3e645 + - f20359d4-fd18-45df-a59f-53e7946770a2 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:32:03 GMT + - Thu, 07 Oct 2021 23:43:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -692,7 +535,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '436' + - '653' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml index 4a10ae024937..bacac50ef57c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml @@ -1,18 +1,20 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "56", "text": ":)", "language": "en"}, {"id": "0", "text": - ":(", "language": "en"}, {"id": "19", "text": ":P", "language": "en"}, {"id": - "1", "text": ":D", "language": "en"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": + "en"}, {"id": "0", "text": ":(", "language": "en"}, {"id": "19", "text": ":P", + "language": "en"}, {"id": "1", "text": ":D", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -21,23 +23,23 @@ interactions: Connection: - keep-alive Content-Length: - - '1035' + - '1250' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - 8e8f2026-4b59-4ff7-a445-ea30f08eeb8a + - 8c018c8b-5265-4521-bd70-89e341154ab2 date: - - Mon, 02 Aug 2021 21:32:05 GMT + - Thu, 07 Oct 2021 23:43:01 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/24ccff39-99f7-44eb-ad15-f739b88cc2d0 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '426' + - '686' status: code: 202 message: Accepted @@ -59,19 +61,87 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 + response: + body: + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:02Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + headers: + apim-request-id: + - 8bba499d-e94a-4eb4-8107-55a13de63617 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:43:06 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '8' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 + response: + body: + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:12Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:12.3512285Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - 1b9b52e5-9aa4-4632-a61c-af3f732f84b5 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:43:11 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '241' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/24ccff39-99f7-44eb-ad15-f739b88cc2d0 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 response: body: - string: '{"jobId":"24ccff39-99f7-44eb-ad15-f739b88cc2d0","lastUpdateDateTime":"2021-08-02T21:32:07Z","createdDateTime":"2021-08-02T21:32:05Z","expirationDateTime":"2021-08-03T21:32:05Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:17Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7495057Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:12.3512285Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7193598Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:17.065272Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 9d1a08b5-36d4-432d-9b48-edae1bc119d6 + - bfbe953c-90ee-4f68-8b49-34ae23cc4f7f content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:32:11 GMT + - Thu, 07 Oct 2021 23:43:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -79,7 +149,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '774' status: code: 200 message: OK @@ -93,19 +163,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/24ccff39-99f7-44eb-ad15-f739b88cc2d0 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 response: body: - string: '{"jobId":"24ccff39-99f7-44eb-ad15-f739b88cc2d0","lastUpdateDateTime":"2021-08-02T21:32:13Z","createdDateTime":"2021-08-02T21:32:05Z","expirationDateTime":"2021-08-03T21:32:05Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:12.6849312Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:13.0385961Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:12.814257Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:11.9047712Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:21Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7495057Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:12.3512285Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7193598Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:21.9574989Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:17.065272Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 25666d19-c85c-4518-a7f8-7b952b0f005c + - 69cc4ad6-27d5-49c0-b807-04558d936835 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:32:15 GMT + - Thu, 07 Oct 2021 23:43:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -113,7 +183,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '201' + - '385' status: code: 200 message: OK @@ -127,19 +197,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/24ccff39-99f7-44eb-ad15-f739b88cc2d0 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/38ceb190-50af-4347-b378-095735710ae6 response: body: - string: '{"jobId":"24ccff39-99f7-44eb-ad15-f739b88cc2d0","lastUpdateDateTime":"2021-08-02T21:32:17Z","createdDateTime":"2021-08-02T21:32:05Z","expirationDateTime":"2021-08-03T21:32:05Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:12.6849312Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:13.0385961Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:12.814257Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:17.8211152Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"documents":[{"id":"56","sentences":[{"text":":)","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"0","sentences":[{"text":":(","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"19","sentences":[{"text":":P","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"1","sentences":[{"text":":D","rankScore":1.0,"offset":0,"length":2}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:11.9047712Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:17.7229706Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"38ceb190-50af-4347-b378-095735710ae6","lastUpdateDateTime":"2021-10-07T23:43:26Z","createdDateTime":"2021-10-07T23:43:01Z","expirationDateTime":"2021-10-08T23:43:01Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7495057Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:12.3512285Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:16.7193598Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:21.9574989Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:17.065272Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:26.807498Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 0b68e9a1-b548-4694-9eeb-c903ca8ce8e5 + - d4ca067b-f737-449d-8a16-638d47255f14 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:32:22 GMT + - Thu, 07 Oct 2021 23:43:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -147,7 +217,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '309' + - '498' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml index 63ee02a4f8c7..08d3e8532764 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml @@ -1,12 +1,14 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": []}, "analysisInput": {"documents": - [{"id": "1", "text": "I did not like the hotel we stayed at.", "language": "tr"}, - {"id": "2", "text": "I did not like the hotel we stayed at.", "language": "en"}]}}' + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false, "opinionMining": false}, "taskName": "0"}], "extractiveSummarizationTasks": + [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], + "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "I did not like the hotel we stayed at.", "language": "tr"}, {"id": + "2", "text": "I did not like the hotel we stayed at.", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -15,23 +17,23 @@ interactions: Connection: - keep-alive Content-Length: - - '590' + - '737' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - af1c16ae-8b8b-499f-8971-70e7d62df46d + - 2c80ce03-68fb-446e-b63d-da9c6d758b38 date: - - Mon, 02 Aug 2021 21:32:22 GMT + - Thu, 07 Oct 2021 23:43:29 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/aca87abf-123c-4418-89f1-b0d84d10cc9b + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '166' + - '260' status: code: 202 message: Accepted @@ -53,19 +55,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/aca87abf-123c-4418-89f1-b0d84d10cc9b + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 response: body: - string: '{"jobId":"aca87abf-123c-4418-89f1-b0d84d10cc9b","lastUpdateDateTime":"2021-08-02T21:32:24Z","createdDateTime":"2021-08-02T21:32:22Z","expirationDateTime":"2021-08-03T21:32:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:30Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' headers: apim-request-id: - - 882bf8ea-b5cd-437f-b149-b58ccff3eef1 + - 3843786a-a758-47ea-8a9c-13b74293052e content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:32:28 GMT + - Thu, 07 Oct 2021 23:43:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -73,7 +75,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '10' status: code: 200 message: OK @@ -87,25 +89,139 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/aca87abf-123c-4418-89f1-b0d84d10cc9b + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 response: body: - string: '{"jobId":"aca87abf-123c-4418-89f1-b0d84d10cc9b","lastUpdateDateTime":"2021-08-02T21:32:31Z","createdDateTime":"2021-08-02T21:32:22Z","expirationDateTime":"2021-08-03T21:32:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:31.211693Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:37Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:37.3152811Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:29.7298876Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - 0b4a118a-7ac8-45f9-a2da-3e629c7100d6 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:43:39 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '82' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 + response: + body: + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:37Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:37.3152811Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - 6eb85911-2b68-49c8-897a-7875de7eb210 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:43:45 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '118' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 + response: + body: + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:37Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:37.3152811Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - 356a38f2-01f4-4668-8455-71fd3d092f5b + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:43:50 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '70' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/070567ec-e003-4d4d-84c4-5db891edcf01 + response: + body: + string: '{"jobId":"070567ec-e003-4d4d-84c4-5db891edcf01","lastUpdateDateTime":"2021-10-07T23:43:54Z","createdDateTime":"2021-10-07T23:43:29Z","expirationDateTime":"2021-10-08T23:43:29Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:37.3152811Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:54.8484842Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - a654639d-75dd-4e77-b12b-f6c5192c0759 + - 836f6963-ac3b-432d-ac32-9d4217108f05 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:32:33 GMT + - Thu, 07 Oct 2021 23:43:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -113,7 +229,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '72' + - '199' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml index c75280436679..e621dd6fcfd6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml @@ -1,11 +1,12 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": - [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": []}, "analysisInput": - {"documents": [{"id": "0", "text": "Test passing cls to endpoint", "language": - "en"}]}}' + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "Test passing cls to + endpoint", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -14,23 +15,23 @@ interactions: Connection: - keep-alive Content-Length: - - '409' + - '539' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - 5c26bcdc-5f1b-4b15-8a47-2d95f1f6ab0b + - bbd141a5-b8fb-49f5-bdfa-be382bcdea67 date: - - Mon, 02 Aug 2021 21:32:33 GMT + - Thu, 07 Oct 2021 23:43:56 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/c1a617ab-ebc7-4bd3-b81f-6a921aa1ffc2 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7c259102-270e-4f34-af9d-130c44782743 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '84' + - '544' status: code: 202 message: Accepted @@ -52,19 +53,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/c1a617ab-ebc7-4bd3-b81f-6a921aa1ffc2 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7c259102-270e-4f34-af9d-130c44782743 response: body: - string: '{"jobId":"c1a617ab-ebc7-4bd3-b81f-6a921aa1ffc2","lastUpdateDateTime":"2021-08-02T21:32:34Z","createdDateTime":"2021-08-02T21:32:33Z","expirationDateTime":"2021-08-03T21:32:33Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"7c259102-270e-4f34-af9d-130c44782743","lastUpdateDateTime":"2021-10-07T23:43:58Z","createdDateTime":"2021-10-07T23:43:56Z","expirationDateTime":"2021-10-08T23:43:56Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:43:58.4583892Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 8198b38a-650f-4d6c-809f-1d1a7de36081 + - af8e5480-1c89-4250-ab36-66401649aa83 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:32:39 GMT + - Thu, 07 Oct 2021 23:44:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,41 +73,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/c1a617ab-ebc7-4bd3-b81f-6a921aa1ffc2 - response: - body: - string: '{"jobId":"c1a617ab-ebc7-4bd3-b81f-6a921aa1ffc2","lastUpdateDateTime":"2021-08-02T21:32:41Z","createdDateTime":"2021-08-02T21:32:33Z","expirationDateTime":"2021-08-03T21:32:33Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:41.1852682Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' - headers: - apim-request-id: - - a650b611-a504-4efb-a450-649f780101c0 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 02 Aug 2021 21:32:43 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '35' + - '87' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml index b07c5adcaf62..d7759c249ebd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml @@ -2,9 +2,11 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": true, "piiCategories": ["USSocialSecurityNumber", - "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - []}, "analysisInput": {"documents": [{"id": "1", "text": "My SSN is 859-98-0987.", + "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}, "taskName": "0"}], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "2", "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", "language": "en"}, {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": @@ -17,23 +19,23 @@ interactions: Connection: - keep-alive Content-Length: - - '702' + - '832' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - d1ef1468-d38e-4136-9d81-788d6f9f005a + - 64f413a4-4665-4446-9459-4a62ad36fa0f date: - - Mon, 02 Aug 2021 21:32:44 GMT + - Thu, 07 Oct 2021 23:44:01 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/e4464f16-0a8a-453c-89bf-2e391e1dc4ff + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e399d85d-e759-425e-8a90-e362bfef6e01 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '119' + - '188' status: code: 202 message: Accepted @@ -55,57 +57,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/e4464f16-0a8a-453c-89bf-2e391e1dc4ff + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e399d85d-e759-425e-8a90-e362bfef6e01 response: body: - string: '{"jobId":"e4464f16-0a8a-453c-89bf-2e391e1dc4ff","lastUpdateDateTime":"2021-08-02T21:32:46Z","createdDateTime":"2021-08-02T21:32:44Z","expirationDateTime":"2021-08-03T21:32:44Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - b25ae19a-2f54-456d-8467-21ccb43ca382 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 02 Aug 2021 21:32:50 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '8' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/e4464f16-0a8a-453c-89bf-2e391e1dc4ff - response: - body: - string: '{"jobId":"e4464f16-0a8a-453c-89bf-2e391e1dc4ff","lastUpdateDateTime":"2021-08-02T21:32:52Z","createdDateTime":"2021-08-02T21:32:44Z","expirationDateTime":"2021-08-03T21:32:44Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:32:52.2346395Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"My + string: '{"jobId":"e399d85d-e759-425e-8a90-e362bfef6e01","lastUpdateDateTime":"2021-10-07T23:44:04Z","createdDateTime":"2021-10-07T23:44:02Z","expirationDateTime":"2021-10-08T23:44:02Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:04.7479419Z","taskName":"0","state":"succeeded","results":{"documents":[{"redactedText":"My SSN is ***********.","id":"1","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"2","entities":[{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: apim-request-id: - - 60bc8d48-2d62-47de-981d-4414a10ee903 + - f256aafa-ac27-4e55-8caf-0428e49563fb content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:32:55 GMT + - Thu, 07 Oct 2021 23:44:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -113,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '46' + - '311' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml index 31ca025c403d..d4f86e283f62 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml @@ -1,10 +1,12 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": - [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": []}, "analysisInput": - {"documents": [{"id": "56", "text": ":)", "language": "en"}]}}' + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": + "en"}]}}' headers: Accept: - application/json, text/json @@ -13,23 +15,23 @@ interactions: Connection: - keep-alive Content-Length: - - '384' + - '514' Content-Type: - application/json User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - 6836e9b3-7530-493b-8627-e2bd1a416951 + - ae80939d-9ac4-4628-8b12-1a401627cefa date: - - Tue, 12 Oct 2021 23:09:46 GMT + - Thu, 21 Oct 2021 22:27:15 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/cee02ffa-4b7a-4fc4-a90c-214d6f5f9ce2 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/924b16fb-99ac-48ca-ac98-addcbd1be21f strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '160' + - '219' status: code: 202 message: Accepted @@ -53,17 +55,17 @@ interactions: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/cee02ffa-4b7a-4fc4-a90c-214d6f5f9ce2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/924b16fb-99ac-48ca-ac98-addcbd1be21f?showStats=True response: body: - string: '{"jobId":"cee02ffa-4b7a-4fc4-a90c-214d6f5f9ce2","lastUpdateDateTime":"2021-10-12T23:09:50Z","createdDateTime":"2021-10-12T23:09:46Z","expirationDateTime":"2021-10-13T23:09:46Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-12T23:09:50.9163782Z","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"924b16fb-99ac-48ca-ac98-addcbd1be21f","lastUpdateDateTime":"2021-10-21T22:27:15Z","createdDateTime":"2021-10-21T22:27:15Z","expirationDateTime":"2021-10-22T22:27:15Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - e6155fd6-1208-4406-bcae-adb2c5e25247 + - 315a3846-71e6-4b6d-9556-e22090af80de content-type: - application/json; charset=utf-8 date: - - Tue, 12 Oct 2021 23:09:51 GMT + - Thu, 21 Oct 2021 22:27:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -71,7 +73,41 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '78' + - '8' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/924b16fb-99ac-48ca-ac98-addcbd1be21f?showStats=True + response: + body: + string: '{"jobId":"924b16fb-99ac-48ca-ac98-addcbd1be21f","lastUpdateDateTime":"2021-10-21T22:27:22Z","createdDateTime":"2021-10-21T22:27:15Z","expirationDateTime":"2021-10-22T22:27:15Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-21T22:27:22.5613392Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - d8015601-abe7-454f-a101-c3738c564a91 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 21 Oct 2021 22:27:25 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '67' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_recognize_custom_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_recognize_custom_entities.yaml new file mode 100644 index 000000000000..2ac660b12d05 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_recognize_custom_entities.yaml @@ -0,0 +1,93 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [{"parameters": + {"project-name": "textanalytics_custom_entities_project_name", "deployment-name": + "textanalytics_custom_entities_project_name"}, "taskName": "0"}], "customSingleClassificationTasks": + [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food + Safety, International Food Information Council (IFIC), Washington, D.C., discussed + the physical activity component.", "language": "en"}, {"id": "3", "text": "I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1196' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: + - 28f60fbf-2652-416e-8794-6b852a231568 + date: + - Thu, 07 Oct 2021 23:44:14 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/27fd50ac-754f-4c31-9f5e-ba252d89f20c + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '763' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/27fd50ac-754f-4c31-9f5e-ba252d89f20c?showStats=True + response: + body: + string: '{"jobId":"27fd50ac-754f-4c31-9f5e-ba252d89f20c","lastUpdateDateTime":"2021-10-07T23:44:18Z","createdDateTime":"2021-10-07T23:44:14Z","expirationDateTime":"2021-10-08T23:44:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:18.3570988Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past + six years","category":"timeRange","offset":156,"length":14,"confidenceScore":0.54}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"artist","offset":0,"length":13,"confidenceScore":0.8},{"text":"Food","category":"service","offset":38,"length":4,"confidenceScore":0.03},{"text":"Safety","category":"geographic_poi","offset":43,"length":6,"confidenceScore":0.06},{"text":"International + Food","category":"geographic_poi","offset":51,"length":18,"confidenceScore":0.07},{"text":"IFIC","category":"geographic_poi","offset":91,"length":4,"confidenceScore":0.05},{"text":"Information + Council","category":"restaurant_name","offset":70,"length":19,"confidenceScore":0.1},{"text":"Washington, + D.C.","category":"state","offset":98,"length":16,"confidenceScore":0.49}],"warnings":[]},{"id":"3","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"facility","offset":28,"length":6,"confidenceScore":0.57},{"text":"restaurant","category":"restaurant_type","offset":35,"length":10,"confidenceScore":0.95},{"text":"China","category":"country","offset":49,"length":5,"confidenceScore":0.48},{"text":"music","category":"music_item","offset":78,"length":5,"confidenceScore":0.63},{"text":"my","category":"playlist_owner","offset":110,"length":2,"confidenceScore":0.84}],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}]}}' + headers: + apim-request-id: + - c13741e8-429e-4a22-822b-9729324ec4a4 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:44:18 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '86' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml index 479d88e641df..3a6038ff393b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml @@ -3,10 +3,11 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - true}}], "extractiveSummarizationTasks": []}, "analysisInput": {"documents": - [{"id": "0", "text": "It has a sleek premium aluminum design that makes it beautiful - to look at.", "language": "en"}, {"id": "1", "text": "The food and service is - not good", "language": "en"}]}}' + true}, "taskName": "0"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "It has a sleek premium + aluminum design that makes it beautiful to look at.", "language": "en"}, {"id": + "1", "text": "The food and service is not good", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -15,23 +16,23 @@ interactions: Connection: - keep-alive Content-Length: - - '514' + - '644' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - 07e774c2-7f90-45bb-98c2-74d4d5d416aa + - 08c0dae7-ae9e-4c42-ae69-c691d28f60bd date: - - Mon, 02 Aug 2021 21:33:07 GMT + - Thu, 07 Oct 2021 23:44:19 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/b2a6c132-9ec6-49d8-bbcb-0dbd66410fb7 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '113' + - '327' status: code: 202 message: Accepted @@ -53,19 +54,87 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/b2a6c132-9ec6-49d8-bbcb-0dbd66410fb7?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True response: body: - string: '{"jobId":"b2a6c132-9ec6-49d8-bbcb-0dbd66410fb7","lastUpdateDateTime":"2021-08-02T21:33:07Z","createdDateTime":"2021-08-02T21:33:07Z","expirationDateTime":"2021-08-03T21:33:07Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:20Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 46d868a0-ffbd-4867-8d6c-a6fb922a3eef + - 76fccd8f-c564-4f0c-876e-706634cba873 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:33:12 GMT + - Thu, 07 Oct 2021 23:44:24 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True + response: + body: + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:20Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 1c547caf-bea0-412f-b727-6087953e9791 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:44:29 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '29' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True + response: + body: + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:20Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 6300e29e-064a-4b8a-9135-097bda662c94 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:44:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -87,21 +156,55 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True + response: + body: + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:20Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 2063a48f-4ac4-4888-a07d-b65aefb5c4f0 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:44:40 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '15' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/b2a6c132-9ec6-49d8-bbcb-0dbd66410fb7?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/ce624af3-418a-4051-8f75-020cc7bd0f6b?showStats=True response: body: - string: '{"jobId":"b2a6c132-9ec6-49d8-bbcb-0dbd66410fb7","lastUpdateDateTime":"2021-08-02T21:33:13Z","createdDateTime":"2021-08-02T21:33:07Z","expirationDateTime":"2021-08-03T21:33:07Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:33:13.2322908Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It + string: '{"jobId":"ce624af3-418a-4051-8f75-020cc7bd0f6b","lastUpdateDateTime":"2021-10-07T23:44:42Z","createdDateTime":"2021-10-07T23:44:20Z","expirationDateTime":"2021-10-08T23:44:20Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:42.3690987Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]},{"id":"1","sentiment":"negative","statistics":{"charactersCount":32,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - d9da7c16-228c-49db-b879-cb653b33b4e1 + - fb9034a6-abcf-49e4-9847-e131c9ffac5b content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:33:17 GMT + - Thu, 07 Oct 2021 23:44:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -109,7 +212,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '59' + - '140' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml index ddcaa7548bc8..ee884449d539 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml @@ -1,18 +1,20 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "56", "text": ":)", "language": "en"}, {"id": "0", "text": - ":(", "language": "en"}, {"id": "19", "text": ":P", "language": "en"}, {"id": - "1", "text": ":D", "language": "en"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": + "en"}, {"id": "0", "text": ":(", "language": "en"}, {"id": "19", "text": ":P", + "language": "en"}, {"id": "1", "text": ":D", "language": "en"}]}}' headers: Accept: - application/json, text/json @@ -21,23 +23,23 @@ interactions: Connection: - keep-alive Content-Length: - - '1035' + - '1250' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: apim-request-id: - - a928a82d-1093-458c-875c-4f8b9a8ea346 + - e58ad77a-99f2-437f-9adf-f21d50c66cce date: - - Mon, 02 Aug 2021 21:33:18 GMT + - Thu, 07 Oct 2021 23:44:46 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/edef5b8a-d216-4ab5-b256-7a260ce75d93 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '313' + - '603' status: code: 202 message: Accepted @@ -59,19 +61,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/edef5b8a-d216-4ab5-b256-7a260ce75d93?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True response: body: - string: '{"jobId":"edef5b8a-d216-4ab5-b256-7a260ce75d93","lastUpdateDateTime":"2021-08-02T21:33:19Z","createdDateTime":"2021-08-02T21:33:18Z","expirationDateTime":"2021-08-03T21:33:18Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:44:46Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: apim-request-id: - - 73c8dfd7-e2d7-4d76-b9e7-151351cddc92 + - a8671373-ce85-4c69-8b91-7d279bf3c5b2 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:33:23 GMT + - Thu, 07 Oct 2021 23:44:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -93,19 +95,121 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True + response: + body: + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:44:56Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":4,"total":6,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:54.8394718Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:56.9054048Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - d04e2883-4e87-48b4-ac7a-3541932bf82c + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:44:57 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '176' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True + response: + body: + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:45:00Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:00.815066Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:54.8394718Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:56.9054048Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - fa124770-a332-40c1-b603-ecc62162c9db + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:45:02 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '296' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True + response: + body: + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:45:07Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:00.815066Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:54.8394718Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:07.4710598Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:56.9054048Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: + - 7f6236b7-4bbf-4501-ae69-26ab0abdc91e + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:45:07 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '310' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/edef5b8a-d216-4ab5-b256-7a260ce75d93?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/b1900ff0-f6f2-47b9-879e-09c76b63e19d?showStats=True response: body: - string: '{"jobId":"edef5b8a-d216-4ab5-b256-7a260ce75d93","lastUpdateDateTime":"2021-08-02T21:33:26Z","createdDateTime":"2021-08-02T21:33:18Z","expirationDateTime":"2021-08-03T21:33:18Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:33:26.3701056Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:33:25.1769704Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:33:26.4006197Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:33:24.8847047Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[{"text":":)","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[{"text":":(","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[{"text":":P","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[{"text":":D","rankScore":1.0,"offset":0,"length":2}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:33:25.0969318Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:33:24.8714913Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"b1900ff0-f6f2-47b9-879e-09c76b63e19d","lastUpdateDateTime":"2021-10-07T23:45:12Z","createdDateTime":"2021-10-07T23:44:46Z","expirationDateTime":"2021-10-08T23:44:46Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:00.815066Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:12.0977615Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:54.8394718Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:07.4710598Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:44:56.9054048Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:10.2728918Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 67c9efa2-adcb-43f3-8ec1-69ad6c3a40cd + - 7b76b088-ed01-448b-bcf5-31af08eb8c5e content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:33:29 GMT + - Thu, 07 Oct 2021 23:45:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -113,7 +217,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '279' + - '522' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_single_category_classify.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_single_category_classify.yaml new file mode 100644 index 000000000000..23aa00d1b814 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_single_category_classify.yaml @@ -0,0 +1,88 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [{"parameters": {"project-name": "single_category_classify_project_name", + "deployment-name": "single_category_classify_project_name"}, "taskName": "0"}], + "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food + Safety, International Food Information Council (IFIC), Washington, D.C., discussed + the physical activity component.", "language": "en"}, {"id": "3", "text": "I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1196' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: + - 0973987b-0b20-4fe8-b95a-d361f0e481f5 + date: + - Thu, 07 Oct 2021 23:45:14 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/55f176a9-e2d9-469a-9629-31609def892c + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '800' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/55f176a9-e2d9-469a-9629-31609def892c?showStats=True + response: + body: + string: '{"jobId":"55f176a9-e2d9-469a-9629-31609def892c","lastUpdateDateTime":"2021-10-07T23:45:15Z","createdDateTime":"2021-10-07T23:45:14Z","expirationDateTime":"2021-10-08T23:45:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:45:15.6282742Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classification":{"category":"RateBook","confidenceScore":0.57},"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classification":{"category":"BookRestaurant","confidenceScore":1.0},"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}]}}' + headers: + apim-request-id: + - cfc6675d-4d34-4f29-a93b-eefe1c74817b + content-type: + - application/json; charset=utf-8 + date: + - Thu, 07 Oct 2021 23:45:19 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '94' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml index 325161c736f6..ed649cedd4b6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml @@ -1,23 +1,25 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "0", "text": "input document", "language": "en"}, {"id": - "1", "text": "input document", "language": "en"}, {"id": "2", "text": "input - document", "language": "en"}, {"id": "3", "text": "input document", "language": - "en"}, {"id": "4", "text": "input document", "language": "en"}, {"id": "5", - "text": "input document", "language": "en"}, {"id": "6", "text": "input document", - "language": "en"}, {"id": "7", "text": "input document", "language": "en"}, - {"id": "8", "text": "input document", "language": "en"}, {"id": "9", "text": - "input document", "language": "en"}, {"id": "10", "text": "input document", + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "input document", "language": + "en"}, {"id": "1", "text": "input document", "language": "en"}, {"id": "2", + "text": "input document", "language": "en"}, {"id": "3", "text": "input document", + "language": "en"}, {"id": "4", "text": "input document", "language": "en"}, + {"id": "5", "text": "input document", "language": "en"}, {"id": "6", "text": + "input document", "language": "en"}, {"id": "7", "text": "input document", "language": + "en"}, {"id": "8", "text": "input document", "language": "en"}, {"id": "9", + "text": "input document", "language": "en"}, {"id": "10", "text": "input document", "language": "en"}, {"id": "11", "text": "input document", "language": "en"}, {"id": "12", "text": "input document", "language": "en"}, {"id": "13", "text": "input document", "language": "en"}, {"id": "14", "text": "input document", @@ -38,24 +40,24 @@ interactions: Connection: - keep-alive Content-Length: - - '2351' + - '2566' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 25 records are permitted."}}}' headers: apim-request-id: - - 218fcde0-d8de-46c1-ad67-89cae1d96ca2 + - 6d3e7500-71f7-401c-a5c1-41f1d2b03a6e content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:33:29 GMT + - Thu, 07 Oct 2021 23:45:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_extract_summary_action.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_extract_summary_action.yaml index b68b15be348e..e7b5d5224b41 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_extract_summary_action.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_extract_summary_action.yaml @@ -4,174 +4,153 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}]}, "analysisInput": {"documents": [{"id": "1", "text": - "The government of British Prime Minster Theresa May has been plunged into turmoil - with the resignation of two senior Cabinet ministers in a deep split over her - Brexit strategy. The Foreign Secretary Boris Johnson, quit on Monday, hours - after the resignation late on Sunday night of the minister in charge of Brexit - negotiations, David Davis. Their decision to leave the government came three - days after May appeared to have agreed a deal with herfractured Cabinet on the - UK''s post Brexit relationship with the EU. That plan is now in tatters and - her political future appears uncertain. May appeared in Parliament on Monday - afternoon to defend her plan, minutes after Downing Street confirmed the departure - of Johnson. May acknowledged the splits in her statement to MPs, saying of the - ministers who quit: We do not agree about the best way of delivering our shared - commitment to honoring the result of the referendum. The Prime Minister''s latest - plitical drama began late on Sunday night when Davis quit, declaring he could - not support May''s Brexit plan. He said it involved too close a relationship - with the EU and gave only an illusion of control being returned to the UK after - it left the EU. It seems to me we''re giving too much away, too easily, and - that''s a dangerous strategy at this time, Davis said in a BBC radio interview - Monday morning. Johnson''s resignation came Monday afternoon local time, just - before the Prime Minister was due to make a scheduled statement in Parliament. - This afternoon, the Prime Minister accepted the resignation of Boris Johnson - as Foreign Secretary, a statement from Downing Street said.", "language": "en"}, - {"id": "2", "text": "Microsoft fue fundado por Bill Gates y Paul Allen", "language": - "es"}]}}' + 3, "sortBy": "Offset"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "The government of British + Prime Minster Theresa May has been plunged into turmoil with the resignation + of two senior Cabinet ministers in a deep split over her Brexit strategy. The + Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation + late on Sunday night of the minister in charge of Brexit negotiations, David + Davis. Their decision to leave the government came three days after May appeared + to have agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship + with the EU. That plan is now in tatters and her political future appears uncertain. + May appeared in Parliament on Monday afternoon to defend her plan, minutes after + Downing Street confirmed the departure of Johnson. May acknowledged the splits + in her statement to MPs, saying of the ministers who quit: We do not agree about + the best way of delivering our shared commitment to honoring the result of the + referendum. The Prime Minister''s latest plitical drama began late on Sunday + night when Davis quit, declaring he could not support May''s Brexit plan. He + said it involved too close a relationship with the EU and gave only an illusion + of control being returned to the UK after it left the EU. It seems to me we''re + giving too much away, too easily, and that''s a dangerous strategy at this time, + Davis said in a BBC radio interview Monday morning. Johnson''s resignation came + Monday afternoon local time, just before the Prime Minister was due to make + a scheduled statement in Parliament. This afternoon, the Prime Minister accepted + the resignation of Boris Johnson as Foreign Secretary, a statement from Downing + Street said.", "language": "en"}, {"id": "2", "text": "Microsoft fue fundado + por Bill Gates y Paul Allen", "language": "es"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '2138' + - '2268' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: 72a47d03-6833-4dd4-aaab-be37d5dd61bc - date: Mon, 02 Aug 2021 21:44:21 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f + apim-request-id: 306a16db-e160-4731-b3c5-9e3feb65ce95 + date: Thu, 07 Oct 2021 23:45:44 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '247' + x-envoy-upstream-service-time: '283' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True response: body: - string: '{"jobId":"e392f783-53c8-4a5a-b952-8a03fa0cb23f","lastUpdateDateTime":"2021-08-02T21:44:21Z","createdDateTime":"2021-08-02T21:44:21Z","expirationDateTime":"2021-08-03T21:44:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"a9563c4c-c626-432e-96c7-9d5b5b54f6ac","lastUpdateDateTime":"2021-10-07T23:45:45Z","createdDateTime":"2021-10-07T23:45:44Z","expirationDateTime":"2021-10-08T23:45:44Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: ea3e84b3-ca07-436b-84ea-7b122d253fd5 + apim-request-id: ae658669-84d1-4403-ba2f-3a5db351e816 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:44:26 GMT + date: Thu, 07 Oct 2021 23:45:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '63' - status: - code: 200 - message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True - response: - body: - string: '{"jobId":"e392f783-53c8-4a5a-b952-8a03fa0cb23f","lastUpdateDateTime":"2021-08-02T21:44:21Z","createdDateTime":"2021-08-02T21:44:21Z","expirationDateTime":"2021-08-03T21:44:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: c9b35294-1127-436a-9b64-fa35fcafabff - content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:44:31 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '62' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True response: body: - string: '{"jobId":"e392f783-53c8-4a5a-b952-8a03fa0cb23f","lastUpdateDateTime":"2021-08-02T21:44:21Z","createdDateTime":"2021-08-02T21:44:21Z","expirationDateTime":"2021-08-03T21:44:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"a9563c4c-c626-432e-96c7-9d5b5b54f6ac","lastUpdateDateTime":"2021-10-07T23:45:45Z","createdDateTime":"2021-10-07T23:45:44Z","expirationDateTime":"2021-10-08T23:45:44Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 0f73ec86-2213-460b-8259-ba0a5b1c28cf + apim-request-id: 1248a855-eb53-4a4c-8c41-15d418b8f148 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:44:37 GMT + date: Thu, 07 Oct 2021 23:45:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True response: body: - string: '{"jobId":"e392f783-53c8-4a5a-b952-8a03fa0cb23f","lastUpdateDateTime":"2021-08-02T21:44:21Z","createdDateTime":"2021-08-02T21:44:21Z","expirationDateTime":"2021-08-03T21:44:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"a9563c4c-c626-432e-96c7-9d5b5b54f6ac","lastUpdateDateTime":"2021-10-07T23:45:45Z","createdDateTime":"2021-10-07T23:45:44Z","expirationDateTime":"2021-10-08T23:45:44Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: ff5cf105-04a4-45ef-a821-00cdc6412045 + apim-request-id: 725588f4-f02a-4224-8c6c-0b9ce64f0732 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:44:42 GMT + date: Thu, 07 Oct 2021 23:46:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True response: body: - string: '{"jobId":"e392f783-53c8-4a5a-b952-8a03fa0cb23f","lastUpdateDateTime":"2021-08-02T21:44:44Z","createdDateTime":"2021-08-02T21:44:21Z","expirationDateTime":"2021-08-03T21:44:21Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:44:44.7234071Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The + string: '{"jobId":"a9563c4c-c626-432e-96c7-9d5b5b54f6ac","lastUpdateDateTime":"2021-10-07T23:46:02Z","createdDateTime":"2021-10-07T23:45:44Z","expirationDateTime":"2021-10-08T23:45:44Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:02.866601Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The government of British Prime Minster Theresa May has been plunged into turmoil with the resignation of two senior Cabinet ministers in a deep split over - her Brexit strategy.","rankScore":1.0,"offset":0,"length":176},{"text":"The + her Brexit strategy.","rankScore":0.57,"offset":0,"length":176},{"text":"The Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation late on Sunday night of the minister in charge of Brexit negotiations, David - Davis.","rankScore":0.9692596246437071,"offset":177,"length":164},{"text":"Their - decision to leave the government came three days after May appeared to have - agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship - with the EU.","rankScore":0.8793036866968857,"offset":342,"length":171}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"sentences":[{"text":"Microsoft + Davis.","rankScore":1.0,"offset":177,"length":164},{"text":"Their decision + to leave the government came three days after May appeared to have agreed + a deal with herfractured Cabinet on the UK''s post Brexit relationship with + the EU.","rankScore":0.47,"offset":342,"length":171}],"warnings":[]},{"id":"2","statistics":{"charactersCount":49,"transactionsCount":1},"sentences":[{"text":"Microsoft fue fundado por Bill Gates y Paul Allen","rankScore":1.0,"offset":0,"length":49}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: - apim-request-id: a71d0f83-2c5c-4c49-a74a-87aa2a06075c + apim-request-id: 9849b019-324e-47a5-8d89-07e2367af2d7 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:44:47 GMT + date: Thu, 07 Oct 2021 23:46:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '83' + x-envoy-upstream-service-time: '92' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/e392f783-53c8-4a5a-b952-8a03fa0cb23f?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a9563c4c-c626-432e-96c7-9d5b5b54f6ac?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml index d990015a90d5..44ed310a6be2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml @@ -2,80 +2,60 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - false}}], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded - by Bill Gates and Paul Allen", "language": "en"}, {"id": "2", "text": "Microsoft + false}, "taskName": "0"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded by + Bill Gates and Paul Allen", "language": "en"}, {"id": "2", "text": "Microsoft fue fundado por Bill Gates y Paul Allen", "language": "es"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '484' + - '614' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: 676b93e0-071f-47c1-b11a-6fbf71d34bb7 - date: Mon, 02 Aug 2021 21:44:47 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/db028196-004c-43a2-bcc5-2726b6ec7346 + apim-request-id: 3ef998f4-e5df-411e-9fdb-f25a751eece4 + date: Thu, 07 Oct 2021 23:46:05 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8f5133fc-0e42-49ff-bedb-775d0138bc7d strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '130' + x-envoy-upstream-service-time: '337' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/db028196-004c-43a2-bcc5-2726b6ec7346?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/8f5133fc-0e42-49ff-bedb-775d0138bc7d?showStats=True response: body: - string: '{"jobId":"db028196-004c-43a2-bcc5-2726b6ec7346","lastUpdateDateTime":"2021-08-02T21:44:48Z","createdDateTime":"2021-08-02T21:44:47Z","expirationDateTime":"2021-08-03T21:44:47Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: add3fd6c-9b91-4b30-b088-75c30ac62125 - content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:44:53 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' - status: - code: 200 - message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/db028196-004c-43a2-bcc5-2726b6ec7346?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/db028196-004c-43a2-bcc5-2726b6ec7346?showStats=True - response: - body: - string: '{"jobId":"db028196-004c-43a2-bcc5-2726b6ec7346","lastUpdateDateTime":"2021-08-02T21:44:53Z","createdDateTime":"2021-08-02T21:44:47Z","expirationDateTime":"2021-08-03T21:44:47Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:44:53.8910887Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill + string: '{"jobId":"8f5133fc-0e42-49ff-bedb-775d0138bc7d","lastUpdateDateTime":"2021-10-07T23:46:07Z","createdDateTime":"2021-10-07T23:46:05Z","expirationDateTime":"2021-10-08T23:46:05Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:07.9109923Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":50,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 1d88f5e6-98cb-4827-b227-2da2be7e490c + apim-request-id: f0d04397-56b6-4169-b5ee-9289d40a421f content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:44:57 GMT + date: Thu, 07 Oct 2021 23:46:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '88' + x-envoy-upstream-service-time: '74' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/db028196-004c-43a2-bcc5-2726b6ec7346?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/8f5133fc-0e42-49ff-bedb-775d0138bc7d?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml index d8b2d5011e27..ee767379e9eb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml @@ -3,106 +3,174 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": []}, "analysisInput": {"documents": - [{"id": "1", "text": "Microsoft was founded by Bill Gates and Paul Allen.", - "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at. - It was too expensive.", "language": "en"}, {"id": "3", "text": "The restaurant - had really good food. I recommend you try it.", "language": "en"}]}}' + false}, "taskName": "0"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded + by Bill Gates and Paul Allen.", "language": "en"}, {"id": "2", "text": "I did + not like the hotel we stayed at. It was too expensive.", "language": "en"}, + {"id": "3", "text": "The restaurant had really good food. I recommend you try + it.", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '623' + - '753' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: 056ed955-1a31-4308-bad9-540b8ade254b - date: Mon, 02 Aug 2021 21:44:58 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/a4e57223-6eea-451a-afa2-5248aad8c6ee + apim-request-id: 1ef9f8a9-71bd-4dd8-896e-c997e283d906 + date: Thu, 07 Oct 2021 23:46:10 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '118' + x-envoy-upstream-service-time: '319' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/a4e57223-6eea-451a-afa2-5248aad8c6ee?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True response: body: - string: '{"jobId":"a4e57223-6eea-451a-afa2-5248aad8c6ee","lastUpdateDateTime":"2021-08-02T21:44:59Z","createdDateTime":"2021-08-02T21:44:58Z","expirationDateTime":"2021-08-03T21:44:58Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 6a115012-bf69-4918-afe5-aa686435c9d9 + apim-request-id: 506a36c8-15aa-4aca-a579-b441db7947f3 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:03 GMT + date: Thu, 07 Oct 2021 23:46:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/a4e57223-6eea-451a-afa2-5248aad8c6ee?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/a4e57223-6eea-451a-afa2-5248aad8c6ee?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True response: body: - string: '{"jobId":"a4e57223-6eea-451a-afa2-5248aad8c6ee","lastUpdateDateTime":"2021-08-02T21:44:59Z","createdDateTime":"2021-08-02T21:44:58Z","expirationDateTime":"2021-08-03T21:44:58Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 3c9d5e33-5923-4c43-8806-badeadca5483 + apim-request-id: 5b15a57e-0dfd-4699-8913-3d9eb56eabc2 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:08 GMT + date: Thu, 07 Oct 2021 23:46:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/a4e57223-6eea-451a-afa2-5248aad8c6ee?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/a4e57223-6eea-451a-afa2-5248aad8c6ee?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True response: body: - string: '{"jobId":"a4e57223-6eea-451a-afa2-5248aad8c6ee","lastUpdateDateTime":"2021-08-02T21:45:12Z","createdDateTime":"2021-08-02T21:44:58Z","expirationDateTime":"2021-08-03T21:44:58Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:12.8030026Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 0a52ede6-6c8e-48bf-b5a5-47dadfed104d + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:46:26 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '11' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True + response: + body: + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 0aca3639-f84a-4912-abe1-7e26bf7980ee + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:46:31 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True + response: + body: + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:11Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 285be7a3-03d4-4d87-89a4-3bc221792d81 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:46:36 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '28' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True + response: + body: + string: '{"jobId":"9cefa9e3-f4eb-4b61-9191-0065d883796d","lastUpdateDateTime":"2021-10-07T23:46:38Z","createdDateTime":"2021-10-07T23:46:11Z","expirationDateTime":"2021-10-08T23:46:11Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:38.358597Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft was founded by Bill Gates and Paul Allen."}],"warnings":[]},{"id":"2","sentiment":"negative","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.22,"negative":0.77},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."},{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":39,"length":21,"text":"It was too expensive."}],"warnings":[]},{"id":"3","sentiment":"positive","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."},{"sentiment":"positive","confidenceScores":{"positive":0.96,"neutral":0.03,"negative":0.01},"offset":37,"length":23,"text":"I recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 36f875ec-0833-4a58-83ae-38fef5153bbe + apim-request-id: bee3825d-da55-456f-9225-df761def6f7c content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:13 GMT + date: Thu, 07 Oct 2021 23:46:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '301' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/a4e57223-6eea-451a-afa2-5248aad8c6ee?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9cefa9e3-f4eb-4b61-9191-0065d883796d?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml index fb6c7506519c..6beace08220c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml @@ -1,85 +1,65 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": - [], "extractiveSummarizationTasks": []}, "analysisInput": {"documents": [{"id": - "0", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "1", "text": - "Your ABA number - 111000025 - is the first 9 digits in the lower left hand - corner of your personal check.", "language": "en"}, {"id": "2", "text": "Is - 998.214.865-68 your Brazilian CPF number?", "language": "en"}]}}' + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "0"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "My SSN is 859-98-0987.", + "language": "en"}, {"id": "1", "text": "Your ABA number - 111000025 - is the + first 9 digits in the lower left hand corner of your personal check.", "language": + "en"}, {"id": "2", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": + "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '637' + - '767' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: ec2e4dc2-e192-40e9-9e9d-0c4b48dc4ea5 - date: Mon, 02 Aug 2021 21:45:14 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/dac98643-9da2-427e-9ec2-5cf5d78f5482 + apim-request-id: bd7eb535-7a43-4457-ba68-4b2414ee7fe9 + date: Thu, 07 Oct 2021 23:46:42 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7baf1033-498c-4e14-993e-4dd883b08473 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '123' + x-envoy-upstream-service-time: '257' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/dac98643-9da2-427e-9ec2-5cf5d78f5482?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/7baf1033-498c-4e14-993e-4dd883b08473?showStats=True response: body: - string: '{"jobId":"dac98643-9da2-427e-9ec2-5cf5d78f5482","lastUpdateDateTime":"2021-08-02T21:45:14Z","createdDateTime":"2021-08-02T21:45:14Z","expirationDateTime":"2021-08-03T21:45:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: c444482f-e325-46af-8a22-3ee76189990a - content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:20 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' - status: - code: 200 - message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/dac98643-9da2-427e-9ec2-5cf5d78f5482?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/dac98643-9da2-427e-9ec2-5cf5d78f5482?showStats=True - response: - body: - string: '{"jobId":"dac98643-9da2-427e-9ec2-5cf5d78f5482","lastUpdateDateTime":"2021-08-02T21:45:22Z","createdDateTime":"2021-08-02T21:45:14Z","expirationDateTime":"2021-08-03T21:45:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:22.0953999Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My + string: '{"jobId":"7baf1033-498c-4e14-993e-4dd883b08473","lastUpdateDateTime":"2021-10-07T23:46:44Z","createdDateTime":"2021-10-07T23:46:42Z","expirationDateTime":"2021-10-08T23:46:42Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:44.6202158Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My SSN is ***********.","id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: - apim-request-id: a6fffa3a-655d-475e-91dc-8b30159cb90f + apim-request-id: 457f5b33-2b11-4690-b1aa-ede212585e7b content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:24 GMT + date: Thu, 07 Oct 2021 23:46:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' + x-envoy-upstream-service-time: '144' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/dac98643-9da2-427e-9ec2-5cf5d78f5482?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/7baf1033-498c-4e14-993e-4dd883b08473?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml index 9747e0c71a3d..3eebb82316c2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml @@ -1,72 +1,51 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": - [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": []}, "analysisInput": - {"documents": [{"id": "1", "text": "Microsoft was founded by Bill Gates and - Paul Allen on April 4, 1975", "language": "en"}, {"id": "2", "text": "Microsoft - fue fundado por Bill Gates y Paul Allen el 4 de abril de 1975.", "language": - "es"}, {"id": "3", "text": "Microsoft wurde am 4. April 1975 von Bill Gates - und Paul Allen gegr\u00fcndet.", "language": "de"}]}}' + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "Microsoft was founded + by Bill Gates and Paul Allen on April 4, 1975", "language": "en"}, {"id": "2", + "text": "Microsoft fue fundado por Bill Gates y Paul Allen el 4 de abril de + 1975.", "language": "es"}, {"id": "3", "text": "Microsoft wurde am 4. April + 1975 von Bill Gates und Paul Allen gegr\u00fcndet.", "language": "de"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '684' + - '814' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: 7da3241b-1afc-444e-9d72-ad832624e011 - date: Mon, 02 Aug 2021 21:45:25 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/f547ce83-aac8-434c-a2b6-eff76d3102c6 + apim-request-id: ff57dc86-001f-43ef-a0e1-9168803e13a8 + date: Thu, 07 Oct 2021 23:46:47 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e117462-7cbe-4f33-ac1d-bd58c3ecf303 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '117' + x-envoy-upstream-service-time: '265' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/f547ce83-aac8-434c-a2b6-eff76d3102c6?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/9e117462-7cbe-4f33-ac1d-bd58c3ecf303?showStats=True response: body: - string: '{"jobId":"f547ce83-aac8-434c-a2b6-eff76d3102c6","lastUpdateDateTime":"2021-08-02T21:45:26Z","createdDateTime":"2021-08-02T21:45:25Z","expirationDateTime":"2021-08-03T21:45:25Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 6b6a751f-85ed-4247-b245-64dba4e7f38d - content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:30 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' - status: - code: 200 - message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/f547ce83-aac8-434c-a2b6-eff76d3102c6?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/f547ce83-aac8-434c-a2b6-eff76d3102c6?showStats=True - response: - body: - string: '{"jobId":"f547ce83-aac8-434c-a2b6-eff76d3102c6","lastUpdateDateTime":"2021-08-02T21:45:32Z","createdDateTime":"2021-08-02T21:45:25Z","expirationDateTime":"2021-08-03T21:45:25Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:32.9084611Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill + string: '{"jobId":"9e117462-7cbe-4f33-ac1d-bd58c3ecf303","lastUpdateDateTime":"2021-10-07T23:46:50Z","createdDateTime":"2021-10-07T23:46:48Z","expirationDateTime":"2021-10-08T23:46:48Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:50.5522957Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"2","statistics":{"charactersCount":72,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -77,15 +56,15 @@ interactions: Gates","category":"Person","offset":37,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":52,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 1f5d2969-ba50-4165-aa3c-7fe762c11d44 + apim-request-id: c5989d14-a32b-478b-800c-c2d1cef3b689 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:35 GMT + date: Thu, 07 Oct 2021 23:46:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '129' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/f547ce83-aac8-434c-a2b6-eff76d3102c6?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/9e117462-7cbe-4f33-ac1d-bd58c3ecf303?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_analyze_continuation_token.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_analyze_continuation_token.yaml new file mode 100644 index 000000000000..7eb39c3cf973 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_analyze_continuation_token.yaml @@ -0,0 +1,293 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "1"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "3"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": + false}, "taskName": "2"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report by + the Government Accountability Office (GAO) found that the dramatic increase + in oil and natural gas development on federal lands over the past six years + has stretched the staff of the BLM to a point that it has been unable to meet + its environmental protection responsibilities.", "language": "en"}, {"id": "2", + "text": "David Schmidt, senior vice president--Food Safety, International Food + Information Council (IFIC), Washington, D.C., discussed the physical activity + component.", "language": "en"}, {"id": "3", "text": "", "language": "en"}, {"id": + "4", "text": "I need a reservation for an indoor restaurant in China. Please + don''t stop the music. Play music and add it to my playlist", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '1528' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: 6ec8348e-ca21-4d16-b84a-b1f9ec14830e + date: Mon, 25 Oct 2021 19:25:17 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833 + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '517' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True + response: + body: + string: '{"jobId":"006e06bb-8866-4b6f-852d-ed9d75f13833","lastUpdateDateTime":"2021-10-25T19:25:18Z","createdDateTime":"2021-10-25T19:25:18Z","expirationDateTime":"2021-10-26T19:25:18Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":4,"total":4}}' + headers: + apim-request-id: cd51fb39-8760-4d84-84f9-73923fcc6a9d + content-type: application/json; charset=utf-8 + date: Mon, 25 Oct 2021 19:25:23 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '7' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True + response: + body: + string: '{"jobId":"006e06bb-8866-4b6f-852d-ed9d75f13833","lastUpdateDateTime":"2021-10-25T19:25:28Z","createdDateTime":"2021-10-25T19:25:18Z","expirationDateTime":"2021-10-26T19:25:18Z","status":"running","errors":[],"tasks":{"completed":2,"failed":0,"inProgress":2,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:28.1220369Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:26.6161059Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","keyPhrases":["Government + Accountability Office","natural gas development","past six years","environmental + protection responsibilities","recent report","dramatic increase","federal + lands","GAO","oil","staff","BLM","point"],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["International + Food Information Council","senior vice president","physical activity component","Food + Safety","David Schmidt","D.C.","IFIC","Washington"],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["indoor + restaurant","reservation","China","music","playlist"],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: e5209e22-5751-456f-84a4-9cd1ccb69958 + content-type: application/json; charset=utf-8 + date: Mon, 25 Oct 2021 19:25:28 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '188' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True + response: + body: + string: '{"jobId":"006e06bb-8866-4b6f-852d-ed9d75f13833","lastUpdateDateTime":"2021-10-25T19:25:31Z","createdDateTime":"2021-10-25T19:25:18Z","expirationDateTime":"2021-10-26T19:25:18Z","status":"running","errors":[],"tasks":{"completed":3,"failed":0,"inProgress":1,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:28.1220369Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:31.9322667Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:26.6161059Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","keyPhrases":["Government + Accountability Office","natural gas development","past six years","environmental + protection responsibilities","recent report","dramatic increase","federal + lands","GAO","oil","staff","BLM","point"],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["International + Food Information Council","senior vice president","physical activity component","Food + Safety","David Schmidt","D.C.","IFIC","Washington"],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["indoor + restaurant","reservation","China","music","playlist"],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 3cc4a635-3ddc-46ad-b129-3ff64c65a1d9 + content-type: application/json; charset=utf-8 + date: Mon, 25 Oct 2021 19:25:34 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '713' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True + response: + body: + string: '{"jobId":"006e06bb-8866-4b6f-852d-ed9d75f13833","lastUpdateDateTime":"2021-10-25T19:25:36Z","createdDateTime":"2021-10-25T19:25:18Z","expirationDateTime":"2021-10-26T19:25:18Z","status":"succeeded","errors":[],"tasks":{"completed":4,"failed":0,"inProgress":0,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:28.1220369Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:31.9322667Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:26.6161059Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","keyPhrases":["Government + Accountability Office","natural gas development","past six years","environmental + protection responsibilities","recent report","dramatic increase","federal + lands","GAO","oil","staff","BLM","point"],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["International + Food Information Council","senior vice president","physical activity component","Food + Safety","David Schmidt","D.C.","IFIC","Washington"],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["indoor + restaurant","reservation","China","music","playlist"],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:36.1869152Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":295,"transactionsCount":1},"confidenceScores":{"positive":0.23,"neutral":0.61,"negative":0.16},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.23,"neutral":0.61,"negative":0.16},"offset":0,"length":295,"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities."}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":158,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":1.0,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.0,"neutral":1.0,"negative":0.0},"offset":0,"length":158,"text":"David + Schmidt, senior vice president--Food Safety, International Food Information + Council (IFIC), Washington, D.C., discussed the physical activity component."}],"warnings":[]},{"id":"4","sentiment":"positive","statistics":{"charactersCount":121,"transactionsCount":1},"confidenceScores":{"positive":0.57,"neutral":0.41,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"offset":0,"length":55,"text":"I + need a reservation for an indoor restaurant in China."},{"sentiment":"neutral","confidenceScores":{"positive":0.12,"neutral":0.78,"negative":0.1},"offset":56,"length":28,"text":"Please + don''t stop the music."},{"sentiment":"positive","confidenceScores":{"positive":0.57,"neutral":0.41,"negative":0.02},"offset":85,"length":36,"text":"Play + music and add it to my playlist"}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: de026245-1397-48a1-83ab-5eed81a5f74f + content-type: application/json; charset=utf-8 + date: Mon, 25 Oct 2021 19:25:42 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '2893' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True + response: + body: + string: '{"jobId":"006e06bb-8866-4b6f-852d-ed9d75f13833","lastUpdateDateTime":"2021-10-25T19:25:36Z","createdDateTime":"2021-10-25T19:25:18Z","expirationDateTime":"2021-10-26T19:25:18Z","status":"succeeded","errors":[],"tasks":{"completed":4,"failed":0,"inProgress":0,"total":4,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:28.1220369Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.99},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.94},{"text":"oil","category":"Product","offset":98,"length":3,"confidenceScore":0.67},{"text":"natural","category":"Product","offset":106,"length":7,"confidenceScore":0.68},{"text":"gas","category":"Skill","offset":114,"length":3,"confidenceScore":0.57},{"text":"development","category":"Skill","offset":118,"length":11,"confidenceScore":0.48},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.96},{"text":"environmental + protection","category":"Skill","offset":253,"length":24,"confidenceScore":0.79}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.86},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.95},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.82},{"text":"Washington, + D.C.","category":"Location","subcategory":"GPE","offset":98,"length":16,"confidenceScore":0.89}],"warnings":[]},{"id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"Location","subcategory":"Structural","offset":28,"length":6,"confidenceScore":0.5},{"text":"restaurant","category":"Location","subcategory":"Structural","offset":35,"length":10,"confidenceScore":0.5},{"text":"China","category":"Location","subcategory":"GPE","offset":49,"length":5,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:31.9322667Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.95},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.9},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.87}],"warnings":[]},{"redactedText":"*************, + *********************--Food Safety, ************************************** + (****), Washington, D.C., discussed the physical activity component.","id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"Person","offset":0,"length":13,"confidenceScore":1.0},{"text":"senior + vice president","category":"PersonType","offset":15,"length":21,"confidenceScore":0.71},{"text":"International + Food Information Council","category":"Organization","offset":51,"length":38,"confidenceScore":0.96},{"text":"IFIC","category":"Organization","offset":91,"length":4,"confidenceScore":0.92}],"warnings":[]},{"redactedText":"I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist","id":"4","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:26.6161059Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","keyPhrases":["Government + Accountability Office","natural gas development","past six years","environmental + protection responsibilities","recent report","dramatic increase","federal + lands","GAO","oil","staff","BLM","point"],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["International + Food Information Council","senior vice president","physical activity component","Food + Safety","David Schmidt","D.C.","IFIC","Washington"],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["indoor + restaurant","reservation","China","music","playlist"],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-25T19:25:36.1869152Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":295,"transactionsCount":1},"confidenceScores":{"positive":0.23,"neutral":0.61,"negative":0.16},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.23,"neutral":0.61,"negative":0.16},"offset":0,"length":295,"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities."}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":158,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":1.0,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.0,"neutral":1.0,"negative":0.0},"offset":0,"length":158,"text":"David + Schmidt, senior vice president--Food Safety, International Food Information + Council (IFIC), Washington, D.C., discussed the physical activity component."}],"warnings":[]},{"id":"4","sentiment":"positive","statistics":{"charactersCount":121,"transactionsCount":1},"confidenceScores":{"positive":0.57,"neutral":0.41,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"offset":0,"length":55,"text":"I + need a reservation for an indoor restaurant in China."},{"sentiment":"neutral","confidenceScores":{"positive":0.12,"neutral":0.78,"negative":0.1},"offset":56,"length":28,"text":"Please + don''t stop the music."},{"sentiment":"positive","confidenceScores":{"positive":0.57,"neutral":0.41,"negative":0.02},"offset":85,"length":36,"text":"Play + music and add it to my playlist"}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: 98e476b5-9bdc-491a-b4d5-7f5e3ff5bdc9 + content-type: application/json; charset=utf-8 + date: Mon, 25 Oct 2021 19:25:47 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '445' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/006e06bb-8866-4b6f-852d-ed9d75f13833?showStats=True +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml index ac487b823ad1..2e5b7a08d757 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml @@ -1,40 +1,42 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "0", "text": "This is written in English.", "language": - "en"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "This is written in + English.", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '923' + - '1138' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: a0cb994b-10b5-4f44-a0cf-19e425d5e36a + apim-request-id: 49798a43-11bd-4847-a789-4486dd4cd4bd content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:45:36 GMT + date: Thu, 07 Oct 2021 23:46:53 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml index 891d3844d334..c00987601e23 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml @@ -1,42 +1,45 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": true, "stringIndexType": - "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}]}, "analysisInput": {"documents": [{"id": "1", "text": - "I did not like the hotel we stayed at.", "language": "english"}]}}' + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": + [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the + hotel we stayed at.", "language": "english"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '921' + - '1136' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid parameter in request","innererror":{"code":"InvalidParameterValue","message":"Job task parameter value bad is not supported for model-version parameter for job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: - apim-request-id: aa60189c-60fa-46fb-94c9-d7c564fc0ebb + apim-request-id: 91f160a3-118d-42e7-a3d9-0c2749ebc5a7 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:35 GMT + date: Thu, 07 Oct 2021 23:46:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '6' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml index 20646e400448..79bbc641e66c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml @@ -1,43 +1,45 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": + false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "bad", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "1", "text": "I did not like the hotel we stayed at.", - "language": "english"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like the + hotel we stayed at.", "language": "english"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '924' + - '1139' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid parameter in request","innererror":{"code":"InvalidParameterValue","message":"Job task parameter value bad is not supported for model-version parameter for job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: - apim-request-id: 7531e4e0-eac1-4212-bb45-e27b4a2d2b5e + apim-request-id: cba552dc-3c2e-4306-ac2e-4333329f0051 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:36 GMT + date: Thu, 07 Oct 2021 23:46:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' + x-envoy-upstream-service-time: '7' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml index b96b130f1733..b55398655a06 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml @@ -2,33 +2,35 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - false}}], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - []}, "analysisInput": {"documents": [{"id": "0", "text": "", "language": "en"}]}}' + false}, "taskName": "0"}], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "0", "text": "", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '342' + - '472' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Document text is empty."}}}' headers: - apim-request-id: 1336207a-ba21-4c23-b724-30c7aa24b899 + apim-request-id: 144c4c76-208e-4dfd-aafc-5d29d4a351fa content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:37 GMT + date: Thu, 07 Oct 2021 23:46:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '12' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_custom_partial_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_custom_partial_error.yaml new file mode 100644 index 000000000000..617e9c4b6152 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_custom_partial_error.yaml @@ -0,0 +1,73 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [{"parameters": + {"project-name": "textanalytics_custom_entities_project_name", "deployment-name": + "textanalytics_custom_entities_project_name"}, "taskName": "2"}], "customSingleClassificationTasks": + [{"parameters": {"project-name": "single_category_classify_project_name", "deployment-name": + "single_category_classify_project_name"}, "taskName": "0"}], "customMultiClassificationTasks": + [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", + "deployment-name": "textanalytics_multi_category_classify_project_name"}, "taskName": + "1"}]}, "analysisInput": {"documents": [{"id": "1", "text": "A recent report + by the Government Accountability Office (GAO) found that the dramatic increase + in oil and natural gas development on federal lands over the past six years + has stretched the staff of the BLM to a point that it has been unable to meet + its environmental protection responsibilities.", "language": "en"}, {"id": "2", + "text": "", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '1170' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: b23a9a32-1d32-4bf3-89fe-def1beb08e9c + date: Thu, 07 Oct 2021 23:46:55 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/253c147f-8adb-43ed-bc24-2ca53575d692 + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '999' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/253c147f-8adb-43ed-bc24-2ca53575d692?showStats=True + response: + body: + string: '{"jobId":"253c147f-8adb-43ed-bc24-2ca53575d692","lastUpdateDateTime":"2021-10-07T23:46:59Z","createdDateTime":"2021-10-07T23:46:55Z","expirationDateTime":"2021-10-08T23:46:55Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:56.7982326Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past + six years","category":"timeRange","offset":156,"length":14,"confidenceScore":0.54}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:59.9865888Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:46:59.8622022Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + headers: + apim-request-id: f0010dae-044e-4ee9-8330-de8353479dbb + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:47:01 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '268' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/253c147f-8adb-43ed-bc24-2ca53575d692?showStats=True +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml index 482d933d1b8c..7049fa231fdc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml @@ -1,114 +1,99 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": + "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + true}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": true, "stringIndexType": - "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true}}], "entityLinkingTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": true, "opinionMining": - false}}], "extractiveSummarizationTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}]}, "analysisInput": {"documents": [{"id": "0", "text": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [{"parameters": {"project-name": "textanalytics_custom_entities_project_name", + "deployment-name": "textanalytics_custom_entities_project_name", "loggingOptOut": + true}, "taskName": "8"}], "customSingleClassificationTasks": [{"parameters": + {"project-name": "single_category_classify_project_name", "deployment-name": + "single_category_classify_project_name", "loggingOptOut": true}, "taskName": + "6"}], "customMultiClassificationTasks": [{"parameters": {"project-name": "textanalytics_multi_category_classify_project_name", + "deployment-name": "textanalytics_multi_category_classify_project_name", "loggingOptOut": + true}, "taskName": "7"}]}, "analysisInput": {"documents": [{"id": "0", "text": "Test for logging disable", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '915' + - '1643' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: 3fb79315-7a67-4783-b2b7-6d9213576ddb - date: Mon, 02 Aug 2021 21:45:38 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/43aedde3-0c7d-4794-a401-6cf5bedae3d8 + apim-request-id: 297233d4-d297-4547-b66f-3d9bd6633c5e + date: Thu, 07 Oct 2021 23:47:02 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '259' + x-envoy-upstream-service-time: '1497' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/43aedde3-0c7d-4794-a401-6cf5bedae3d8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a response: body: - string: '{"jobId":"43aedde3-0c7d-4794-a401-6cf5bedae3d8","lastUpdateDateTime":"2021-08-02T21:45:39Z","createdDateTime":"2021-08-02T21:45:38Z","expirationDateTime":"2021-08-03T21:45:38Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{ "error": { "code": "Timeout", "message": "The operation was timeout." + } }' headers: - apim-request-id: 492d4486-76b5-4ac0-a87c-6161ae061408 - content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:42 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' - status: - code: 200 - message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/43aedde3-0c7d-4794-a401-6cf5bedae3d8 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/43aedde3-0c7d-4794-a401-6cf5bedae3d8 - response: - body: - string: '{"jobId":"43aedde3-0c7d-4794-a401-6cf5bedae3d8","lastUpdateDateTime":"2021-08-02T21:45:45Z","createdDateTime":"2021-08-02T21:45:38Z","expirationDateTime":"2021-08-03T21:45:38Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:45.105061Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:44.7288427Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test - (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:45.1349964Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:44.6626774Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' - headers: - apim-request-id: 598baa08-e0e0-4613-a930-9a056e59f8de - content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:48 GMT + apim-request-id: ea311519-5341-464c-a2ef-4acdd7ea6bd6 + content-length: '75' + content-type: application/json + date: Thu, 07 Oct 2021 23:49:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '115' status: - code: 200 - message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/43aedde3-0c7d-4794-a401-6cf5bedae3d8 + code: 408 + message: Timeout + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/43aedde3-0c7d-4794-a401-6cf5bedae3d8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a response: body: - string: '{"jobId":"43aedde3-0c7d-4794-a401-6cf5bedae3d8","lastUpdateDateTime":"2021-08-02T21:45:51Z","createdDateTime":"2021-08-02T21:45:38Z","expirationDateTime":"2021-08-03T21:45:38Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:45.105061Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:44.7288427Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test + string: '{"jobId":"40f91a74-081e-4707-b099-b8ec5f9e3d9a","lastUpdateDateTime":"2021-10-07T23:47:40Z","createdDateTime":"2021-10-07T23:47:02Z","expirationDateTime":"2021-10-08T23:47:02Z","status":"partiallyCompleted","errors":[{"code":"InternalServerError","message":"1 + out of 9 job tasks failed. Failed job tasks : v3.2-preview.2/custom/classification/singlelabel."}],"displayName":"NA","tasks":{"completed":8,"failed":1,"inProgress":0,"total":9,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:16.4105713Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:10.2024096Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:45.1349964Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:51.7536788Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test - for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:44.6626774Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:45:50.5189175Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test - for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:10.4578134Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:15.2855057Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"0","sentences":[{"text":"Test + for logging disable","rankScore":1.0,"offset":0,"length":24}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:16.4314862Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:40.6325455Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test + for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}],"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:06.2516036Z","taskName":"8","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}],"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:09.1230326Z","taskName":"6","state":"failed"}],"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:47:03.5372914Z","taskName":"7","state":"succeeded","results":{"documents":[{"id":"0","classifications":[],"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' headers: - apim-request-id: f3c6b772-94e5-4be7-9e62-738691a0f407 + apim-request-id: 913b74dc-9e0b-40e9-ab30-75516d83c63d content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:45:54 GMT + date: Thu, 07 Oct 2021 23:49:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '173' + x-envoy-upstream-service-time: '621' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/43aedde3-0c7d-4794-a401-6cf5bedae3d8 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/40f91a74-081e-4707-b099-b8ec5f9e3d9a version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml index 951467425de0..49ef7e30d18e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml @@ -1,40 +1,42 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "0", "text": "This is written in English.", "language": - "en"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "This is written in + English.", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '923' + - '1138' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 1dc75455-c722-4377-9041-42323a9b5a31 + apim-request-id: f8fb617e-d0ad-4f11-82ea-7041c32ef04f content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:45:54 GMT + date: Thu, 07 Oct 2021 23:49:08 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_action_with_options.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_action_with_options.yaml index c790b6d35ae1..6e0e463b8ca6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_action_with_options.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_action_with_options.yaml @@ -4,130 +4,132 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 5, "sortBy": "Rank"}}]}, "analysisInput": {"documents": [{"id": "0", "text": - "The government of British Prime Minster Theresa May has been plunged into turmoil - with the resignation of two senior Cabinet ministers in a deep split over her - Brexit strategy. The Foreign Secretary Boris Johnson, quit on Monday, hours - after the resignation late on Sunday night of the minister in charge of Brexit - negotiations, David Davis. Their decision to leave the government came three - days after May appeared to have agreed a deal with herfractured Cabinet on the - UK''s post Brexit relationship with the EU. That plan is now in tatters and - her political future appears uncertain. May appeared in Parliament on Monday - afternoon to defend her plan, minutes after Downing Street confirmed the departure - of Johnson. May acknowledged the splits in her statement to MPs, saying of the - ministers who quit: We do not agree about the best way of delivering our shared - commitment to honoring the result of the referendum. The Prime Minister''s latest - plitical drama began late on Sunday night when Davis quit, declaring he could - not support May''s Brexit plan. He said it involved too close a relationship - with the EU and gave only an illusion of control being returned to the UK after - it left the EU. It seems to me we''re giving too much away, too easily, and - that''s a dangerous strategy at this time, Davis said in a BBC radio interview - Monday morning. Johnson''s resignation came Monday afternoon local time, just - before the Prime Minister was due to make a scheduled statement in Parliament. - This afternoon, the Prime Minister accepted the resignation of Boris Johnson - as Foreign Secretary, a statement from Downing Street said.", "language": "en"}]}}' + 5, "sortBy": "Rank"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "0", "text": "The government of British + Prime Minster Theresa May has been plunged into turmoil with the resignation + of two senior Cabinet ministers in a deep split over her Brexit strategy. The + Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation + late on Sunday night of the minister in charge of Brexit negotiations, David + Davis. Their decision to leave the government came three days after May appeared + to have agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship + with the EU. That plan is now in tatters and her political future appears uncertain. + May appeared in Parliament on Monday afternoon to defend her plan, minutes after + Downing Street confirmed the departure of Johnson. May acknowledged the splits + in her statement to MPs, saying of the ministers who quit: We do not agree about + the best way of delivering our shared commitment to honoring the result of the + referendum. The Prime Minister''s latest plitical drama began late on Sunday + night when Davis quit, declaring he could not support May''s Brexit plan. He + said it involved too close a relationship with the EU and gave only an illusion + of control being returned to the UK after it left the EU. It seems to me we''re + giving too much away, too easily, and that''s a dangerous strategy at this time, + Davis said in a BBC radio interview Monday morning. Johnson''s resignation came + Monday afternoon local time, just before the Prime Minister was due to make + a scheduled statement in Parliament. This afternoon, the Prime Minister accepted + the resignation of Boris Johnson as Foreign Secretary, a statement from Downing + Street said.", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '2044' + - '2174' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: 01e208c6-d64d-4f57-92e6-79cbbbedf1a9 - date: Mon, 02 Aug 2021 21:45:54 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/c0301dcb-8661-4ffe-ae7a-a73b3a2de579 + apim-request-id: 72b20d62-cba5-4555-8f51-e742ca326cdd + date: Thu, 07 Oct 2021 23:49:09 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '86' + x-envoy-upstream-service-time: '288' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/c0301dcb-8661-4ffe-ae7a-a73b3a2de579?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True response: body: - string: '{"jobId":"c0301dcb-8661-4ffe-ae7a-a73b3a2de579","lastUpdateDateTime":"2021-08-02T21:45:55Z","createdDateTime":"2021-08-02T21:45:55Z","expirationDateTime":"2021-08-03T21:45:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc","lastUpdateDateTime":"2021-10-07T23:49:09Z","createdDateTime":"2021-10-07T23:49:09Z","expirationDateTime":"2021-10-08T23:49:09Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: e76dd4cd-9f9f-4372-92ce-572c642c2da1 + apim-request-id: a27f862f-af80-4b81-8b2f-d2bb750f9178 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:00 GMT + date: Thu, 07 Oct 2021 23:49:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/c0301dcb-8661-4ffe-ae7a-a73b3a2de579?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/c0301dcb-8661-4ffe-ae7a-a73b3a2de579?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True response: body: - string: '{"jobId":"c0301dcb-8661-4ffe-ae7a-a73b3a2de579","lastUpdateDateTime":"2021-08-02T21:45:55Z","createdDateTime":"2021-08-02T21:45:55Z","expirationDateTime":"2021-08-03T21:45:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{ "error": { "code": "Timeout", "message": "The operation was timeout." + } }' headers: - apim-request-id: f1b61876-41c4-4037-aa07-8e31c53c770a - content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:05 GMT + apim-request-id: da577ae4-5df1-422a-a9ac-08f1f410ce97 + content-length: '75' + content-type: application/json + date: Thu, 07 Oct 2021 23:51:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' status: - code: 200 - message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/c0301dcb-8661-4ffe-ae7a-a73b3a2de579?showStats=True + code: 408 + message: Timeout + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/c0301dcb-8661-4ffe-ae7a-a73b3a2de579?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True response: body: - string: '{"jobId":"c0301dcb-8661-4ffe-ae7a-a73b3a2de579","lastUpdateDateTime":"2021-08-02T21:46:07Z","createdDateTime":"2021-08-02T21:45:55Z","expirationDateTime":"2021-08-03T21:45:55Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:07.7279994Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The - government of British Prime Minster Theresa May has been plunged into turmoil - with the resignation of two senior Cabinet ministers in a deep split over - her Brexit strategy.","rankScore":1.0,"offset":0,"length":176},{"text":"The + string: '{"jobId":"fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc","lastUpdateDateTime":"2021-10-07T23:49:26Z","createdDateTime":"2021-10-07T23:49:09Z","expirationDateTime":"2021-10-08T23:49:09Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:49:26.5678948Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","statistics":{"charactersCount":1625,"transactionsCount":2},"sentences":[{"text":"The Foreign Secretary Boris Johnson, quit on Monday, hours after the resignation late on Sunday night of the minister in charge of Brexit negotiations, David - Davis.","rankScore":0.9711179434493907,"offset":177,"length":164},{"text":"Their - decision to leave the government came three days after May appeared to have - agreed a deal with herfractured Cabinet on the UK''s post Brexit relationship - with the EU.","rankScore":0.9103508917712292,"offset":342,"length":171},{"text":"That - plan is now in tatters and her political future appears uncertain.","rankScore":0.8227722338472695,"offset":514,"length":71},{"text":"May - appeared in Parliament on Monday afternoon to defend her plan, minutes after - Downing Street confirmed the departure of Johnson.","rankScore":0.6751042854876602,"offset":586,"length":131}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' + Davis.","rankScore":1.0,"offset":177,"length":164},{"text":"The government + of British Prime Minster Theresa May has been plunged into turmoil with the + resignation of two senior Cabinet ministers in a deep split over her Brexit + strategy.","rankScore":0.57,"offset":0,"length":176},{"text":"Their decision + to leave the government came three days after May appeared to have agreed + a deal with herfractured Cabinet on the UK''s post Brexit relationship with + the EU.","rankScore":0.47,"offset":342,"length":171},{"text":"That plan is + now in tatters and her political future appears uncertain.","rankScore":0.36,"offset":514,"length":71},{"text":"The + Prime Minister''s latest plitical drama began late on Sunday night when Davis + quit, declaring he could not support May''s Brexit plan.","rankScore":0.26,"offset":918,"length":136}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: - apim-request-id: 5f4d746c-b0ac-4b3e-acac-cc5a9a8290b0 + apim-request-id: 4121b7bc-0ecc-4813-992b-f6ad2a000656 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:10 GMT + date: Thu, 07 Oct 2021 23:51:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '160' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/c0301dcb-8661-4ffe-ae7a-a73b3a2de579?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/fba4a4ad-0fc8-465d-98e1-8008f6e5e5bc?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_partial_results.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_partial_results.yaml index 832318b5a56a..69e753149e6c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_partial_results.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_extract_summary_partial_results.yaml @@ -4,70 +4,94 @@ interactions: "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": - 3, "sortBy": "Offset"}}]}, "analysisInput": {"documents": [{"id": "1", "text": - "", "language": "en"}, {"id": "2", "text": "hello world", "language": "en"}]}}' + 3, "sortBy": "Offset"}, "taskName": "0"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "", "language": "en"}, {"id": + "2", "text": "hello world", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '475' + - '605' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: a8092624-8d03-4f8d-b37f-96c98970eda8 - date: Mon, 02 Aug 2021 21:46:10 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6 + apim-request-id: cd8a22c1-6b70-4316-86d3-6a6d5041ff5e + date: Thu, 07 Oct 2021 23:51:20 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '108' + x-envoy-upstream-service-time: '770' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True response: body: - string: '{"jobId":"d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6","lastUpdateDateTime":"2021-08-02T21:46:11Z","createdDateTime":"2021-08-02T21:46:11Z","expirationDateTime":"2021-08-03T21:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"04c4b0bb-cb57-40c9-8109-7038ac7d4af4","lastUpdateDateTime":"2021-10-07T23:51:21Z","createdDateTime":"2021-10-07T23:51:20Z","expirationDateTime":"2021-10-08T23:51:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 9d52da4f-6963-475b-b2a2-5547e0d1f45c + apim-request-id: 17f3cbb8-e946-465b-af0c-678526bde310 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:15 GMT + date: Thu, 07 Oct 2021 23:51:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '138' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True response: body: - string: '{"jobId":"d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6","lastUpdateDateTime":"2021-08-02T21:46:11Z","createdDateTime":"2021-08-02T21:46:11Z","expirationDateTime":"2021-08-03T21:46:11Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"04c4b0bb-cb57-40c9-8109-7038ac7d4af4","lastUpdateDateTime":"2021-10-07T23:51:21Z","createdDateTime":"2021-10-07T23:51:20Z","expirationDateTime":"2021-10-08T23:51:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: e799acf4-87ee-4673-9c47-00549e7556e9 + apim-request-id: 0fef54a1-23dd-4f5f-a18c-b5bef09e4e6e content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:21 GMT + date: Thu, 07 Oct 2021 23:51:31 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '9' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True + response: + body: + string: '{"jobId":"04c4b0bb-cb57-40c9-8109-7038ac7d4af4","lastUpdateDateTime":"2021-10-07T23:51:21Z","createdDateTime":"2021-10-07T23:51:20Z","expirationDateTime":"2021-10-08T23:51:20Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 11025182-9c9b-42d3-ab85-d77aa5d73a32 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:51:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -75,30 +99,29 @@ interactions: status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True response: body: - string: '{"jobId":"d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6","lastUpdateDateTime":"2021-08-02T21:46:23Z","createdDateTime":"2021-08-02T21:46:11Z","expirationDateTime":"2021-08-03T21:46:11Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:23.4007285Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"04c4b0bb-cb57-40c9-8109-7038ac7d4af4","lastUpdateDateTime":"2021-10-07T23:51:38Z","createdDateTime":"2021-10-07T23:51:20Z","expirationDateTime":"2021-10-08T23:51:20Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:51:38.9373184Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":1,"erroneousDocumentsCount":1,"transactionsCount":1},"documents":[{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-08-01"}}]}}' headers: - apim-request-id: 895237c8-02c9-40fb-a7c2-58c25042ad4e + apim-request-id: fce52636-9b50-4b96-8ccd-63c87c42eee3 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:26 GMT + date: Thu, 07 Oct 2021 23:51:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '186' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/d3dc5f3a-b2f5-4055-9d5c-b6fd068c04d6?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/04c4b0bb-cb57-40c9-8109-7038ac7d4af4?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multi_category_classify.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multi_category_classify.yaml new file mode 100644 index 000000000000..92a763119c6f --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multi_category_classify.yaml @@ -0,0 +1,66 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": [{"parameters": + {"project-name": "textanalytics_multi_category_classify_project_name", "deployment-name": + "textanalytics_multi_category_classify_project_name"}, "taskName": "0"}]}, "analysisInput": + {"documents": [{"id": "1", "text": "A recent report by the Government Accountability + Office (GAO) found that the dramatic increase in oil and natural gas development + on federal lands over the past six years has stretched the staff of the BLM + to a point that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food + Safety, International Food Information Council (IFIC), Washington, D.C., discussed + the physical activity component.", "language": "en"}, {"id": "3", "text": "I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '1196' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: 6d9011ee-6e31-4028-b93c-c2857ad53a6a + date: Thu, 07 Oct 2021 23:51:42 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e80afa11-69df-43f9-8497-d9f888c2b56a + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '426' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/e80afa11-69df-43f9-8497-d9f888c2b56a?showStats=True + response: + body: + string: '{"jobId":"e80afa11-69df-43f9-8497-d9f888c2b56a","lastUpdateDateTime":"2021-10-07T23:51:43Z","createdDateTime":"2021-10-07T23:51:42Z","expirationDateTime":"2021-10-08T23:51:42Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:51:43.4957598Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classifications":[],"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classifications":[],"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classifications":[{"category":"BookRestaurant","confidenceScore":0.97}],"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"textanalytics_multi_category_classify_project_name","deploymentName":"textanalytics_multi_category_classify_project_name"}}]}}' + headers: + apim-request-id: 21e54369-d37d-441e-bd50-e90462fcf289 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:51:47 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '159' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/e80afa11-69df-43f9-8497-d9f888c2b56a?showStats=True +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action.yaml new file mode 100644 index 000000000000..37272ed82a57 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action.yaml @@ -0,0 +1,340 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "2"}, {"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint"}, "taskName": "7"}], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}, {"parameters": {"model-version": "latest", "loggingOptOut": + true, "piiCategories": ["USSocialSecurityNumber"], "stringIndexType": "UnicodeCodePoint"}, + "taskName": "5"}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false}, "taskName": "6"}, {"parameters": {"model-version": + "latest", "loggingOptOut": false}, "taskName": "11"}], "entityLinkingTasks": + [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": + "UnicodeCodePoint"}, "taskName": "3"}, {"parameters": {"model-version": "latest", + "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "9"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "0"}, {"parameters": + {"model-version": "latest", "loggingOptOut": false, "opinionMining": true}, + "taskName": "8"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 3, "sortBy": "Rank"}, "taskName": "4"}, {"parameters": {"model-version": "latest", + "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 1, "sortBy": "Offset"}, "taskName": "10"}], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "28", "text": "My SSN is 859-98-0987. + Here is another sentence.", "language": "en"}, {"id": "3", "text": "Is 998.214.865-68 + your Brazilian CPF number? Here is another sentence.", "language": "en"}, {"id": + "5", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '2390' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: e74616e9-4341-4673-a43a-f6553115a952 + date: Thu, 07 Oct 2021 23:51:48 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '1514' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f + response: + body: + string: '{"jobId":"cd102a7a-8695-4a06-8a8e-69e68ca7758f","lastUpdateDateTime":"2021-10-07T23:51:49Z","createdDateTime":"2021-10-07T23:51:47Z","expirationDateTime":"2021-10-08T23:51:47Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":12,"total":12}}' + headers: + apim-request-id: 30c3cca1-99d6-4bee-8890-c2d29dcc53c7 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:51:53 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f + response: + body: + string: '{ "error": { "code": "Timeout", "message": "The operation was timeout." + } }' + headers: + apim-request-id: 59fc1801-cfab-43e7-9482-aadc4ecedcd1 + content-length: '75' + content-type: application/json + date: Thu, 07 Oct 2021 23:53:58 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + status: + code: 408 + message: Timeout + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f + response: + body: + string: "{\"jobId\":\"cd102a7a-8695-4a06-8a8e-69e68ca7758f\",\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:25Z\",\"createdDateTime\":\"2021-10-07T23:51:47Z\",\"\ + expirationDateTime\":\"2021-10-08T23:51:47Z\",\"status\":\"succeeded\",\"\ + errors\":[],\"displayName\":\"NA\",\"tasks\":{\"completed\":12,\"failed\"\ + :0,\"inProgress\":0,\"total\":12,\"entityRecognitionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:02.6412737Z\",\"taskName\":\"2\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[{\"text\":\"859\"\ + ,\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":10,\"length\"\ + :3,\"confidenceScore\":0.8},{\"text\":\"98\",\"category\":\"Quantity\",\"\ + subcategory\":\"Number\",\"offset\":14,\"length\":2,\"confidenceScore\":0.8},{\"\ + text\":\"0987\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\"\ + :17,\"length\":4,\"confidenceScore\":0.8}],\"warnings\":[]},{\"id\":\"3\"\ + ,\"entities\":[{\"text\":\"998\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"\ + 214\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":7,\"\ + length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:52:03.6794157Z\"\ + ,\"taskName\":\"7\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[{\"text\":\"859\",\"category\":\"Quantity\",\"subcategory\"\ + :\"Number\",\"offset\":10,\"length\":3,\"confidenceScore\":0.8},{\"text\"\ + :\"98\",\"category\":\"Quantity\",\"subcategory\":\"Number\",\"offset\":14,\"\ + length\":2,\"confidenceScore\":0.8},{\"text\":\"0987\",\"category\":\"Quantity\"\ + ,\"subcategory\":\"Number\",\"offset\":17,\"length\":4,\"confidenceScore\"\ + :0.8}],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"text\":\"998\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":3,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"214\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":7,\"length\":3,\"confidenceScore\":0.8},{\"text\":\"865\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":11,\"length\":3,\"confidenceScore\"\ + :0.8},{\"text\":\"68\",\"category\":\"Quantity\",\"subcategory\":\"Number\"\ + ,\"offset\":15,\"length\":2,\"confidenceScore\":0.8}],\"warnings\":[]},{\"\ + id\":\"5\",\"entities\":[{\"text\":\"Government Accountability Office\",\"\ + category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.99},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.95},{\"text\":\"oil\",\"category\":\"Product\",\"\ + offset\":98,\"length\":3,\"confidenceScore\":0.66},{\"text\":\"natural\",\"\ + category\":\"Product\",\"offset\":106,\"length\":7,\"confidenceScore\":0.65},{\"\ + text\":\"past six years\",\"category\":\"DateTime\",\"subcategory\":\"DateRange\"\ + ,\"offset\":156,\"length\":14,\"confidenceScore\":0.8},{\"text\":\"BLM\",\"\ + category\":\"Organization\",\"offset\":202,\"length\":3,\"confidenceScore\"\ + :0.94},{\"text\":\"environmental protection\",\"category\":\"Skill\",\"offset\"\ + :253,\"length\":24,\"confidenceScore\":0.83}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}}],\"entityLinkingTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:04.7730864Z\",\"taskName\":\"3\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"entities\":[],\"warnings\":[]},{\"\ + id\":\"3\",\"entities\":[{\"bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\"\ + ,\"name\":\"Brazil\",\"matches\":[{\"text\":\"Brazilian\",\"offset\":23,\"\ + length\":9,\"confidenceScore\":0.07}],\"language\":\"en\",\"id\":\"Brazil\"\ + ,\"url\":\"https://en.wikipedia.org/wiki/Brazil\",\"dataSource\":\"Wikipedia\"\ + },{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\",\"name\":\"Cadastro\ + \ de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF number\",\"offset\"\ + :33,\"length\":10,\"confidenceScore\":0.82}],\"language\":\"en\",\"id\":\"\ + Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:52:14.3765305Z\"\ + ,\"taskName\":\"9\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"entities\":[],\"warnings\":[]},{\"id\":\"3\",\"entities\":[{\"\ + bingId\":\"a828cf41-b938-49fe-7986-4b336618d413\",\"name\":\"Brazil\",\"matches\"\ + :[{\"text\":\"Brazilian\",\"offset\":23,\"length\":9,\"confidenceScore\":0.07}],\"\ + language\":\"en\",\"id\":\"Brazil\",\"url\":\"https://en.wikipedia.org/wiki/Brazil\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"f4df6dc5-6807-165b-d7ad-9cfb628549f4\"\ + ,\"name\":\"Cadastro de Pessoas F\xEDsicas\",\"matches\":[{\"text\":\"CPF\ + \ number\",\"offset\":33,\"length\":10,\"confidenceScore\":0.82}],\"language\"\ + :\"en\",\"id\":\"Cadastro de Pessoas F\xEDsicas\",\"url\":\"https://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F\xED\ + sicas\",\"dataSource\":\"Wikipedia\"}],\"warnings\":[]},{\"id\":\"5\",\"entities\"\ + :[{\"bingId\":\"e6fa81f3-561c-8207-0ca8-5b0163484c4d\",\"name\":\"Government\ + \ Accountability Office\",\"matches\":[{\"text\":\"Government Accountability\ + \ Office (GAO\",\"offset\":23,\"length\":37,\"confidenceScore\":0.82}],\"\ + language\":\"en\",\"id\":\"Government Accountability Office\",\"url\":\"https://en.wikipedia.org/wiki/Government_Accountability_Office\"\ + ,\"dataSource\":\"Wikipedia\"},{\"bingId\":\"936aa335-4726-b0db-03a5-2f3755b776e6\"\ + ,\"name\":\"Bureau of Land Management\",\"matches\":[{\"text\":\"BLM\",\"\ + offset\":202,\"length\":3,\"confidenceScore\":0.5}],\"language\":\"en\",\"\ + id\":\"Bureau of Land Management\",\"url\":\"https://en.wikipedia.org/wiki/Bureau_of_Land_Management\"\ + ,\"dataSource\":\"Wikipedia\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-06-01\"}}],\"entityRecognitionPiiTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:02.7634295Z\",\"taskName\":\"1\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"redactedText\":\"My SSN is ***********. Here\ + \ is another sentence.\",\"id\":\"28\",\"entities\":[{\"text\":\"859-98-0987\"\ + ,\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\"\ + :0.65}],\"warnings\":[]},{\"redactedText\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number? Here is another sentence.\",\"id\":\"3\",\"entities\":[],\"\ + warnings\":[]},{\"redactedText\":\"A recent report by the ********************************\ + \ (***) found that the dramatic increase in oil and natural gas development\ + \ on federal lands over the ************** has stretched the staff of the\ + \ *** to a point that it has been unable to meet its environmental protection\ + \ responsibilities.\",\"id\":\"5\",\"entities\":[{\"text\":\"Government Accountability\ + \ Office\",\"category\":\"Organization\",\"offset\":23,\"length\":32,\"confidenceScore\"\ + :0.96},{\"text\":\"GAO\",\"category\":\"Organization\",\"offset\":57,\"length\"\ + :3,\"confidenceScore\":0.93},{\"text\":\"past six years\",\"category\":\"\ + DateTime\",\"subcategory\":\"DateRange\",\"offset\":156,\"length\":14,\"confidenceScore\"\ + :0.8},{\"text\":\"BLM\",\"category\":\"Organization\",\"offset\":202,\"length\"\ + :3,\"confidenceScore\":0.9}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:51:57.0105372Z\"\ + ,\"taskName\":\"5\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + redactedText\":\"My SSN is ***********. Here is another sentence.\",\"id\"\ + :\"28\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]},{\"\ + redactedText\":\"Is 998.214.865-68 your Brazilian CPF number? Here is another\ + \ sentence.\",\"id\":\"3\",\"entities\":[],\"warnings\":[]},{\"redactedText\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"id\":\"5\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}}],\"extractiveSummarizationTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:14.5961259Z\",\"taskName\":\"4\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"sentences\":[{\"text\":\"My\ + \ SSN is 859-98-0987.\",\"rankScore\":1.0,\"offset\":0,\"length\":22},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":23,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"3\",\"sentences\":[{\"text\":\"Is 998.214.865-68\ + \ your Brazilian CPF number?\",\"rankScore\":1.0,\"offset\":0,\"length\":44},{\"\ + text\":\"Here is another sentence.\",\"rankScore\":0.0,\"offset\":45,\"length\"\ + :25}],\"warnings\":[]},{\"id\":\"5\",\"sentences\":[{\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\",\"rankScore\":1.0,\"\ + offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-08-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:52:02.7537509Z\"\ + ,\"taskName\":\"10\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentences\":[{\"text\":\"My SSN is 859-98-0987.\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":22}],\"warnings\":[]},{\"id\":\"3\",\"sentences\"\ + :[{\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\",\"rankScore\"\ + :1.0,\"offset\":0,\"length\":44}],\"warnings\":[]},{\"id\":\"5\",\"sentences\"\ + :[{\"text\":\"A recent report by the Government Accountability Office (GAO)\ + \ found that the dramatic increase in oil and natural gas development on federal\ + \ lands over the past six years has stretched the staff of the BLM to a point\ + \ that it has been unable to meet its environmental protection responsibilities.\"\ + ,\"rankScore\":1.0,\"offset\":0,\"length\":295}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-08-01\"}}],\"keyPhraseExtractionTasks\":[{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:04.3857477Z\",\"taskName\":\"6\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}},{\"lastUpdateDateTime\"\ + :\"2021-10-07T23:52:09.9366089Z\",\"taskName\":\"11\",\"state\":\"succeeded\"\ + ,\"results\":{\"documents\":[{\"id\":\"28\",\"keyPhrases\":[\"SSN\",\"sentence\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"Brazilian CPF number\"\ + ,\"sentence\"],\"warnings\":[]},{\"id\":\"5\",\"keyPhrases\":[\"Government\ + \ Accountability Office\",\"natural gas development\",\"past six years\",\"\ + environmental protection responsibilities\",\"recent report\",\"dramatic increase\"\ + ,\"federal lands\",\"GAO\",\"oil\",\"staff\",\"BLM\",\"point\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}}],\"sentimentAnalysisTasks\"\ + :[{\"lastUpdateDateTime\":\"2021-10-07T23:52:25.6594929Z\",\"taskName\":\"\ + 0\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"28\",\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :22,\"text\":\"My SSN is 859-98-0987.\"},{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":23,\"length\"\ + :25,\"text\":\"Here is another sentence.\"}],\"warnings\":[]},{\"id\":\"3\"\ + ,\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"neutral\"\ + :0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"offset\":0,\"length\"\ + :44,\"text\":\"Is 998.214.865-68 your Brazilian CPF number?\"},{\"sentiment\"\ + :\"neutral\",\"confidenceScores\":{\"positive\":0.02,\"neutral\":0.9,\"negative\"\ + :0.08},\"offset\":45,\"length\":25,\"text\":\"Here is another sentence.\"\ + }],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.23,\"neutral\"\ + :0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\":\"A recent report\ + \ by the Government Accountability Office (GAO) found that the dramatic increase\ + \ in oil and natural gas development on federal lands over the past six years\ + \ has stretched the staff of the BLM to a point that it has been unable to\ + \ meet its environmental protection responsibilities.\"}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2020-04-01\"}},{\"lastUpdateDateTime\":\"2021-10-07T23:52:19.6628124Z\"\ + ,\"taskName\":\"8\",\"state\":\"succeeded\",\"results\":{\"documents\":[{\"\ + id\":\"28\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.01,\"\ + neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\":0.0},\"\ + offset\":0,\"length\":22,\"text\":\"My SSN is 859-98-0987.\",\"targets\":[],\"\ + assessments\":[]},{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.02,\"neutral\":0.9,\"negative\":0.08},\"offset\":23,\"length\":25,\"text\"\ + :\"Here is another sentence.\",\"targets\":[],\"assessments\":[]}],\"warnings\"\ + :[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.01,\"neutral\":0.95,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"\ + neutral\",\"confidenceScores\":{\"positive\":0.0,\"neutral\":1.0,\"negative\"\ + :0.0},\"offset\":0,\"length\":44,\"text\":\"Is 998.214.865-68 your Brazilian\ + \ CPF number?\",\"targets\":[],\"assessments\":[]},{\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.02,\"neutral\":0.9,\"negative\":0.08},\"\ + offset\":45,\"length\":25,\"text\":\"Here is another sentence.\",\"targets\"\ + :[],\"assessments\":[]}],\"warnings\":[]},{\"id\":\"5\",\"sentiment\":\"neutral\"\ + ,\"confidenceScores\":{\"positive\":0.23,\"neutral\":0.61,\"negative\":0.16},\"\ + sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.23,\"neutral\":0.61,\"negative\":0.16},\"offset\":0,\"length\":295,\"text\"\ + :\"A recent report by the Government Accountability Office (GAO) found that\ + \ the dramatic increase in oil and natural gas development on federal lands\ + \ over the past six years has stretched the staff of the BLM to a point that\ + \ it has been unable to meet its environmental protection responsibilities.\"\ + ,\"targets\":[],\"assessments\":[]}],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2020-04-01\"}}]}}" + headers: + apim-request-id: 2b863227-7c8d-4a73-9acf-8bb8e886a776 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:53:59 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '894' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/cd102a7a-8695-4a06-8a8e-69e68ca7758f +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action_with_partial_results.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action_with_partial_results.yaml new file mode 100644 index 000000000000..5d70fd48fc81 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_of_same_action_with_partial_results.yaml @@ -0,0 +1,129 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", + "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "0"}, {"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint", "sentenceCount": + 5, "sortBy": "Offset"}, "taskName": "2"}], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "5", "text": "A recent report by the + Government Accountability Office (GAO) found that the dramatic increase in oil + and natural gas development on federal lands over the past six years has stretched + the staff of the BLM to a point that it has been unable to meet its environmental + protection responsibilities.", "language": "en"}, {"id": "2", "text": "", "language": + "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '1176' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: 8f41bc8b-bff4-4462-95d0-0b196420faf0 + date: Thu, 07 Oct 2021 23:54:01 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '386' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c + response: + body: + string: '{"jobId":"a59e81f0-4bdf-493c-8df2-491ab134fb0c","lastUpdateDateTime":"2021-10-07T23:54:01Z","createdDateTime":"2021-10-07T23:54:00Z","expirationDateTime":"2021-10-08T23:54:00Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":3,"total":3}}' + headers: + apim-request-id: 9fd820b5-2887-4901-9c1f-648ea26fd1b3 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:54:06 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '9' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c + response: + body: + string: upstream request timeout + headers: + apim-request-id: fce116e8-cbc3-4b5d-988b-6a256fd1d663 + content-type: text/plain + date: Thu, 07 Oct 2021 23:56:10 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + status: + code: 504 + message: Gateway Timeout + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c + response: + body: + string: '{"jobId":"a59e81f0-4bdf-493c-8df2-491ab134fb0c","lastUpdateDateTime":"2021-10-07T23:54:24Z","createdDateTime":"2021-10-07T23:54:00Z","expirationDateTime":"2021-10-08T23:54:00Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":0,"total":3,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:54:08.3388571Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"A + recent report by the ******************************** (***) found that the + dramatic increase in oil and natural gas development on federal lands over + the ************** has stretched the staff of the *** to a point that it has + been unable to meet its environmental protection responsibilities.","id":"5","entities":[{"text":"Government + Accountability Office","category":"Organization","offset":23,"length":32,"confidenceScore":0.96},{"text":"GAO","category":"Organization","offset":57,"length":3,"confidenceScore":0.93},{"text":"past + six years","category":"DateTime","subcategory":"DateRange","offset":156,"length":14,"confidenceScore":0.8},{"text":"BLM","category":"Organization","offset":202,"length":3,"confidenceScore":0.9}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:54:24.2285759Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"5","sentences":[{"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities.","rankScore":1.0,"offset":0,"length":295}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-08-01"}},{"lastUpdateDateTime":"2021-10-07T23:54:13.1157958Z","taskName":"2","state":"succeeded","results":{"documents":[{"id":"5","sentences":[{"text":"A + recent report by the Government Accountability Office (GAO) found that the + dramatic increase in oil and natural gas development on federal lands over + the past six years has stretched the staff of the BLM to a point that it has + been unable to meet its environmental protection responsibilities.","rankScore":1.0,"offset":0,"length":295}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-08-01"}}]}}' + headers: + apim-request-id: 0978d8a6-2dca-49d3-91d3-18dc1bb905ae + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:56:12 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '650' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/a59e81f0-4bdf-493c-8df2-491ab134fb0c +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml index 5a4d22ea91f5..ddb2b0c2bcc7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml @@ -1,25 +1,27 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "0", "text": "hello world", "language": "en"}, {"id": - "1", "text": "hello world", "language": "en"}, {"id": "2", "text": "hello world", - "language": "en"}, {"id": "3", "text": "hello world", "language": "en"}, {"id": - "4", "text": "hello world", "language": "en"}, {"id": "5", "text": "hello world", - "language": "en"}, {"id": "6", "text": "hello world", "language": "en"}, {"id": - "7", "text": "hello world", "language": "en"}, {"id": "8", "text": "hello world", - "language": "en"}, {"id": "9", "text": "hello world", "language": "en"}, {"id": - "10", "text": "hello world", "language": "en"}, {"id": "11", "text": "hello - world", "language": "en"}, {"id": "12", "text": "hello world", "language": "en"}, - {"id": "13", "text": "hello world", "language": "en"}, {"id": "14", "text": + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "hello world", "language": + "en"}, {"id": "1", "text": "hello world", "language": "en"}, {"id": "2", "text": + "hello world", "language": "en"}, {"id": "3", "text": "hello world", "language": + "en"}, {"id": "4", "text": "hello world", "language": "en"}, {"id": "5", "text": + "hello world", "language": "en"}, {"id": "6", "text": "hello world", "language": + "en"}, {"id": "7", "text": "hello world", "language": "en"}, {"id": "8", "text": + "hello world", "language": "en"}, {"id": "9", "text": "hello world", "language": + "en"}, {"id": "10", "text": "hello world", "language": "en"}, {"id": "11", "text": + "hello world", "language": "en"}, {"id": "12", "text": "hello world", "language": + "en"}, {"id": "13", "text": "hello world", "language": "en"}, {"id": "14", "text": "hello world", "language": "en"}, {"id": "15", "text": "hello world", "language": "en"}, {"id": "16", "text": "hello world", "language": "en"}, {"id": "17", "text": "hello world", "language": "en"}, {"id": "18", "text": "hello world", "language": @@ -32,60 +34,82 @@ interactions: Accept: - application/json, text/json Content-Length: - - '2218' + - '2433' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: d776de9b-7b95-41d3-a6e1-570d25a1f529 - date: Mon, 02 Aug 2021 21:46:28 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2 + apim-request-id: 095a2a29-6b80-4a43-afe7-fb81e4665a3e + date: Thu, 07 Oct 2021 23:56:13 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '611' + x-envoy-upstream-service-time: '1424' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True + response: + body: + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:13Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + headers: + apim-request-id: 8df2b276-a96e-426c-90b1-6563a255c9fe + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:56:18 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '11' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"bba0231d-9098-48a3-b505-82461b35e6d2","lastUpdateDateTime":"2021-08-02T21:46:28Z","createdDateTime":"2021-08-02T21:46:27Z","expirationDateTime":"2021-08-03T21:46:27Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:20Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' headers: - apim-request-id: 6a2a626f-edaa-43b8-8d0a-9f58322b3d90 + apim-request-id: 5554ad54-073c-47c9-ae73-c3f2d67f6b1c content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:33 GMT + date: Thu, 07 Oct 2021 23:56:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"bba0231d-9098-48a3-b505-82461b35e6d2","lastUpdateDateTime":"2021-08-02T21:46:35Z","createdDateTime":"2021-08-02T21:46:27Z","expirationDateTime":"2021-08-03T21:46:27Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:34.8334376Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.0157689Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.064167Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:26Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":4,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -105,49 +129,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.5412821Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 345cd50d-a0e2-491f-a609-0100b88e83f1 + apim-request-id: c20ab7e4-8fb3-4fad-a275-2f9a73ca8220 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:38 GMT + date: Thu, 07 Oct 2021 23:56:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '636' + x-envoy-upstream-service-time: '598' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"bba0231d-9098-48a3-b505-82461b35e6d2","lastUpdateDateTime":"2021-08-02T21:46:40Z","createdDateTime":"2021-08-02T21:46:27Z","expirationDateTime":"2021-08-03T21:46:27Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:34.8334376Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.0157689Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.064167Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:34Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:34.3879195Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -167,69 +171,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.5412821Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:40.7074119Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"4","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"5","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"6","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"7","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"8","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"9","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"10","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"11","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"12","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"13","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"14","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"15","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"16","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 73c52cfd-a953-48ee-ba84-b0b56311a071 + apim-request-id: 7efb9e40-baeb-4069-98aa-118118fb4184 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:44 GMT + date: Thu, 07 Oct 2021 23:56:34 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '735' + x-envoy-upstream-service-time: '715' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"bba0231d-9098-48a3-b505-82461b35e6d2","lastUpdateDateTime":"2021-08-02T21:46:40Z","createdDateTime":"2021-08-02T21:46:27Z","expirationDateTime":"2021-08-03T21:46:27Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:34.8334376Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.0157689Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.064167Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:34Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:34.3879195Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -249,69 +213,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.5412821Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:40.7074119Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"4","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"5","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"6","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"7","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"8","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"9","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"10","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"11","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"12","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"13","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"14","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"15","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"16","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 7dbe88f4-6a73-48cf-be88-332cbd8e0b30 + apim-request-id: ea3f3e6b-456f-4021-a6bb-5bcb4d9499f1 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:50 GMT + date: Thu, 07 Oct 2021 23:56:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '711' + x-envoy-upstream-service-time: '706' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True response: body: - string: '{"jobId":"bba0231d-9098-48a3-b505-82461b35e6d2","lastUpdateDateTime":"2021-08-02T21:46:53Z","createdDateTime":"2021-08-02T21:46:27Z","expirationDateTime":"2021-08-03T21:46:27Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:34.8334376Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.0157689Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.064167Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:43Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:34.3879195Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -331,27 +255,7 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:53.9909405Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.5412821Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:43.6796446Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:42.9523696Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello @@ -371,7 +275,7 @@ interactions: world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello - world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:40.7074119Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:43.1729497Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -391,57 +295,52 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 6d0b3311-7486-40c0-a982-b8f902cda715 + apim-request-id: 2360e371-412f-40f5-9e9e-d30631c532a7 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:56 GMT + date: Thu, 07 Oct 2021 23:56:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '895' + x-envoy-upstream-service-time: '2163' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=True - request: body: null headers: Accept: - application/json, text/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=false&$top=5&$skip=20 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=false&$top=5&$skip=20 response: body: - string: '{"jobId":"bba0231d-9098-48a3-b505-82461b35e6d2","lastUpdateDateTime":"2021-08-02T21:46:53Z","createdDateTime":"2021-08-02T21:46:27Z","expirationDateTime":"2021-08-03T21:46:27Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:34.8334376Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.0157689Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.064167Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"hello + string: '{"jobId":"917f1d3b-2f41-4b9e-8cae-52038ed2d740","lastUpdateDateTime":"2021-10-07T23:56:43Z","createdDateTime":"2021-10-07T23:56:12Z","expirationDateTime":"2021-10-08T23:56:12Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:25.2634688Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:34.3879195Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:26.0452805Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":"hello world","id":"20","entities":[],"warnings":[]},{"redactedText":"hello world","id":"21","entities":[],"warnings":[]},{"redactedText":"hello world","id":"22","entities":[],"warnings":[]},{"redactedText":"hello world","id":"23","entities":[],"warnings":[]},{"redactedText":"hello - world","id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:53.9909405Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"documents":[{"id":"20","sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"21","sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"22","sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"23","sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]},{"id":"24","sentences":[{"text":"hello - world","rankScore":1.0,"offset":0,"length":11}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:35.5412821Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"20","keyPhrases":["hello + world","id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:43.6796446Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"20","sentences":[],"warnings":[]},{"id":"21","sentences":[],"warnings":[]},{"id":"22","sentences":[],"warnings":[]},{"id":"23","sentences":[],"warnings":[]},{"id":"24","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:42.9523696Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"20","keyPhrases":["hello world"],"warnings":[]},{"id":"21","keyPhrases":["hello world"],"warnings":[]},{"id":"22","keyPhrases":["hello world"],"warnings":[]},{"id":"23","keyPhrases":["hello world"],"warnings":[]},{"id":"24","keyPhrases":["hello - world"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:46:40.7074119Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"20","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:43.1729497Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"20","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"21","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"22","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"23","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"24","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 607064d5-dde2-4d88-a2c3-22b699673cfa + apim-request-id: ff3b0bec-39ea-4d51-acf0-07d44f553c5e content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:46:56 GMT + date: Thu, 07 Oct 2021 23:56:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '363' + x-envoy-upstream-service-time: '578' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze/jobs/bba0231d-9098-48a3-b505-82461b35e6d2?showStats=false&$top=5&$skip=20 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze/jobs/917f1d3b-2f41-4b9e-8cae-52038ed2d740?showStats=false&$top=5&$skip=20 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml index cf5aa0f2b77e..d306054bec33 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml @@ -1,108 +1,176 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "56", "text": ":)", "language": "en"}, {"id": "0", "text": - ":(", "language": "en"}, {"id": "19", "text": ":P", "language": "en"}, {"id": - "1", "text": ":D", "language": "en"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": + "en"}, {"id": "0", "text": ":(", "language": "en"}, {"id": "19", "text": ":P", + "language": "en"}, {"id": "1", "text": ":D", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '1035' + - '1250' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: e8424112-9878-4972-af8c-6e047528c643 - date: Mon, 02 Aug 2021 21:46:58 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/9828f1ed-769e-4ee5-b6ce-d87d9fe0f116 + apim-request-id: 8d152277-fd28-482a-a223-9e51a30c5973 + date: Thu, 07 Oct 2021 23:56:49 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '320' + x-envoy-upstream-service-time: '783' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f + response: + body: + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:56:50Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + headers: + apim-request-id: 26370b51-e243-4d8b-8910-87a0e6d8b702 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:56:54 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '16' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f + response: + body: + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:56:57Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":5,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 3e46941c-ac3f-4ffe-8f91-cb198c782a14 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:57:00 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '93' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f + response: + body: + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:57:04Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":3,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:04.5909725Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:03.8574516Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 90834804-d2e4-4a91-9d8d-99548dcf4c7d + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:57:05 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '261' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/9828f1ed-769e-4ee5-b6ce-d87d9fe0f116 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f response: body: - string: '{"jobId":"9828f1ed-769e-4ee5-b6ce-d87d9fe0f116","lastUpdateDateTime":"2021-08-02T21:46:59Z","createdDateTime":"2021-08-02T21:46:58Z","expirationDateTime":"2021-08-03T21:46:58Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:57:09Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:04.5909725Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:03.8574516Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:09.8843237Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}]}}' headers: - apim-request-id: c09cc62a-8e29-46f8-b0e6-a644b82e0e45 + apim-request-id: 2c37efc0-c522-4012-8cf1-6426b5dd0f5a content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:47:03 GMT + date: Thu, 07 Oct 2021 23:57:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '327' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/9828f1ed-769e-4ee5-b6ce-d87d9fe0f116 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/9828f1ed-769e-4ee5-b6ce-d87d9fe0f116 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f response: body: - string: '{"jobId":"9828f1ed-769e-4ee5-b6ce-d87d9fe0f116","lastUpdateDateTime":"2021-08-02T21:47:05Z","createdDateTime":"2021-08-02T21:46:58Z","expirationDateTime":"2021-08-03T21:46:58Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:05.2917781Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:03.9905407Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:05.299537Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:05.6267931Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"documents":[{"id":"56","sentences":[{"text":":)","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"0","sentences":[{"text":":(","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"19","sentences":[{"text":":P","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"1","sentences":[{"text":":D","rankScore":1.0,"offset":0,"length":2}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:04.9356175Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:57:15Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:04.5909725Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:03.8574516Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:09.8843237Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:15.796298Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 0a291357-0994-44af-abf6-a11bb8d39a19 + apim-request-id: 08a3d91c-6b21-49af-9c81-46fe69bd65b7 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:47:08 GMT + date: Thu, 07 Oct 2021 23:57:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '235' + x-envoy-upstream-service-time: '427' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/9828f1ed-769e-4ee5-b6ce-d87d9fe0f116 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/9828f1ed-769e-4ee5-b6ce-d87d9fe0f116 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f response: body: - string: '{"jobId":"9828f1ed-769e-4ee5-b6ce-d87d9fe0f116","lastUpdateDateTime":"2021-08-02T21:47:10Z","createdDateTime":"2021-08-02T21:46:58Z","expirationDateTime":"2021-08-03T21:46:58Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:05.2917781Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:03.9905407Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:05.299537Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:05.6267931Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"documents":[{"id":"56","sentences":[{"text":":)","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"0","sentences":[{"text":":(","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"19","sentences":[{"text":":P","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"1","sentences":[{"text":":D","rankScore":1.0,"offset":0,"length":2}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:04.9356175Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:10.6387869Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"1947e3bc-675c-42c4-8ee0-255c7a795e0f","lastUpdateDateTime":"2021-10-07T23:57:21Z","createdDateTime":"2021-10-07T23:56:49Z","expirationDateTime":"2021-10-08T23:56:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:56:57.8937555Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:04.5909725Z","taskName":"3","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:03.8574516Z","taskName":"2","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:09.8843237Z","taskName":"5","state":"succeeded","results":{"documents":[{"id":"56","sentences":[],"warnings":[]},{"id":"0","sentences":[],"warnings":[]},{"id":"19","sentences":[],"warnings":[]},{"id":"1","sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:21.1834841Z","taskName":"1","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:15.796298Z","taskName":"4","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 8a3d1924-7d1a-480d-8ec5-18850128339b + apim-request-id: 77fdf504-0d8e-44a3-8435-3fa365b76d3e content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:47:13 GMT + date: Thu, 07 Oct 2021 23:57:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '275' + x-envoy-upstream-service-time: '531' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/9828f1ed-769e-4ee5-b6ce-d87d9fe0f116 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/1947e3bc-675c-42c4-8ee0-255c7a795e0f version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml index 8e2838e796f9..7926d8055871 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml @@ -1,86 +1,136 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - false}}], "extractiveSummarizationTasks": []}, "analysisInput": {"documents": - [{"id": "1", "text": "I did not like the hotel we stayed at.", "language": "tr"}, - {"id": "2", "text": "I did not like the hotel we stayed at.", "language": "en"}]}}' + {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, + "taskName": "1"}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], + "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false, "opinionMining": false}, "taskName": "0"}], "extractiveSummarizationTasks": + [], "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], + "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "I did not like the hotel we stayed at.", "language": "tr"}, {"id": + "2", "text": "I did not like the hotel we stayed at.", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '590' + - '737' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: dbd55e81-5e5e-4618-a3bf-29fe042d4fa8 - date: Mon, 02 Aug 2021 21:47:15 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/9719c87f-d476-42f3-b361-dafc7e06de1c + apim-request-id: 69aa1b1b-83c3-42fb-bf39-bdcc1f50a66d + date: Thu, 07 Oct 2021 23:57:22 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '140' + x-envoy-upstream-service-time: '243' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/9719c87f-d476-42f3-b361-dafc7e06de1c + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 response: body: - string: '{"jobId":"9719c87f-d476-42f3-b361-dafc7e06de1c","lastUpdateDateTime":"2021-08-02T21:47:16Z","createdDateTime":"2021-08-02T21:47:15Z","expirationDateTime":"2021-08-03T21:47:15Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + string: '{"jobId":"c600d945-94d3-4db6-821b-42d33eff12c6","lastUpdateDateTime":"2021-10-07T23:57:22Z","createdDateTime":"2021-10-07T23:57:22Z","expirationDateTime":"2021-10-08T23:57:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' headers: - apim-request-id: 6e943eac-89e3-474c-845f-26d0aa5a640b + apim-request-id: 938ac093-efff-48a4-be30-4e5fdd6230d4 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:47:20 GMT + date: Thu, 07 Oct 2021 23:57:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '39' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/9719c87f-d476-42f3-b361-dafc7e06de1c + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/9719c87f-d476-42f3-b361-dafc7e06de1c + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 response: body: - string: '{"jobId":"9719c87f-d476-42f3-b361-dafc7e06de1c","lastUpdateDateTime":"2021-08-02T21:47:22Z","createdDateTime":"2021-08-02T21:47:15Z","expirationDateTime":"2021-08-03T21:47:15Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:22.9517148Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + string: '{"jobId":"c600d945-94d3-4db6-821b-42d33eff12c6","lastUpdateDateTime":"2021-10-07T23:57:28Z","createdDateTime":"2021-10-07T23:57:22Z","expirationDateTime":"2021-10-08T23:57:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: 26ca24e1-50e5-4b1b-8979-cdb28b297c66 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:57:32 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '11' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 + response: + body: + string: '{"jobId":"c600d945-94d3-4db6-821b-42d33eff12c6","lastUpdateDateTime":"2021-10-07T23:57:36Z","createdDateTime":"2021-10-07T23:57:22Z","expirationDateTime":"2021-10-08T23:57:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:36.3576004Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: b6edafd9-fa99-4af3-9da8-9b74facc8634 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:57:37 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '240' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 + response: + body: + string: '{"jobId":"c600d945-94d3-4db6-821b-42d33eff12c6","lastUpdateDateTime":"2021-10-07T23:57:39Z","createdDateTime":"2021-10-07T23:57:22Z","expirationDateTime":"2021-10-08T23:57:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:36.3576004Z","taskName":"1","state":"succeeded","results":{"documents":[{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:22.8569865Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:39.896461Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: c4c8d496-3c16-47e1-919d-acf0fe2e77a3 + apim-request-id: d3d0a485-37da-4eec-a31a-6c6a4334ea3d content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:47:25 GMT + date: Thu, 07 Oct 2021 23:57:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '78' + x-envoy-upstream-service-time: '250' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/9719c87f-d476-42f3-b361-dafc7e06de1c + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/c600d945-94d3-4db6-821b-42d33eff12c6 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml index 640285c9713f..f852e4457fb4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml @@ -1,79 +1,58 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": - [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": []}, "analysisInput": - {"documents": [{"id": "0", "text": "Test passing cls to endpoint", "language": - "en"}]}}' + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "Test passing cls to + endpoint", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '409' + - '539' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: cefe65e4-51ee-49ab-8b55-2f3dfcb424b8 - date: Mon, 02 Aug 2021 21:47:26 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/90c92ca0-333b-42e7-85b8-24ddd966a71d + apim-request-id: 52705e9c-aabc-493e-a19c-94bf8ee3b27c + date: Thu, 07 Oct 2021 23:57:44 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/af1e62b5-fea4-41a4-9497-30d00a2327a2 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '95' + x-envoy-upstream-service-time: '303' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/90c92ca0-333b-42e7-85b8-24ddd966a71d + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/af1e62b5-fea4-41a4-9497-30d00a2327a2 response: body: - string: '{"jobId":"90c92ca0-333b-42e7-85b8-24ddd966a71d","lastUpdateDateTime":"2021-08-02T21:47:26Z","createdDateTime":"2021-08-02T21:47:26Z","expirationDateTime":"2021-08-03T21:47:26Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"af1e62b5-fea4-41a4-9497-30d00a2327a2","lastUpdateDateTime":"2021-10-07T23:57:45Z","createdDateTime":"2021-10-07T23:57:43Z","expirationDateTime":"2021-10-08T23:57:43Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:45.6372402Z","taskName":"0","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: b01ccb25-c623-4a21-9221-17aedcc9026f + apim-request-id: bf46287a-264d-4b33-8cdd-0257da93238c content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:47:31 GMT + date: Thu, 07 Oct 2021 23:57:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '83' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/90c92ca0-333b-42e7-85b8-24ddd966a71d -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/90c92ca0-333b-42e7-85b8-24ddd966a71d - response: - body: - string: '{"jobId":"90c92ca0-333b-42e7-85b8-24ddd966a71d","lastUpdateDateTime":"2021-08-02T21:47:32Z","createdDateTime":"2021-08-02T21:47:26Z","expirationDateTime":"2021-08-03T21:47:26Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:32.9243147Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' - headers: - apim-request-id: 7badcfc1-a583-48a8-bceb-8fc66c08aeae - content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:47:36 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' - status: - code: 200 - message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/90c92ca0-333b-42e7-85b8-24ddd966a71d + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/af1e62b5-fea4-41a4-9497-30d00a2327a2 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml index c0f46d99c4d0..ad6e54198f62 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml @@ -2,9 +2,11 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": true, "piiCategories": ["USSocialSecurityNumber", - "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": - []}, "analysisInput": {"documents": [{"id": "1", "text": "My SSN is 859-98-0987.", + "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}, "taskName": "0"}], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [], "customMultiClassificationTasks": []}, + "analysisInput": {"documents": [{"id": "1", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "2", "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.", "language": "en"}, {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": @@ -13,74 +15,74 @@ interactions: Accept: - application/json, text/json Content-Length: - - '702' + - '832' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: ca4fe218-a596-47fd-9dac-b5c2d60471e8 - date: Mon, 02 Aug 2021 21:47:36 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/8fb35b51-c335-4468-9c52-e32b334dd4ae + apim-request-id: 16acffbf-0e94-4b55-b5e2-e578653fbaab + date: Thu, 07 Oct 2021 23:57:49 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '117' + x-envoy-upstream-service-time: '358' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/8fb35b51-c335-4468-9c52-e32b334dd4ae + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 response: body: - string: '{"jobId":"8fb35b51-c335-4468-9c52-e32b334dd4ae","lastUpdateDateTime":"2021-08-02T21:47:37Z","createdDateTime":"2021-08-02T21:47:36Z","expirationDateTime":"2021-08-03T21:47:36Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"88800de8-44f7-4be9-b0dc-9ea9121af761","lastUpdateDateTime":"2021-10-07T23:57:49Z","createdDateTime":"2021-10-07T23:57:49Z","expirationDateTime":"2021-10-08T23:57:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 425dbe54-886f-4376-8615-dd0ec5d39ee1 + apim-request-id: ff3a5213-b827-4424-bad1-e1e535118aeb content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:47:42 GMT + date: Thu, 07 Oct 2021 23:57:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/8fb35b51-c335-4468-9c52-e32b334dd4ae + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/8fb35b51-c335-4468-9c52-e32b334dd4ae + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 response: body: - string: '{"jobId":"8fb35b51-c335-4468-9c52-e32b334dd4ae","lastUpdateDateTime":"2021-08-02T21:47:43Z","createdDateTime":"2021-08-02T21:47:36Z","expirationDateTime":"2021-08-03T21:47:36Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:47:43.6049398Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"My + string: '{"jobId":"88800de8-44f7-4be9-b0dc-9ea9121af761","lastUpdateDateTime":"2021-10-07T23:57:57Z","createdDateTime":"2021-10-07T23:57:49Z","expirationDateTime":"2021-10-08T23:57:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:57:57.3713039Z","taskName":"0","state":"succeeded","results":{"documents":[{"redactedText":"My SSN is ***********.","id":"1","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"2","entities":[{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: - apim-request-id: bfb76840-790d-4542-8aa3-67ce115ea8cb + apim-request-id: c7248dc8-7202-407d-a343-7cc89556c245 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:47:47 GMT + date: Thu, 07 Oct 2021 23:57:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '213' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/8fb35b51-c335-4468-9c52-e32b334dd4ae + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/88800de8-44f7-4be9-b0dc-9ea9121af761 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml index e641469df20b..780853dbbeac 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml @@ -1,56 +1,58 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": - [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": []}, "analysisInput": - {"documents": [{"id": "56", "text": ":)", "language": "en"}]}}' + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": + [], "sentimentAnalysisTasks": [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": + "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '384' + - '514' Content-Type: - application/json User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: 4a815235-95c2-4419-862d-99129c9caf07 - date: Tue, 12 Oct 2021 23:09:58 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/09db5119-4fe6-487e-b49b-173f885180f9 + apim-request-id: 4d3de006-4acd-49eb-8ad3-db78994f467a + date: Thu, 21 Oct 2021 22:27:38 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/222c47e7-1897-4f05-b46d-8ce627c02b38 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '163' + x-envoy-upstream-service-time: '224' status: code: 202 message: Accepted - url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/09db5119-4fe6-487e-b49b-173f885180f9?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/222c47e7-1897-4f05-b46d-8ce627c02b38?showStats=True response: body: - string: '{"jobId":"09db5119-4fe6-487e-b49b-173f885180f9","lastUpdateDateTime":"2021-10-12T23:10:00Z","createdDateTime":"2021-10-12T23:09:58Z","expirationDateTime":"2021-10-13T23:09:58Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-12T23:10:00.5701879Z","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + string: '{"jobId":"222c47e7-1897-4f05-b46d-8ce627c02b38","lastUpdateDateTime":"2021-10-21T22:27:40Z","createdDateTime":"2021-10-21T22:27:38Z","expirationDateTime":"2021-10-22T22:27:38Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-21T22:27:40.1795342Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: a984e7b4-803f-4651-80c2-37b7c63201c7 + apim-request-id: 21444939-4a44-4229-b6ab-5672411bb0f2 content-type: application/json; charset=utf-8 - date: Tue, 12 Oct 2021 23:10:03 GMT + date: Thu, 21 Oct 2021 22:27:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '66' + x-envoy-upstream-service-time: '59' status: code: 200 message: OK - url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/09db5119-4fe6-487e-b49b-173f885180f9?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/222c47e7-1897-4f05-b46d-8ce627c02b38?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_recognize_custom_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_recognize_custom_entities.yaml new file mode 100644 index 000000000000..7283090b57fc --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_recognize_custom_entities.yaml @@ -0,0 +1,71 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [{"parameters": + {"project-name": "textanalytics_custom_entities_project_name", "deployment-name": + "textanalytics_custom_entities_project_name"}, "taskName": "0"}], "customSingleClassificationTasks": + [], "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food + Safety, International Food Information Council (IFIC), Washington, D.C., discussed + the physical activity component.", "language": "en"}, {"id": "3", "text": "I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '1196' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: b5db4ea3-582a-40d3-a50b-8fe525e7036e + date: Thu, 07 Oct 2021 23:58:06 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/49ba6ccf-b34e-48e6-ae5e-8ec76b7367bf + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '873' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/49ba6ccf-b34e-48e6-ae5e-8ec76b7367bf?showStats=True + response: + body: + string: '{"jobId":"49ba6ccf-b34e-48e6-ae5e-8ec76b7367bf","lastUpdateDateTime":"2021-10-07T23:58:08Z","createdDateTime":"2021-10-07T23:58:06Z","expirationDateTime":"2021-10-08T23:58:06Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:08.4152227Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":295,"transactionsCount":1},"entities":[{"text":"Government","category":"restaurant_name","offset":23,"length":10,"confidenceScore":0.05},{"text":"Office","category":"restaurant_name","offset":49,"length":6,"confidenceScore":0.11},{"text":"GAO","category":"restaurant_name","offset":57,"length":3,"confidenceScore":0.04},{"text":"Accountability","category":"geographic_poi","offset":34,"length":14,"confidenceScore":0.07},{"text":"natural","category":"geographic_poi","offset":106,"length":7,"confidenceScore":0.04},{"text":"dramatic","category":"sort","offset":77,"length":8,"confidenceScore":0.03},{"text":"oil","category":"restaurant_type","offset":98,"length":3,"confidenceScore":0.03},{"text":"gas","category":"restaurant_type","offset":114,"length":3,"confidenceScore":0.09},{"text":"and","category":"served_dish","offset":102,"length":3,"confidenceScore":0.07},{"text":"development","category":"object_type","offset":118,"length":11,"confidenceScore":0.06},{"text":"federal","category":"state","offset":133,"length":7,"confidenceScore":0.07},{"text":"protection","category":"state","offset":267,"length":10,"confidenceScore":0.05},{"text":"lands","category":"poi","offset":141,"length":5,"confidenceScore":0.04},{"text":"BLM","category":"poi","offset":202,"length":3,"confidenceScore":0.07},{"text":"the","category":"timeRange","offset":152,"length":3,"confidenceScore":0.24},{"text":"past + six years","category":"timeRange","offset":156,"length":14,"confidenceScore":0.54}],"warnings":[]},{"id":"2","statistics":{"charactersCount":158,"transactionsCount":1},"entities":[{"text":"David + Schmidt","category":"artist","offset":0,"length":13,"confidenceScore":0.8},{"text":"Food","category":"service","offset":38,"length":4,"confidenceScore":0.03},{"text":"Safety","category":"geographic_poi","offset":43,"length":6,"confidenceScore":0.06},{"text":"International + Food","category":"geographic_poi","offset":51,"length":18,"confidenceScore":0.07},{"text":"IFIC","category":"geographic_poi","offset":91,"length":4,"confidenceScore":0.05},{"text":"Information + Council","category":"restaurant_name","offset":70,"length":19,"confidenceScore":0.1},{"text":"Washington, + D.C.","category":"state","offset":98,"length":16,"confidenceScore":0.49}],"warnings":[]},{"id":"3","statistics":{"charactersCount":121,"transactionsCount":1},"entities":[{"text":"indoor","category":"facility","offset":28,"length":6,"confidenceScore":0.57},{"text":"restaurant","category":"restaurant_type","offset":35,"length":10,"confidenceScore":0.95},{"text":"China","category":"country","offset":49,"length":5,"confidenceScore":0.48},{"text":"music","category":"music_item","offset":78,"length":5,"confidenceScore":0.63},{"text":"my","category":"playlist_owner","offset":110,"length":2,"confidenceScore":0.84}],"warnings":[]}],"errors":[],"projectName":"textanalytics_custom_entities_project_name","deploymentName":"textanalytics_custom_entities_project_name"}}]}}' + headers: + apim-request-id: b41bef4b-72d1-4d59-8f28-2d32a6e88525 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:58:11 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '168' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/49ba6ccf-b34e-48e6-ae5e-8ec76b7367bf?showStats=True +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml index 03636ea15f70..93ec90debb8a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml @@ -3,102 +3,169 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": - true}}], "extractiveSummarizationTasks": []}, "analysisInput": {"documents": - [{"id": "0", "text": "It has a sleek premium aluminum design that makes it beautiful - to look at.", "language": "en"}, {"id": "1", "text": "The food and service is - not good", "language": "en"}]}}' + true}, "taskName": "0"}], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": + [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "It has a sleek premium + aluminum design that makes it beautiful to look at.", "language": "en"}, {"id": + "1", "text": "The food and service is not good", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '514' + - '644' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: 9351a21a-9119-4fbc-910c-c997d311f377 - date: Mon, 02 Aug 2021 21:47:58 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/a179fa2d-9e79-4756-b9ee-c07da1c99ec2 + apim-request-id: efd32cfb-4242-4ddb-bd2f-bced91f3ddfa + date: Thu, 07 Oct 2021 23:58:12 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '114' + x-envoy-upstream-service-time: '205' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/a179fa2d-9e79-4756-b9ee-c07da1c99ec2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True response: body: - string: '{"jobId":"a179fa2d-9e79-4756-b9ee-c07da1c99ec2","lastUpdateDateTime":"2021-08-02T21:47:59Z","createdDateTime":"2021-08-02T21:47:58Z","expirationDateTime":"2021-08-03T21:47:58Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 4512a405-efed-4946-8f11-13d8d08fe9a4 + apim-request-id: d57d3f3d-a044-4df2-bfa0-6190892490de content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:48:03 GMT + date: Thu, 07 Oct 2021 23:58:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/a179fa2d-9e79-4756-b9ee-c07da1c99ec2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/a179fa2d-9e79-4756-b9ee-c07da1c99ec2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True response: body: - string: '{"jobId":"a179fa2d-9e79-4756-b9ee-c07da1c99ec2","lastUpdateDateTime":"2021-08-02T21:47:59Z","createdDateTime":"2021-08-02T21:47:58Z","expirationDateTime":"2021-08-03T21:47:58Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: f6dd237d-4df7-4e4b-83c0-04c29c133263 + apim-request-id: 2c83c24e-4110-4b9d-b465-58ebf0daa0f9 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:48:08 GMT + date: Thu, 07 Oct 2021 23:58:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/a179fa2d-9e79-4756-b9ee-c07da1c99ec2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/a179fa2d-9e79-4756-b9ee-c07da1c99ec2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True response: body: - string: '{"jobId":"a179fa2d-9e79-4756-b9ee-c07da1c99ec2","lastUpdateDateTime":"2021-08-02T21:48:12Z","createdDateTime":"2021-08-02T21:47:58Z","expirationDateTime":"2021-08-03T21:47:58Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:12.9627545Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 288470b0-5aaa-4eb9-b650-3fee26afcd41 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:58:27 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '8' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True + response: + body: + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 541bcb7c-a6cf-4e09-82db-79f4f63244d8 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:58:32 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '8' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True + response: + body: + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:12Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 8096504b-09ec-4183-9bec-435534b653cb + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:58:37 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '6' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True + response: + body: + string: '{"jobId":"f44e6dd3-85c0-49fd-b660-030d89ce919c","lastUpdateDateTime":"2021-10-07T23:58:40Z","createdDateTime":"2021-10-07T23:58:12Z","expirationDateTime":"2021-10-08T23:58:12Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:40.0746684Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]},{"id":"1","sentiment":"negative","statistics":{"charactersCount":32,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 1134ef58-3c94-4b04-87fc-230900a21382 + apim-request-id: dafaba7b-6769-4b2f-a651-514afe7a8a9c content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:48:14 GMT + date: Thu, 07 Oct 2021 23:58:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' + x-envoy-upstream-service-time: '75' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/a179fa2d-9e79-4756-b9ee-c07da1c99ec2?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/f44e6dd3-85c0-49fd-b660-030d89ce919c?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml index c4a500075de7..7846dcc1b687 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml @@ -1,130 +1,154 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "56", "text": ":)", "language": "en"}, {"id": "0", "text": - ":(", "language": "en"}, {"id": "19", "text": ":P", "language": "en"}, {"id": - "1", "text": ":D", "language": "en"}]}}' + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "56", "text": ":)", "language": + "en"}, {"id": "0", "text": ":(", "language": "en"}, {"id": "19", "text": ":P", + "language": "en"}, {"id": "1", "text": ":D", "language": "en"}]}}' headers: Accept: - application/json, text/json Content-Length: - - '1035' + - '1250' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '' headers: - apim-request-id: 860d4c59-4bed-479d-8286-b9bab30e1c14 - date: Mon, 02 Aug 2021 21:48:15 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/b840d736-fd28-4c94-8200-fa21a7dfa869 + apim-request-id: c0a6af82-24a7-4663-b134-6e957b901172 + date: Thu, 07 Oct 2021 23:58:44 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '306' + x-envoy-upstream-service-time: '995' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True + response: + body: + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:58:44Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + headers: + apim-request-id: ece3e627-f17b-4a96-a017-5e3b5d070ad6 + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:58:49 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '8' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/b840d736-fd28-4c94-8200-fa21a7dfa869?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True response: body: - string: '{"jobId":"b840d736-fd28-4c94-8200-fa21a7dfa869","lastUpdateDateTime":"2021-08-02T21:48:17Z","createdDateTime":"2021-08-02T21:48:14Z","expirationDateTime":"2021-08-03T21:48:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":6,"total":6}}' + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:58:54Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:51.8509311Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:54.2202072Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.2528101Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.9770416Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 2151d8d8-56b7-4371-bf6d-88602b414663 + apim-request-id: 1a5b4657-0f02-425c-96c0-bb063bcb911c content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:48:20 GMT + date: Thu, 07 Oct 2021 23:58:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '353' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/b840d736-fd28-4c94-8200-fa21a7dfa869?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/b840d736-fd28-4c94-8200-fa21a7dfa869?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True response: body: - string: '{"jobId":"b840d736-fd28-4c94-8200-fa21a7dfa869","lastUpdateDateTime":"2021-08-02T21:48:23Z","createdDateTime":"2021-08-02T21:48:14Z","expirationDateTime":"2021-08-03T21:48:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:23.1398039Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:22.6467037Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:23.2634965Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:22.5602253Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:23.0657387Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:58:54Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:51.8509311Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:54.2202072Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.2528101Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.9770416Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 8528b872-8aed-4b8c-9f1a-1b98f3e2b9a3 + apim-request-id: b63169d8-2368-46b6-b827-aa9cec2a8594 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:48:25 GMT + date: Thu, 07 Oct 2021 23:59:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '251' + x-envoy-upstream-service-time: '750' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/b840d736-fd28-4c94-8200-fa21a7dfa869?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/b840d736-fd28-4c94-8200-fa21a7dfa869?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True response: body: - string: '{"jobId":"b840d736-fd28-4c94-8200-fa21a7dfa869","lastUpdateDateTime":"2021-08-02T21:48:23Z","createdDateTime":"2021-08-02T21:48:14Z","expirationDateTime":"2021-08-03T21:48:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":1,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:23.1398039Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:22.6467037Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:23.2634965Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:22.5602253Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:23.0657387Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:58:54Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":2,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:51.8509311Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:54.2202072Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.2528101Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.9770416Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: ef06f0b3-5a21-4649-b516-c58a893f8db2 + apim-request-id: 7bd6e155-45f2-4c0d-99ae-c1beb072a97c content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:48:31 GMT + date: Thu, 07 Oct 2021 23:59:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '333' + x-envoy-upstream-service-time: '328' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/b840d736-fd28-4c94-8200-fa21a7dfa869?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze/jobs/b840d736-fd28-4c94-8200-fa21a7dfa869?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True response: body: - string: '{"jobId":"b840d736-fd28-4c94-8200-fa21a7dfa869","lastUpdateDateTime":"2021-08-02T21:48:33Z","createdDateTime":"2021-08-02T21:48:14Z","expirationDateTime":"2021-08-03T21:48:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:23.1398039Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:22.6467037Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:23.2634965Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:33.5849009Z","taskName":"ExtractiveSummarization_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[{"text":":)","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[{"text":":(","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[{"text":":P","rankScore":1.0,"offset":0,"length":2}],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[{"text":":D","rankScore":1.0,"offset":0,"length":2}],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:22.5602253Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-08-02T21:48:23.0657387Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"3149144f-357f-40b1-af2d-26f67d7973b8","lastUpdateDateTime":"2021-10-07T23:59:06Z","createdDateTime":"2021-10-07T23:58:43Z","expirationDateTime":"2021-10-08T23:58:43Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":6,"failed":0,"inProgress":0,"total":6,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:51.8509311Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:54.2202072Z","taskName":"3","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.2528101Z","taskName":"2","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"extractiveSummarizationTasks":[{"lastUpdateDateTime":"2021-10-07T23:59:05.9620129Z","taskName":"5","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"sentences":[],"warnings":[]}],"errors":[],"modelVersion":"2021-08-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-07T23:58:52.9770416Z","taskName":"1","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-10-07T23:59:06.576964Z","taskName":"4","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: cfb7b846-0124-4753-b98e-2d76c964a69d + apim-request-id: 5998b2fe-a637-4e06-8af9-d54c7eed426b content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:48:36 GMT + date: Thu, 07 Oct 2021 23:59:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '299' + x-envoy-upstream-service-time: '448' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/analyze/jobs/b840d736-fd28-4c94-8200-fa21a7dfa869?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/3149144f-357f-40b1-af2d-26f67d7973b8?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_single_category_classify.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_single_category_classify.yaml new file mode 100644 index 000000000000..33ce2fde0104 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_single_category_classify.yaml @@ -0,0 +1,66 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [], "extractiveSummarizationTasks": [], "customEntityRecognitionTasks": [], + "customSingleClassificationTasks": [{"parameters": {"project-name": "single_category_classify_project_name", + "deployment-name": "single_category_classify_project_name"}, "taskName": "0"}], + "customMultiClassificationTasks": []}, "analysisInput": {"documents": [{"id": + "1", "text": "A recent report by the Government Accountability Office (GAO) + found that the dramatic increase in oil and natural gas development on federal + lands over the past six years has stretched the staff of the BLM to a point + that it has been unable to meet its environmental protection responsibilities.", + "language": "en"}, {"id": "2", "text": "David Schmidt, senior vice president--Food + Safety, International Food Information Council (IFIC), Washington, D.C., discussed + the physical activity component.", "language": "en"}, {"id": "3", "text": "I + need a reservation for an indoor restaurant in China. Please don''t stop the + music. Play music and add it to my playlist", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '1196' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze + response: + body: + string: '' + headers: + apim-request-id: f9824da7-7fe4-4af5-8251-8b98331ad1a2 + date: Thu, 07 Oct 2021 23:59:12 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/885c214e-654c-4e58-b9d5-16ca756d6d11 + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '482' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze/jobs/885c214e-654c-4e58-b9d5-16ca756d6d11?showStats=True + response: + body: + string: '{"jobId":"885c214e-654c-4e58-b9d5-16ca756d6d11","lastUpdateDateTime":"2021-10-07T23:59:13Z","createdDateTime":"2021-10-07T23:59:12Z","expirationDateTime":"2021-10-08T23:59:12Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-07T23:59:13.7403633Z","taskName":"0","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"statistics":{"charactersCount":295,"transactionsCount":1},"warnings":[]},{"id":"2","classification":{"category":"RateBook","confidenceScore":0.57},"statistics":{"charactersCount":158,"transactionsCount":1},"warnings":[]},{"id":"3","classification":{"category":"BookRestaurant","confidenceScore":1.0},"statistics":{"charactersCount":121,"transactionsCount":1},"warnings":[]}],"errors":[],"projectName":"single_category_classify_project_name","deploymentName":"single_category_classify_project_name"}}]}}' + headers: + apim-request-id: 8783048e-2cff-48e2-a819-a44262eb7bec + content-type: application/json; charset=utf-8 + date: Thu, 07 Oct 2021 23:59:17 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '196' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.2/analyze/jobs/885c214e-654c-4e58-b9d5-16ca756d6d11?showStats=True +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml index 6d6fe93a0c7c..400dbac6fe35 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml @@ -1,23 +1,25 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], - "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "0"}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}, "taskName": "2"}], + "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": + false}, "taskName": "1"}], "entityLinkingTasks": [{"parameters": {"model-version": + "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}, "taskName": + "3"}], "sentimentAnalysisTasks": [{"parameters": {"model-version": "latest", + "loggingOptOut": false, "opinionMining": false}, "taskName": "4"}], "extractiveSummarizationTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": - "latest", "loggingOptOut": false, "opinionMining": false}}], "extractiveSummarizationTasks": - [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": - "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}}]}, "analysisInput": - {"documents": [{"id": "0", "text": "input document", "language": "en"}, {"id": - "1", "text": "input document", "language": "en"}, {"id": "2", "text": "input - document", "language": "en"}, {"id": "3", "text": "input document", "language": - "en"}, {"id": "4", "text": "input document", "language": "en"}, {"id": "5", - "text": "input document", "language": "en"}, {"id": "6", "text": "input document", - "language": "en"}, {"id": "7", "text": "input document", "language": "en"}, - {"id": "8", "text": "input document", "language": "en"}, {"id": "9", "text": - "input document", "language": "en"}, {"id": "10", "text": "input document", + "UnicodeCodePoint", "sentenceCount": 3, "sortBy": "Offset"}, "taskName": "5"}], + "customEntityRecognitionTasks": [], "customSingleClassificationTasks": [], "customMultiClassificationTasks": + []}, "analysisInput": {"documents": [{"id": "0", "text": "input document", "language": + "en"}, {"id": "1", "text": "input document", "language": "en"}, {"id": "2", + "text": "input document", "language": "en"}, {"id": "3", "text": "input document", + "language": "en"}, {"id": "4", "text": "input document", "language": "en"}, + {"id": "5", "text": "input document", "language": "en"}, {"id": "6", "text": + "input document", "language": "en"}, {"id": "7", "text": "input document", "language": + "en"}, {"id": "8", "text": "input document", "language": "en"}, {"id": "9", + "text": "input document", "language": "en"}, {"id": "10", "text": "input document", "language": "en"}, {"id": "11", "text": "input document", "language": "en"}, {"id": "12", "text": "input document", "language": "en"}, {"id": "13", "text": "input document", "language": "en"}, {"id": "14", "text": "input document", @@ -34,21 +36,21 @@ interactions: Accept: - application/json, text/json Content-Length: - - '2351' + - '2566' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/analyze response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 25 records are permitted."}}}' headers: - apim-request-id: 93ed61cf-5065-4080-87f6-469e573db369 + apim-request-id: 3f4f9ff0-fd80-4013-a47b-5d9d3880e784 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:48:37 GMT + date: Thu, 07 Oct 2021 23:59:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -56,5 +58,5 @@ interactions: status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/analyze + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_bad_model_version_error.yaml index ad70a0bedf64..b7430cb33837 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_bad_model_version_error.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 31d07ef9-7556-427d-876c-49eb8e435d9e + - 52bd1376-0e61-4135-8708-418b42e77665 date: - - Tue, 03 Aug 2021 17:29:57 GMT + - Wed, 06 Oct 2021 20:59:20 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/af7dec3f-b9f1-4d88-b5d6-eeb8c51c5a05 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/7b424cc2-08a5-4d0a-8486-60ac0ab10a95 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '137' + - '871' status: code: 202 message: Accepted @@ -48,21 +48,123 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/af7dec3f-b9f1-4d88-b5d6-eeb8c51c5a05 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/7b424cc2-08a5-4d0a-8486-60ac0ab10a95 response: body: - string: '{"jobId":"af7dec3f-b9f1-4d88-b5d6-eeb8c51c5a05","lastUpdateDateTime":"2021-08-03T17:30:02Z","createdDateTime":"2021-08-03T17:29:57Z","expirationDateTime":"2021-08-04T17:29:57Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"7b424cc2-08a5-4d0a-8486-60ac0ab10a95","lastUpdateDateTime":"2021-10-06T20:59:20Z","createdDateTime":"2021-10-06T20:59:20Z","expirationDateTime":"2021-10-07T20:59:20Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: + - 5a36fdd0-e6ba-4a7f-a059-9b0a5e954db9 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Oct 2021 20:59:25 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/7b424cc2-08a5-4d0a-8486-60ac0ab10a95 + response: + body: + string: '{"jobId":"7b424cc2-08a5-4d0a-8486-60ac0ab10a95","lastUpdateDateTime":"2021-10-06T20:59:20Z","createdDateTime":"2021-10-06T20:59:20Z","expirationDateTime":"2021-10-07T20:59:20Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: + - 6bcf986e-c7f8-4903-810b-d998b7c8120e + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Oct 2021 20:59:30 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '13' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/7b424cc2-08a5-4d0a-8486-60ac0ab10a95 + response: + body: + string: '{"jobId":"7b424cc2-08a5-4d0a-8486-60ac0ab10a95","lastUpdateDateTime":"2021-10-06T20:59:31Z","createdDateTime":"2021-10-06T20:59:20Z","expirationDateTime":"2021-10-07T20:59:20Z","status":"running","errors":[]}' + headers: + apim-request-id: + - edaa83d9-53b5-4a8a-a0ac-47aa1cadcd68 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Oct 2021 20:59:35 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '12' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/7b424cc2-08a5-4d0a-8486-60ac0ab10a95 + response: + body: + string: '{"jobId":"7b424cc2-08a5-4d0a-8486-60ac0ab10a95","lastUpdateDateTime":"2021-10-06T20:59:36Z","createdDateTime":"2021-10-06T20:59:20Z","expirationDateTime":"2021-10-07T20:59:20Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 8460441e-b553-4119-b0bd-57307d03f42c + - 0d828eae-af43-4108-ad5c-0bc898c40afb content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:01 GMT + - Wed, 06 Oct 2021 20:59:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +172,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '80' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_cancellation.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_cancellation.yaml index cb09569471e4..4709dd53f6a6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_cancellation.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_cancellation.yaml @@ -19,19 +19,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - ae151444-790d-40bf-8df7-f9ff700e1a60 + - 0cd06666-b61b-415e-b8c7-302951db93f0 date: - - Tue, 03 Aug 2021 17:30:03 GMT + - Wed, 06 Oct 2021 20:59:42 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/af90b266-e1b4-4567-a86c-cbc212830e31 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/3edcc9b4-a90c-476a-891d-02653ddd6b65 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '369' + - '1093' status: code: 202 message: Accepted @@ -53,19 +53,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/af90b266-e1b4-4567-a86c-cbc212830e31 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/3edcc9b4-a90c-476a-891d-02653ddd6b65 response: body: - string: '{"jobId":"af90b266-e1b4-4567-a86c-cbc212830e31","lastUpdateDateTime":"2021-08-03T17:30:07Z","createdDateTime":"2021-08-03T17:30:03Z","expirationDateTime":"2021-08-04T17:30:03Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[],"relations":[],"warnings":[]},{"id":"6","entities":[],"relations":[],"warnings":[]},{"id":"7","entities":[],"relations":[],"warnings":[]},{"id":"8","entities":[],"relations":[],"warnings":[]},{"id":"9","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"3edcc9b4-a90c-476a-891d-02653ddd6b65","lastUpdateDateTime":"2021-10-06T20:59:42Z","createdDateTime":"2021-10-06T20:59:41Z","expirationDateTime":"2021-10-07T20:59:41Z","status":"notStarted","errors":[]}' headers: apim-request-id: - - 4ad894e3-fdee-42df-b71d-351fa3e4f619 + - b4bb40ca-9ee0-469a-a2fa-cadd3b5e4c94 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:08 GMT + - Wed, 06 Oct 2021 20:59:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -73,7 +73,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '145' + - '78' status: code: 200 message: OK @@ -87,19 +87,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/af90b266-e1b4-4567-a86c-cbc212830e31 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/3edcc9b4-a90c-476a-891d-02653ddd6b65 response: body: - string: '{"jobId":"af90b266-e1b4-4567-a86c-cbc212830e31","lastUpdateDateTime":"2021-08-03T17:30:07Z","createdDateTime":"2021-08-03T17:30:03Z","expirationDateTime":"2021-08-04T17:30:03Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[],"relations":[],"warnings":[]},{"id":"6","entities":[],"relations":[],"warnings":[]},{"id":"7","entities":[],"relations":[],"warnings":[]},{"id":"8","entities":[],"relations":[],"warnings":[]},{"id":"9","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"3edcc9b4-a90c-476a-891d-02653ddd6b65","lastUpdateDateTime":"2021-10-06T20:59:42Z","createdDateTime":"2021-10-06T20:59:41Z","expirationDateTime":"2021-10-07T20:59:41Z","status":"notStarted","errors":[]}' headers: apim-request-id: - - 4476ef2e-970c-414a-9f58-24e76285f9c5 + - 89d1acef-04af-4df2-9f73-e358abcb5179 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:08 GMT + - Wed, 06 Oct 2021 20:59:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -107,7 +107,75 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '95' + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/3edcc9b4-a90c-476a-891d-02653ddd6b65 + response: + body: + string: '{"jobId":"3edcc9b4-a90c-476a-891d-02653ddd6b65","lastUpdateDateTime":"2021-10-06T20:59:56Z","createdDateTime":"2021-10-06T20:59:41Z","expirationDateTime":"2021-10-07T20:59:41Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[],"relations":[],"warnings":[]},{"id":"6","entities":[],"relations":[],"warnings":[]},{"id":"7","entities":[],"relations":[],"warnings":[]},{"id":"8","entities":[],"relations":[],"warnings":[]},{"id":"9","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + headers: + apim-request-id: + - 4666204b-da08-4381-b847-eb7d7ba9e68f + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Oct 2021 20:59:57 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '159' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/3edcc9b4-a90c-476a-891d-02653ddd6b65 + response: + body: + string: '{"jobId":"3edcc9b4-a90c-476a-891d-02653ddd6b65","lastUpdateDateTime":"2021-10-06T20:59:56Z","createdDateTime":"2021-10-06T20:59:41Z","expirationDateTime":"2021-10-07T20:59:41Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[],"relations":[],"warnings":[]},{"id":"6","entities":[],"relations":[],"warnings":[]},{"id":"7","entities":[],"relations":[],"warnings":[]},{"id":"8","entities":[],"relations":[],"warnings":[]},{"id":"9","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + headers: + apim-request-id: + - 22a5c23c-137d-42bc-aa8b-8b83cce7ba60 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Oct 2021 20:59:58 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '246' status: code: 200 message: OK @@ -123,20 +191,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/af90b266-e1b4-4567-a86c-cbc212830e31 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs/3edcc9b4-a90c-476a-891d-02653ddd6b65 response: body: string: '{"error":{"code":"InvalidRequest","message":"Failed to cancel job with - job id af90b266-e1b4-4567-a86c-cbc212830e31 as its already completed."}}' + job id 3edcc9b4-a90c-476a-891d-02653ddd6b65 as its already completed."}}' headers: apim-request-id: - - 24a70ce3-acfa-4a83-9f05-db205d044141 + - c25cbc04-ac48-4b90-805f-8bfc3d5513cd content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:08 GMT + - Wed, 06 Oct 2021 20:59:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -144,7 +212,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '22' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_default_string_index_type_is_UnicodeCodePoint.yaml index 61e34adb7fcf..099b42c8bef7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,19 +13,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 637374fb-852d-4bfe-959f-0f1f1132ddd5 + - bcb7bd36-d580-4f7b-85a6-4446dd440e07 date: - - Tue, 03 Aug 2021 17:30:10 GMT + - Wed, 06 Oct 2021 20:59:57 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/e5d8c146-cc54-42c1-8e52-310a1c04d150 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9b20e790-33b9-483d-8711-282017b72a6a strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -33,7 +33,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '164' + - '168' status: code: 202 message: Accepted @@ -47,19 +47,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/e5d8c146-cc54-42c1-8e52-310a1c04d150 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9b20e790-33b9-483d-8711-282017b72a6a response: body: - string: '{"jobId":"e5d8c146-cc54-42c1-8e52-310a1c04d150","lastUpdateDateTime":"2021-08-03T17:30:12Z","createdDateTime":"2021-08-03T17:30:10Z","expirationDateTime":"2021-08-04T17:30:10Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"9b20e790-33b9-483d-8711-282017b72a6a","lastUpdateDateTime":"2021-10-06T20:59:58Z","createdDateTime":"2021-10-06T20:59:58Z","expirationDateTime":"2021-10-07T20:59:58Z","status":"notStarted","errors":[]}' headers: apim-request-id: - - 91bb8d59-a42d-4709-ab46-a454726afb21 + - 529db425-4107-490f-82eb-f43b632c2a76 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:15 GMT + - Wed, 06 Oct 2021 21:00:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -67,7 +67,75 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '18' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9b20e790-33b9-483d-8711-282017b72a6a + response: + body: + string: '{"jobId":"9b20e790-33b9-483d-8711-282017b72a6a","lastUpdateDateTime":"2021-10-06T21:00:06Z","createdDateTime":"2021-10-06T20:59:58Z","expirationDateTime":"2021-10-07T20:59:58Z","status":"running","errors":[]}' + headers: + apim-request-id: + - 7a6d6efb-f92c-4e86-8bee-ade29d8fd0cb + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Oct 2021 21:00:07 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '7' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9b20e790-33b9-483d-8711-282017b72a6a + response: + body: + string: '{"jobId":"9b20e790-33b9-483d-8711-282017b72a6a","lastUpdateDateTime":"2021-10-06T21:00:11Z","createdDateTime":"2021-10-06T20:59:58Z","expirationDateTime":"2021-10-07T20:59:58Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + headers: + apim-request-id: + - 881886d3-6b83-4bfb-a8b3-0567fc621ca4 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Oct 2021 21:00:13 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '79' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_disable_service_logs.yaml index e6d08c0d1f57..fa8d17b15d19 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_disable_service_logs.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true response: body: string: '' headers: apim-request-id: - - 545a404a-b127-436d-8cdb-6695b870b20b + - d736bff2-1457-46cc-b7ab-6805adedbd87 date: - - Tue, 03 Aug 2021 17:30:16 GMT + - Wed, 06 Oct 2021 21:00:14 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/e4ee63ff-d1e6-4695-9dcb-3e9e8a2eb95a + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/998f0fdb-a7d0-427e-8124-fbbd60873ea7 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '149' + - '175' status: code: 202 message: Accepted @@ -48,19 +48,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/e4ee63ff-d1e6-4695-9dcb-3e9e8a2eb95a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/998f0fdb-a7d0-427e-8124-fbbd60873ea7 response: body: - string: '{"jobId":"e4ee63ff-d1e6-4695-9dcb-3e9e8a2eb95a","lastUpdateDateTime":"2021-08-03T17:30:17Z","createdDateTime":"2021-08-03T17:30:16Z","expirationDateTime":"2021-08-04T17:30:16Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"998f0fdb-a7d0-427e-8124-fbbd60873ea7","lastUpdateDateTime":"2021-10-06T21:00:14Z","createdDateTime":"2021-10-06T21:00:14Z","expirationDateTime":"2021-10-07T21:00:14Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 655a3ec4-0484-455d-8866-8734b7de8467 + - 5fca1cd3-f06c-4fe6-9a78-5a7fc836c3e1 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:21 GMT + - Wed, 06 Oct 2021 21:00:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -68,7 +68,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '174' + - '101' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_attribute_error_no_result_attribute.yaml index a626b459b719..35d100c83fbe 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_attribute_error_no_result_attribute.yaml @@ -13,19 +13,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 3e4cff2d-d7d5-40cc-85d3-6220c74e9958 + - 6133d634-07a8-4c70-8a00-77014bc91c24 date: - - Tue, 03 Aug 2021 17:30:22 GMT + - Wed, 06 Oct 2021 21:00:19 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/0c1cc586-b31f-41c0-94c2-7a0d6e945138 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4a729570-dba6-431f-9643-096b1454bc0b strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -33,7 +33,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '162' + - '204' status: code: 202 message: Accepted @@ -47,21 +47,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/0c1cc586-b31f-41c0-94c2-7a0d6e945138 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4a729570-dba6-431f-9643-096b1454bc0b response: body: - string: '{"jobId":"0c1cc586-b31f-41c0-94c2-7a0d6e945138","lastUpdateDateTime":"2021-08-03T17:30:27Z","createdDateTime":"2021-08-03T17:30:22Z","expirationDateTime":"2021-08-04T17:30:22Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"4a729570-dba6-431f-9643-096b1454bc0b","lastUpdateDateTime":"2021-10-06T21:00:20Z","createdDateTime":"2021-10-06T21:00:19Z","expirationDateTime":"2021-10-07T21:00:19Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 6ff9f4e2-0b77-4f01-9152-05cabfd1bd11 + - d7c38340-6636-4ca3-9215-d6ee8923e07f content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:27 GMT + - Wed, 06 Oct 2021 21:00:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -69,7 +69,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '101' + - '71' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_errors.yaml index 1ad578fd424e..b370245667ac 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_errors.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 531e3070-ebd9-4cfd-b81c-ddc9b8931ec9 + - babbcb9d-429e-40ca-9069-8b403b2a7274 date: - - Tue, 03 Aug 2021 17:30:28 GMT + - Wed, 06 Oct 2021 21:00:24 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a867df06-137e-46a8-a778-035680da3a36 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a26b209e-1f7e-4a27-842a-733780d5f63e strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '118' + - '266' status: code: 202 message: Accepted @@ -50,12 +50,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a867df06-137e-46a8-a778-035680da3a36 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a26b209e-1f7e-4a27-842a-733780d5f63e response: body: - string: '{"jobId":"a867df06-137e-46a8-a778-035680da3a36","lastUpdateDateTime":"2021-08-03T17:30:32Z","createdDateTime":"2021-08-03T17:30:28Z","expirationDateTime":"2021-08-04T17:30:28Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"a26b209e-1f7e-4a27-842a-733780d5f63e","lastUpdateDateTime":"2021-10-06T21:00:25Z","createdDateTime":"2021-10-06T21:00:25Z","expirationDateTime":"2021-10-07T21:00:25Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid @@ -66,11 +66,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 892b635d-1350-4cd5-adc4-e1c72f0d3d5b + - d4c1b433-82d4-471c-9d02-58189b8be7ed content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:33 GMT + - Wed, 06 Oct 2021 21:00:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -78,7 +78,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '75' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_duplicate_ids_error.yaml index 979794f03ad4..715a41b73f46 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 66121894-e9b1-4e35-bf06-ec6e746e1dd5 + - a380fd57-b12a-4fe3-b0fd-f85a2010df9e content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:33 GMT + - Wed, 06 Oct 2021 21:00:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '4' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_explicit_set_string_index_type.yaml index 107d8b6aeb47..d825ab5a683f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_explicit_set_string_index_type.yaml @@ -13,19 +13,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=TextElements_v8 response: body: string: '' headers: apim-request-id: - - ee8997cc-77ac-4d54-b678-eef6c0d32c8e + - 3d74d515-4b77-4d9d-aefd-bc58c45b674d date: - - Tue, 03 Aug 2021 17:30:35 GMT + - Wed, 06 Oct 2021 21:00:31 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/ed811964-297f-449b-af5e-d00d47e4eb6c + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/14ac300c-e689-4d97-9baf-dc525fd0c3d5 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -33,7 +33,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '95' + - '165' status: code: 202 message: Accepted @@ -47,19 +47,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/ed811964-297f-449b-af5e-d00d47e4eb6c + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/14ac300c-e689-4d97-9baf-dc525fd0c3d5 response: body: - string: '{"jobId":"ed811964-297f-449b-af5e-d00d47e4eb6c","lastUpdateDateTime":"2021-08-03T17:30:37Z","createdDateTime":"2021-08-03T17:30:35Z","expirationDateTime":"2021-08-04T17:30:35Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"14ac300c-e689-4d97-9baf-dc525fd0c3d5","lastUpdateDateTime":"2021-10-06T21:00:31Z","createdDateTime":"2021-10-06T21:00:31Z","expirationDateTime":"2021-10-07T21:00:31Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 85342d14-0aee-4052-9b62-740deaece305 + - 734e1688-f909-4243-af66-1ca34535a1f2 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:40 GMT + - Wed, 06 Oct 2021 21:00:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -67,7 +67,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '44' + - '211' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_assertion.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_assertion.yaml index 45372302d7f6..02580059d371 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_assertion.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_assertion.yaml @@ -15,19 +15,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 8c41bdfa-8252-4e67-816d-40a1f036301b + - 38023f65-aa0f-4eb4-9e64-16dcf42a400d date: - - Tue, 03 Aug 2021 17:30:40 GMT + - Wed, 06 Oct 2021 21:00:37 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8b4c15b8-a9fa-4807-b29a-14548fb1e0bb + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/c1b06403-1580-44b0-bb01-d25f933214e0 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '96' + - '208' status: code: 202 message: Accepted @@ -49,20 +49,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8b4c15b8-a9fa-4807-b29a-14548fb1e0bb + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/c1b06403-1580-44b0-bb01-d25f933214e0 response: body: - string: '{"jobId":"8b4c15b8-a9fa-4807-b29a-14548fb1e0bb","lastUpdateDateTime":"2021-08-03T17:30:42Z","createdDateTime":"2021-08-03T17:30:40Z","expirationDateTime":"2021-08-04T17:30:40Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother + string: '{"jobId":"c1b06403-1580-44b0-bb01-d25f933214e0","lastUpdateDateTime":"2021-10-06T21:00:37Z","createdDateTime":"2021-10-06T21:00:37Z","expirationDateTime":"2021-10-07T21:00:37Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.9,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"FamilyRelation","confidenceScore":1.0,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - b4586a14-d998-43ac-afd8-54280777204e + - b1eb0554-9937-4e19-ae1c-4c6c10c8901f content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:46 GMT + - Wed, 06 Oct 2021 21:00:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '61' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_continuation_token.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_continuation_token.yaml new file mode 100644 index 000000000000..2c1b7de32458 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_continuation_token.yaml @@ -0,0 +1,300 @@ +interactions: +- request: + body: '{"documents": [{"id": "1", "text": "Baby not likely to have Meningitis. + In case of fever in the mother, consider Penicillin for the baby too.", "language": + "en"}, {"id": "2", "text": "patients must have histologically confirmed NHL", + "language": "en"}, {"id": "3", "text": "", "language": "en"}, {"id": "4", "text": + "The patient was diagnosed with Parkinsons Disease (PD)", "language": "en"}]}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '393' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint + response: + body: + string: '' + headers: + apim-request-id: + - ea1692fd-0f77-42e4-8dc1-fb82e253ae6d + date: + - Mon, 25 Oct 2021 18:35:46 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8dee58e0-04ae-4494-8eda-b5e2a432a200 + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1566' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8dee58e0-04ae-4494-8eda-b5e2a432a200?showStats=True + response: + body: + string: '{"jobId":"8dee58e0-04ae-4494-8eda-b5e2a432a200","lastUpdateDateTime":"2021-10-25T18:35:46Z","createdDateTime":"2021-10-25T18:35:45Z","expirationDateTime":"2021-10-26T18:35:45Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: + - 71ac1ee4-f149-42ac-a84e-af081a0de2bc + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 18:35:51 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '8' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8dee58e0-04ae-4494-8eda-b5e2a432a200?showStats=True + response: + body: + string: '{"jobId":"8dee58e0-04ae-4494-8eda-b5e2a432a200","lastUpdateDateTime":"2021-10-25T18:35:52Z","createdDateTime":"2021-10-25T18:35:45Z","expirationDateTime":"2021-10-26T18:35:45Z","status":"running","errors":[]}' + headers: + apim-request-id: + - e7d78131-1d19-4f9d-a4f7-a891b33e74a4 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 18:35:56 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '130' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8dee58e0-04ae-4494-8eda-b5e2a432a200?showStats=True + response: + body: + string: '{"jobId":"8dee58e0-04ae-4494-8eda-b5e2a432a200","lastUpdateDateTime":"2021-10-25T18:35:52Z","createdDateTime":"2021-10-25T18:35:45Z","expirationDateTime":"2021-10-26T18:35:45Z","status":"running","errors":[]}' + headers: + apim-request-id: + - 98a7200c-99e8-4bf2-bfe6-95d67a9680c4 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 18:35:57 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '126' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8dee58e0-04ae-4494-8eda-b5e2a432a200?showStats=True + response: + body: + string: '{"jobId":"8dee58e0-04ae-4494-8eda-b5e2a432a200","lastUpdateDateTime":"2021-10-25T18:35:52Z","createdDateTime":"2021-10-25T18:35:45Z","expirationDateTime":"2021-10-26T18:35:45Z","status":"running","errors":[]}' + headers: + apim-request-id: + - f71cfcfb-f4d2-4d30-a159-ae07401851b7 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 18:36:01 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '55' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8dee58e0-04ae-4494-8eda-b5e2a432a200?showStats=True + response: + body: + string: '{"jobId":"8dee58e0-04ae-4494-8eda-b5e2a432a200","lastUpdateDateTime":"2021-10-25T18:36:02Z","createdDateTime":"2021-10-25T18:35:45Z","expirationDateTime":"2021-10-26T18:35:45Z","status":"running","errors":[]}' + headers: + apim-request-id: + - dd2fe871-7503-4e52-b438-d1c529938382 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 18:36:02 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '8' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8dee58e0-04ae-4494-8eda-b5e2a432a200?showStats=True + response: + body: + string: '{"jobId":"8dee58e0-04ae-4494-8eda-b5e2a432a200","lastUpdateDateTime":"2021-10-25T18:36:02Z","createdDateTime":"2021-10-25T18:35:45Z","expirationDateTime":"2021-10-26T18:35:45Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother + (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.9,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"FamilyRelation","confidenceScore":1.0,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":47,"transactionsCount":1},"entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology + Procedure","links":[{"dataSource":"UMLS","id":"C0344441"},{"dataSource":"CHV","id":"0000030964"},{"dataSource":"LNC","id":"MTHU010496"},{"dataSource":"MDR","id":"10062005"},{"dataSource":"MTH","id":"U002823"},{"dataSource":"MTHMST","id":"MT140012"},{"dataSource":"NCI","id":"C49131"},{"dataSource":"SNOMEDCT_US","id":"714797009"}]},{"offset":44,"length":3,"text":"NHL","category":"Diagnosis","confidenceScore":1.0,"name":"Lymphoma, + Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[{"relationType":"ExaminationFindsCondition","entities":[{"ref":"#/results/documents/1/entities/0","role":"Examination"},{"ref":"#/results/documents/1/entities/1","role":"Condition"}]}],"warnings":[]},{"id":"4","statistics":{"charactersCount":54,"transactionsCount":1},"entities":[{"offset":31,"length":18,"text":"Parkinsons + Disease","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]},{"offset":51,"length":2,"text":"PD","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson + Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/2/entities/0","role":"FullTerm"},{"ref":"#/results/documents/2/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-05-15"}}' + headers: + apim-request-id: + - 5b99bd19-d94d-4361-b049-8a09287e188e + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 18:36:06 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '324' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8dee58e0-04ae-4494-8eda-b5e2a432a200?showStats=True + response: + body: + string: '{"jobId":"8dee58e0-04ae-4494-8eda-b5e2a432a200","lastUpdateDateTime":"2021-10-25T18:36:02Z","createdDateTime":"2021-10-25T18:35:45Z","expirationDateTime":"2021-10-26T18:35:45Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother + (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.9,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"FamilyRelation","confidenceScore":1.0,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":47,"transactionsCount":1},"entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology + Procedure","links":[{"dataSource":"UMLS","id":"C0344441"},{"dataSource":"CHV","id":"0000030964"},{"dataSource":"LNC","id":"MTHU010496"},{"dataSource":"MDR","id":"10062005"},{"dataSource":"MTH","id":"U002823"},{"dataSource":"MTHMST","id":"MT140012"},{"dataSource":"NCI","id":"C49131"},{"dataSource":"SNOMEDCT_US","id":"714797009"}]},{"offset":44,"length":3,"text":"NHL","category":"Diagnosis","confidenceScore":1.0,"name":"Lymphoma, + Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[{"relationType":"ExaminationFindsCondition","entities":[{"ref":"#/results/documents/1/entities/0","role":"Examination"},{"ref":"#/results/documents/1/entities/1","role":"Condition"}]}],"warnings":[]},{"id":"4","statistics":{"charactersCount":54,"transactionsCount":1},"entities":[{"offset":31,"length":18,"text":"Parkinsons + Disease","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]},{"offset":51,"length":2,"text":"PD","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson + Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/2/entities/0","role":"FullTerm"},{"ref":"#/results/documents/2/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-05-15"}}' + headers: + apim-request-id: + - 3e39f1f1-1a86-4fde-a222-503bc8ecdc6a + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Oct 2021 18:36:08 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1789' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_input_with_some_errors.yaml index 169e55fff508..4d82e1c3c5d8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_input_with_some_errors.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 493b3267-d383-48cd-bd72-86c5b39c1023 + - 07d3d9d6-bbc8-493d-838c-ffbe9d232d58 date: - - Tue, 03 Aug 2021 17:30:47 GMT + - Wed, 06 Oct 2021 21:00:43 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/85b7e43d-052a-43a2-8d84-8c664f004f15 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/feeff47b-bd6c-40ab-970d-e1ea33342084 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '120' + - '287' status: code: 202 message: Accepted @@ -50,12 +50,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/85b7e43d-052a-43a2-8d84-8c664f004f15 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/feeff47b-bd6c-40ab-970d-e1ea33342084 response: body: - string: '{"jobId":"85b7e43d-052a-43a2-8d84-8c664f004f15","lastUpdateDateTime":"2021-08-03T17:30:47Z","createdDateTime":"2021-08-03T17:30:46Z","expirationDateTime":"2021-08-04T17:30:46Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"3","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice + string: '{"jobId":"feeff47b-bd6c-40ab-970d-e1ea33342084","lastUpdateDateTime":"2021-10-06T21:00:43Z","createdDateTime":"2021-10-06T21:00:42Z","expirationDateTime":"2021-10-07T21:00:42Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"3","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice daily","category":"Frequency","confidenceScore":1.0}],"relations":[{"relationType":"DosageOfMedication","entities":[{"ref":"#/results/documents/0/entities/0","role":"Dosage"},{"ref":"#/results/documents/0/entities/1","role":"Medication"}]},{"relationType":"FrequencyOfMedication","entities":[{"ref":"#/results/documents/0/entities/1","role":"Medication"},{"ref":"#/results/documents/0/entities/2","role":"Frequency"}]}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid @@ -63,11 +63,11 @@ interactions: language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 5fcdf59d-f6e4-4eb4-94e5-f5f02efd5bc7 + - 590efa50-86bf-4a7b-8cf0-307389146c40 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:52 GMT + - Wed, 06 Oct 2021 21:00:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -75,7 +75,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '62' + - '88' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_docs.yaml index bc611a8a8e8d..29b7d6fab214 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_docs.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 3e35dedd-3b2b-4612-8294-eb46db9dd30c + - 29b6cdd8-22ef-4aa3-917b-59549e282f72 date: - - Tue, 03 Aug 2021 17:30:52 GMT + - Wed, 06 Oct 2021 21:00:48 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/b50c0271-ab40-435b-8f0c-7c68a2e2535a + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/b294255f-a952-4d17-abec-35c6c0a37706 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '89' + - '163' status: code: 202 message: Accepted @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/b50c0271-ab40-435b-8f0c-7c68a2e2535a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/b294255f-a952-4d17-abec-35c6c0a37706 response: body: - string: '{"jobId":"b50c0271-ab40-435b-8f0c-7c68a2e2535a","lastUpdateDateTime":"2021-08-03T17:30:57Z","createdDateTime":"2021-08-03T17:30:52Z","expirationDateTime":"2021-08-04T17:30:52Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"b294255f-a952-4d17-abec-35c6c0a37706","lastUpdateDateTime":"2021-10-06T21:00:49Z","createdDateTime":"2021-10-06T21:00:48Z","expirationDateTime":"2021-10-07T21:00:48Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 55d7517f-6bb7-4d84-95df-d4d3aacee3a1 + - 94594dda-e17b-4a99-a27b-fcf9703b0cda content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:30:58 GMT + - Wed, 06 Oct 2021 21:00:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '44' + - '66' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_method.yaml index df082868d656..b35d6f098728 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_method.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - d7be58dd-d2b1-4f6c-9671-07e2957393d8 + - 5ed37298-d57a-4aa3-813f-76a1e3bc8b79 date: - - Tue, 03 Aug 2021 17:30:59 GMT + - Wed, 06 Oct 2021 21:00:54 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/ab4f7df9-8925-45d3-80a7-4232eb9c92c6 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/50c103ef-a550-4dcb-be35-6b4f3463dfaf strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '101' + - '166' status: code: 202 message: Accepted @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/ab4f7df9-8925-45d3-80a7-4232eb9c92c6 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/50c103ef-a550-4dcb-be35-6b4f3463dfaf response: body: - string: '{"jobId":"ab4f7df9-8925-45d3-80a7-4232eb9c92c6","lastUpdateDateTime":"2021-08-03T17:31:02Z","createdDateTime":"2021-08-03T17:30:59Z","expirationDateTime":"2021-08-04T17:30:59Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"50c103ef-a550-4dcb-be35-6b4f3463dfaf","lastUpdateDateTime":"2021-10-06T21:00:54Z","createdDateTime":"2021-10-06T21:00:54Z","expirationDateTime":"2021-10-07T21:00:54Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - dea6fe94-a9c8-427e-a47c-d2c98ac55f21 + - 4bb978bb-666f-4865-b85f-6ee09b641334 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:03 GMT + - Wed, 06 Oct 2021 21:00:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '47' + - '58' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_normalized_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_normalized_text.yaml index cb88ec6d0f97..1cfd53e63153 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_normalized_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_normalized_text.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 9429a83c-ed96-4d9c-a36b-4c0a52259308 + - c9978209-8222-4f13-864a-cb457319ddf5 date: - - Tue, 03 Aug 2021 17:31:04 GMT + - Wed, 06 Oct 2021 21:00:58 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9fa46be5-5449-4639-b559-66749c9ea053 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/eb76df63-5216-4bcd-8326-21580f351d66 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '90' + - '140' status: code: 202 message: Accepted @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9fa46be5-5449-4639-b559-66749c9ea053 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/eb76df63-5216-4bcd-8326-21580f351d66 response: body: - string: '{"jobId":"9fa46be5-5449-4639-b559-66749c9ea053","lastUpdateDateTime":"2021-08-03T17:31:07Z","createdDateTime":"2021-08-03T17:31:04Z","expirationDateTime":"2021-08-04T17:31:04Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology + string: '{"jobId":"eb76df63-5216-4bcd-8326-21580f351d66","lastUpdateDateTime":"2021-10-06T21:01:00Z","createdDateTime":"2021-10-06T21:00:59Z","expirationDateTime":"2021-10-07T21:00:59Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology Procedure","links":[{"dataSource":"UMLS","id":"C0344441"},{"dataSource":"CHV","id":"0000030964"},{"dataSource":"LNC","id":"MTHU010496"},{"dataSource":"MDR","id":"10062005"},{"dataSource":"MTH","id":"U002823"},{"dataSource":"MTHMST","id":"MT140012"},{"dataSource":"NCI","id":"C49131"},{"dataSource":"SNOMEDCT_US","id":"714797009"}]},{"offset":44,"length":3,"text":"NHL","category":"Diagnosis","confidenceScore":1.0,"name":"Lymphoma, Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[{"relationType":"ExaminationFindsCondition","entities":[{"ref":"#/results/documents/0/entities/0","role":"Examination"},{"ref":"#/results/documents/0/entities/1","role":"Condition"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - f02eb6a3-705d-4540-a112-2bb6aa2e9f6a + - a37001bc-fa58-46af-ae8f-1a0b60c033f1 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:09 GMT + - Wed, 06 Oct 2021 21:01:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '37' + - '78' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_out_of_order_ids.yaml index aead2833137c..771b370282f3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_out_of_order_ids.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 815f8be6-c59f-4e0e-9c6e-d27e8364c5d5 + - 5ab76da6-5979-4508-9332-a22bcf6dcbb9 date: - - Tue, 03 Aug 2021 17:31:11 GMT + - Wed, 06 Oct 2021 21:01:05 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/e18ed664-abb5-4ad8-81d7-5339c5ccd106 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8eb17c77-5892-4504-b483-7e342e1088b3 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '147' + - '343' status: code: 202 message: Accepted @@ -50,21 +50,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/e18ed664-abb5-4ad8-81d7-5339c5ccd106 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8eb17c77-5892-4504-b483-7e342e1088b3 response: body: - string: '{"jobId":"e18ed664-abb5-4ad8-81d7-5339c5ccd106","lastUpdateDateTime":"2021-08-03T17:31:12Z","createdDateTime":"2021-08-03T17:31:10Z","expirationDateTime":"2021-08-04T17:31:10Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"8eb17c77-5892-4504-b483-7e342e1088b3","lastUpdateDateTime":"2021-10-06T21:01:06Z","createdDateTime":"2021-10-06T21:01:05Z","expirationDateTime":"2021-10-07T21:01:05Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 55fd9745-e170-4ac7-9b81-8175f032a7ab + - 0db90c62-04bf-4de3-8df8-29363a40d0e6 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:15 GMT + - Wed, 06 Oct 2021 21:01:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +72,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '64' + - '98' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_pass_cls.yaml index 63715d9b1f6d..32fd1b22f79a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_pass_cls.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 2bf56b3f-074f-43e7-bdef-d27bb59aa99d + - 24f6f9f8-2163-45ee-88f4-69b2c0d14f8e date: - - Tue, 03 Aug 2021 17:31:17 GMT + - Wed, 06 Oct 2021 21:01:11 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/464cb2ed-696c-4d54-b291-c2f508fe097e + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/606071b6-8b65-4510-8c91-900d50b37c4e strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '166' + - '153' status: code: 202 message: Accepted @@ -48,20 +48,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/464cb2ed-696c-4d54-b291-c2f508fe097e + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/606071b6-8b65-4510-8c91-900d50b37c4e response: body: - string: '{"jobId":"464cb2ed-696c-4d54-b291-c2f508fe097e","lastUpdateDateTime":"2021-08-03T17:31:17Z","createdDateTime":"2021-08-03T17:31:17Z","expirationDateTime":"2021-08-04T17:31:17Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":5,"length":7,"text":"passing","category":"MeasurementValue","confidenceScore":0.78},{"offset":13,"length":3,"text":"cls","category":"Diagnosis","confidenceScore":1.0,"name":"Coffin-Lowry + string: '{"jobId":"606071b6-8b65-4510-8c91-900d50b37c4e","lastUpdateDateTime":"2021-10-06T21:01:11Z","createdDateTime":"2021-10-06T21:01:11Z","expirationDateTime":"2021-10-07T21:01:11Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":5,"length":7,"text":"passing","category":"MeasurementValue","confidenceScore":0.78},{"offset":13,"length":3,"text":"cls","category":"Diagnosis","confidenceScore":1.0,"name":"Coffin-Lowry syndrome","links":[{"dataSource":"UMLS","id":"C0265252"},{"dataSource":"CHV","id":"0000025867"},{"dataSource":"JABL","id":"238"},{"dataSource":"MDR","id":"10081806"},{"dataSource":"MEDCIN","id":"311935"},{"dataSource":"MSH","id":"D038921"},{"dataSource":"NCI","id":"C84643"},{"dataSource":"NCI_CELLOSAURUS","id":"C84643"},{"dataSource":"OMIM","id":"303600"},{"dataSource":"RCD","id":"Xa0Zc"},{"dataSource":"SNM","id":"D-5122"},{"dataSource":"SNMI","id":"D4-00811"},{"dataSource":"SNOMEDCT_US","id":"15182000"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 61b66a13-20e8-4d20-af64-ac48ab745021 + - b4c1c249-f993-40c0-960c-3fcf8de44276 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:22 GMT + - Wed, 06 Oct 2021 21:01:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -69,7 +69,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '44' + - '60' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_passing_only_string.yaml index 7dc32f259bfd..27a11f54ca7b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_passing_only_string.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 9a773dea-2708-41f0-8577-12c315d23e1c + - 3e406d78-8634-4fb6-be54-0e721ffbc71d date: - - Tue, 03 Aug 2021 17:31:22 GMT + - Wed, 06 Oct 2021 21:01:16 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9e7f6c16-8095-470a-a114-d36b489a74d5 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9f947551-5b2c-4e62-aae6-40b1eefd4db4 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '130' + - '250' status: code: 202 message: Accepted @@ -50,12 +50,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9e7f6c16-8095-470a-a114-d36b489a74d5 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/9f947551-5b2c-4e62-aae6-40b1eefd4db4 response: body: - string: '{"jobId":"9e7f6c16-8095-470a-a114-d36b489a74d5","lastUpdateDateTime":"2021-08-03T17:31:27Z","createdDateTime":"2021-08-03T17:31:22Z","expirationDateTime":"2021-08-04T17:31:22Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":29,"length":19,"text":"high + string: '{"jobId":"9f947551-5b2c-4e62-aae6-40b1eefd4db4","lastUpdateDateTime":"2021-10-06T21:01:17Z","createdDateTime":"2021-10-06T21:01:16Z","expirationDateTime":"2021-10-07T21:01:16Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":29,"length":19,"text":"high blood pressure","category":"SymptomOrSign","confidenceScore":1.0,"assertion":{"certainty":"negative"},"name":"Hypertensive disease","links":[{"dataSource":"UMLS","id":"C0020538"},{"dataSource":"AOD","id":"0000023317"},{"dataSource":"BI","id":"BI00001"},{"dataSource":"CCPSS","id":"1017493"},{"dataSource":"CCS","id":"7.1"},{"dataSource":"CHV","id":"0000015800"},{"dataSource":"COSTAR","id":"397"},{"dataSource":"CSP","id":"0571-5243"},{"dataSource":"CST","id":"HYPERTENS"},{"dataSource":"DXP","id":"U002034"},{"dataSource":"HPO","id":"HP:0000822"},{"dataSource":"ICD10","id":"I10-I15.9"},{"dataSource":"ICD10AM","id":"I10-I15.9"},{"dataSource":"ICD10CM","id":"I10"},{"dataSource":"ICD9CM","id":"997.91"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU035456"},{"dataSource":"ICPC2P","id":"K85004"},{"dataSource":"LCH","id":"U002317"},{"dataSource":"LCH_NW","id":"sh85063723"},{"dataSource":"LNC","id":"LA14293-7"},{"dataSource":"MDR","id":"10020772"},{"dataSource":"MEDCIN","id":"33288"},{"dataSource":"MEDLINEPLUS","id":"34"},{"dataSource":"MSH","id":"D006973"},{"dataSource":"MTH","id":"005"},{"dataSource":"MTHICD9","id":"997.91"},{"dataSource":"NANDA-I","id":"00905"},{"dataSource":"NCI","id":"C3117"},{"dataSource":"NCI_CPTAC","id":"C3117"},{"dataSource":"NCI_CTCAE","id":"E13785"},{"dataSource":"NCI_CTRP","id":"C3117"},{"dataSource":"NCI_FDA","id":"1908"},{"dataSource":"NCI_GDC","id":"C3117"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000458091"},{"dataSource":"NCI_NICHD","id":"C3117"},{"dataSource":"NOC","id":"060808"},{"dataSource":"OMIM","id":"MTHU002068"},{"dataSource":"PCDS","id":"PRB_11000.06"},{"dataSource":"PDQ","id":"CDR0000686951"},{"dataSource":"PSY","id":"23830"},{"dataSource":"RCD","id":"XE0Ub"},{"dataSource":"SNM","id":"F-70700"},{"dataSource":"SNMI","id":"D3-02000"},{"dataSource":"SNOMEDCT_US","id":"38341003"},{"dataSource":"WHO","id":"0210"}]}],"relations":[],"warnings":[]},{"id":"1","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice daily","category":"Frequency","confidenceScore":1.0}],"relations":[{"relationType":"DosageOfMedication","entities":[{"ref":"#/results/documents/1/entities/0","role":"Dosage"},{"ref":"#/results/documents/1/entities/1","role":"Medication"}]},{"relationType":"FrequencyOfMedication","entities":[{"ref":"#/results/documents/1/entities/1","role":"Medication"},{"ref":"#/results/documents/1/entities/2","role":"Frequency"}]}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid @@ -63,11 +63,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - b982cb3a-980f-497f-9360-4a89121d89ca + - 8f70e5e8-565d-435e-a34e-5ca56555c7b8 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:27 GMT + - Wed, 06 Oct 2021 21:01:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -75,7 +75,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '59' + - '86' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_payload_too_large.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_payload_too_large.yaml index 6abd20ae3a41..131b8f5dcc22 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_payload_too_large.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_payload_too_large.yaml @@ -8513,20 +8513,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Request Payload sent is too large to be processed. Limit request size to: 524288"}}}' headers: apim-request-id: - - 039876ee-ad6c-46e2-b42d-7d6f801ba628 + - f4b4c4c9-fe12-414b-b916-b659e93a529e content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:30 GMT + - Wed, 06 Oct 2021 21:01:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -8534,7 +8534,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '41' + - '22' status: code: 413 message: Payload Too Large diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_relations.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_relations.yaml index dac0b01ef13a..7b92826845a9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_relations.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_relations.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 43864fac-5bae-44be-9916-d3bdd3c0eaf7 + - d2c81693-2192-4594-9dcf-cbaae82b4a84 date: - - Tue, 03 Aug 2021 17:31:32 GMT + - Wed, 06 Oct 2021 21:01:23 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/feb8a48f-b493-48c8-9df9-9a1a54aefbfa + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/354ce5c3-e260-4205-ba98-cd7942b210d7 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '95' + - '210' status: code: 202 message: Accepted @@ -48,23 +48,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/feb8a48f-b493-48c8-9df9-9a1a54aefbfa + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/354ce5c3-e260-4205-ba98-cd7942b210d7 response: body: - string: '{"jobId":"feb8a48f-b493-48c8-9df9-9a1a54aefbfa","lastUpdateDateTime":"2021-08-03T17:31:37Z","createdDateTime":"2021-08-03T17:31:32Z","expirationDateTime":"2021-08-04T17:31:32Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":31,"length":18,"text":"Parkinsons + string: '{"jobId":"354ce5c3-e260-4205-ba98-cd7942b210d7","lastUpdateDateTime":"2021-10-06T21:01:24Z","createdDateTime":"2021-10-06T21:01:24Z","expirationDateTime":"2021-10-07T21:01:24Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":31,"length":18,"text":"Parkinsons Disease","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]},{"offset":51,"length":2,"text":"PD","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/0/entities/0","role":"FullTerm"},{"ref":"#/results/documents/0/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 0fa5086c-a8e6-4869-a06f-06751fa84bb8 + - 17aeea63-8f19-4435-9d70-3ad34fd876b6 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:37 GMT + - Wed, 06 Oct 2021 21:01:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +72,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '43' + - '88' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_show_stats_and_model_version.yaml index 978bff3d10b7..6a92a851bf45 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_show_stats_and_model_version.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - f9d0aa45-e54e-4aa7-8534-0e837f393238 + - 569af522-67ff-4031-be22-becdd0c4236d date: - - Tue, 03 Aug 2021 17:31:38 GMT + - Wed, 06 Oct 2021 21:01:29 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/db74621f-7558-4203-b6e3-adbf629656af + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/fa1686bc-5e44-458d-9096-29b291955fdb strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '165' + - '281' status: code: 202 message: Accepted @@ -50,21 +50,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/db74621f-7558-4203-b6e3-adbf629656af?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/fa1686bc-5e44-458d-9096-29b291955fdb?showStats=True response: body: - string: '{"jobId":"db74621f-7558-4203-b6e3-adbf629656af","lastUpdateDateTime":"2021-08-03T17:31:42Z","createdDateTime":"2021-08-03T17:31:38Z","expirationDateTime":"2021-08-04T17:31:38Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"fa1686bc-5e44-458d-9096-29b291955fdb","lastUpdateDateTime":"2021-10-06T21:01:30Z","createdDateTime":"2021-10-06T21:01:29Z","expirationDateTime":"2021-10-07T21:01:29Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 32cd507e-8560-47b6-b5be-ae9802b58659 + - 3b24a1a0-0351-4f83-83d3-dc72ae99219f content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:43 GMT + - Wed, 06 Oct 2021 21:01:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +72,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '63' + - '93' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_too_many_documents.yaml index 4fddcc600740..df755f01ae86 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_too_many_documents.yaml @@ -21,20 +21,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - 25b5a792-bed1-496d-bd26-315a7fd2229d + - cf9ab841-f039-4001-a556-833deb99a3d3 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:43 GMT + - Wed, 06 Oct 2021 21:01:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '4' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_user_agent.yaml index aba4d2d718d8..546b9fc84813 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_user_agent.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 2e3969b9-0d39-40d2-b6ce-c1535ccf4a02 + - cf37d2dd-c335-4479-860f-e3244bf08c84 date: - - Tue, 03 Aug 2021 17:31:45 GMT + - Wed, 06 Oct 2021 21:01:35 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/02227605-e159-4cc2-9acd-4a821aef9715 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/266cf9d5-fa6b-4faa-8a24-88e91b30d914 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '96' + - '183' status: code: 202 message: Accepted @@ -48,19 +48,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/02227605-e159-4cc2-9acd-4a821aef9715 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/266cf9d5-fa6b-4faa-8a24-88e91b30d914 response: body: - string: '{"jobId":"02227605-e159-4cc2-9acd-4a821aef9715","lastUpdateDateTime":"2021-08-03T17:31:47Z","createdDateTime":"2021-08-03T17:31:45Z","expirationDateTime":"2021-08-04T17:31:45Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"266cf9d5-fa6b-4faa-8a24-88e91b30d914","lastUpdateDateTime":"2021-10-06T21:01:36Z","createdDateTime":"2021-10-06T21:01:35Z","expirationDateTime":"2021-10-07T21:01:35Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 3d67282c-a66a-491c-9dab-134e4b37111d + - 6aba02f4-6ad2-414c-b0e3-8f3f390fe739 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:50 GMT + - Wed, 06 Oct 2021 21:01:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -68,7 +68,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '476' + - '67' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_whole_batch_language_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_whole_batch_language_hint_and_dict_input.yaml index db14109f9654..a5ded21804f5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_whole_batch_language_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_whole_batch_language_hint_and_dict_input.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - d81d65d4-93d2-4ff2-bfe5-5cf2ef6879dc + - 13adf861-bce4-44f3-8e50-8b50913a85e6 date: - - Tue, 03 Aug 2021 17:31:51 GMT + - Wed, 06 Oct 2021 21:01:41 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d7206ad3-b765-46ef-90af-d7954f19c58a + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/dcde9975-9dbd-4f73-99f2-bef128e882c4 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '210' + - '269' status: code: 202 message: Accepted @@ -50,19 +50,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d7206ad3-b765-46ef-90af-d7954f19c58a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/dcde9975-9dbd-4f73-99f2-bef128e882c4 response: body: - string: '{"jobId":"d7206ad3-b765-46ef-90af-d7954f19c58a","lastUpdateDateTime":"2021-08-03T17:31:52Z","createdDateTime":"2021-08-03T17:31:51Z","expirationDateTime":"2021-08-04T17:31:51Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"dcde9975-9dbd-4f73-99f2-bef128e882c4","lastUpdateDateTime":"2021-10-06T21:01:44Z","createdDateTime":"2021-10-06T21:01:41Z","expirationDateTime":"2021-10-07T21:01:41Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 2de05b50-a1ec-4378-80f1-238ad9f1519a + - 40aff08d-4355-46fc-90c1-52e9e73c6791 content-type: - application/json; charset=utf-8 date: - - Tue, 03 Aug 2021 17:31:57 GMT + - Wed, 06 Oct 2021 21:01:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '130' + - '100' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_bad_model_version_error.yaml index c12823751703..d6a6d9a9d33d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_bad_model_version_error.yaml @@ -10,46 +10,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 84299dfd-f6a6-4f5b-956c-e70d3fcc6d46 - date: Tue, 03 Aug 2021 17:33:05 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a247cfed-df90-48e4-b3f1-aeac03d2c49a + apim-request-id: 39adbaeb-c8b2-4aa3-8582-3fe6a9ff6794 + date: Wed, 06 Oct 2021 21:01:46 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8441fdea-9be6-4629-850a-9b1ca4e69642 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '100' + x-envoy-upstream-service-time: '168' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a247cfed-df90-48e4-b3f1-aeac03d2c49a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8441fdea-9be6-4629-850a-9b1ca4e69642 response: body: - string: '{"jobId":"a247cfed-df90-48e4-b3f1-aeac03d2c49a","lastUpdateDateTime":"2021-08-03T17:33:07Z","createdDateTime":"2021-08-03T17:33:04Z","expirationDateTime":"2021-08-04T17:33:04Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"8441fdea-9be6-4629-850a-9b1ca4e69642","lastUpdateDateTime":"2021-10-06T21:01:47Z","createdDateTime":"2021-10-06T21:01:47Z","expirationDateTime":"2021-10-07T21:01:47Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 63c9bb94-785a-49ad-8705-9a60e6d5bc1f + apim-request-id: c64fce61-2250-4e78-b7ff-56bf02c3d831 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:10 GMT + date: Wed, 06 Oct 2021 21:01:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '44' + x-envoy-upstream-service-time: '125' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/a247cfed-df90-48e4-b3f1-aeac03d2c49a + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/8441fdea-9be6-4629-850a-9b1ca4e69642 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_cancellation.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_cancellation.yaml index 528fdd633628..48d31ba5795b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_cancellation.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_cancellation.yaml @@ -15,90 +15,90 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 9f8090b1-c415-4e32-b1b9-96fd200150a4 - date: Tue, 03 Aug 2021 17:33:11 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4098ef0e-6f9c-4f74-a697-a3a9aeab6d64 + apim-request-id: 83e72a3a-f907-4ca9-92f9-7132f6cb6d41 + date: Wed, 06 Oct 2021 21:01:52 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/49db803f-adcf-4a32-b573-5a441fb96d7a strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '318' + x-envoy-upstream-service-time: '437' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4098ef0e-6f9c-4f74-a697-a3a9aeab6d64 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/49db803f-adcf-4a32-b573-5a441fb96d7a response: body: - string: '{"jobId":"4098ef0e-6f9c-4f74-a697-a3a9aeab6d64","lastUpdateDateTime":"2021-08-03T17:33:11Z","createdDateTime":"2021-08-03T17:33:10Z","expirationDateTime":"2021-08-04T17:33:10Z","status":"notStarted","errors":[]}' + string: '{"jobId":"49db803f-adcf-4a32-b573-5a441fb96d7a","lastUpdateDateTime":"2021-10-06T21:01:53Z","createdDateTime":"2021-10-06T21:01:52Z","expirationDateTime":"2021-10-07T21:01:52Z","status":"running","errors":[]}' headers: - apim-request-id: 9411e7b6-2aa3-42f0-8ee7-d19a972320d7 + apim-request-id: 541b048e-26b5-4567-81b1-0e54321054c3 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:11 GMT + date: Wed, 06 Oct 2021 21:01:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/4098ef0e-6f9c-4f74-a697-a3a9aeab6d64 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/49db803f-adcf-4a32-b573-5a441fb96d7a - request: body: null headers: Accept: - application/json, text/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4098ef0e-6f9c-4f74-a697-a3a9aeab6d64 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs/49db803f-adcf-4a32-b573-5a441fb96d7a response: body: string: '' headers: - apim-request-id: 364eb0ed-fd00-4e1e-a72b-24a0348f5e9c - date: Tue, 03 Aug 2021 17:33:11 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4098ef0e-6f9c-4f74-a697-a3a9aeab6d64 + apim-request-id: 25a4fcc1-e607-4f65-ad12-9f6c0ae4101a + date: Wed, 06 Oct 2021 21:01:53 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/49db803f-adcf-4a32-b573-5a441fb96d7a strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' + x-envoy-upstream-service-time: '49' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs/4098ef0e-6f9c-4f74-a697-a3a9aeab6d64 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs/49db803f-adcf-4a32-b573-5a441fb96d7a - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4098ef0e-6f9c-4f74-a697-a3a9aeab6d64 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/49db803f-adcf-4a32-b573-5a441fb96d7a response: body: - string: '{"jobId":"4098ef0e-6f9c-4f74-a697-a3a9aeab6d64","lastUpdateDateTime":"2021-08-03T17:33:11Z","createdDateTime":"2021-08-03T17:33:10Z","expirationDateTime":"2021-08-04T17:33:10Z","status":"cancelled","errors":[]}' + string: '{"jobId":"49db803f-adcf-4a32-b573-5a441fb96d7a","lastUpdateDateTime":"2021-10-06T21:01:53Z","createdDateTime":"2021-10-06T21:01:52Z","expirationDateTime":"2021-10-07T21:01:52Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[],"relations":[],"warnings":[]},{"id":"6","entities":[],"relations":[],"warnings":[]},{"id":"7","entities":[],"relations":[],"warnings":[]},{"id":"8","entities":[],"relations":[],"warnings":[]},{"id":"9","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 8529f28e-3b4c-4b35-93b4-eacc5e27ad2d + apim-request-id: df1360f9-54be-4858-bdb0-888c8a9c7d4c content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:16 GMT + date: Wed, 06 Oct 2021 21:01:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '288' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/4098ef0e-6f9c-4f74-a697-a3a9aeab6d64 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/49db803f-adcf-4a32-b573-5a441fb96d7a version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index 73d8040178a9..eac52cbaf749 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,44 +9,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: b4964073-b0eb-4b8d-8149-f953d8442e0c - date: Tue, 03 Aug 2021 17:33:17 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/237e292b-da59-413a-b246-01d7b761e22b + apim-request-id: 0a6bedb4-e3b8-47cb-a3e6-d51e645abfdd + date: Wed, 06 Oct 2021 21:01:58 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/2207e166-8869-43ed-bd77-0aa241b4630b strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '95' + x-envoy-upstream-service-time: '267' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/237e292b-da59-413a-b246-01d7b761e22b + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/2207e166-8869-43ed-bd77-0aa241b4630b response: body: - string: '{"jobId":"237e292b-da59-413a-b246-01d7b761e22b","lastUpdateDateTime":"2021-08-03T17:33:17Z","createdDateTime":"2021-08-03T17:33:17Z","expirationDateTime":"2021-08-04T17:33:17Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"2207e166-8869-43ed-bd77-0aa241b4630b","lastUpdateDateTime":"2021-10-06T21:01:59Z","createdDateTime":"2021-10-06T21:01:58Z","expirationDateTime":"2021-10-07T21:01:58Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 403e097e-9ceb-4421-99de-eaffe3aaae97 + apim-request-id: 9d0840cc-7fad-44d0-b919-87152d632be8 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:21 GMT + date: Wed, 06 Oct 2021 21:02:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '44' + x-envoy-upstream-service-time: '140' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/237e292b-da59-413a-b246-01d7b761e22b + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/2207e166-8869-43ed-bd77-0aa241b4630b version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_disable_service_logs.yaml index c9c2e030e2ef..dcf50f9913a3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_disable_service_logs.yaml @@ -10,44 +10,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true response: body: string: '' headers: - apim-request-id: 0e430b68-0f76-4a66-82b9-abbb4bc185b1 - date: Tue, 03 Aug 2021 17:33:22 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/1917a84a-9f08-44b6-9f5b-3cc51f1b2005 + apim-request-id: 223d4122-176d-46c6-9311-89fc2418740f + date: Wed, 06 Oct 2021 21:02:04 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/dd2d6866-1690-4194-8533-f9a24f1bcd9b strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '101' + x-envoy-upstream-service-time: '561' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/1917a84a-9f08-44b6-9f5b-3cc51f1b2005 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/dd2d6866-1690-4194-8533-f9a24f1bcd9b response: body: - string: '{"jobId":"1917a84a-9f08-44b6-9f5b-3cc51f1b2005","lastUpdateDateTime":"2021-08-03T17:33:27Z","createdDateTime":"2021-08-03T17:33:22Z","expirationDateTime":"2021-08-04T17:33:22Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"dd2d6866-1690-4194-8533-f9a24f1bcd9b","lastUpdateDateTime":"2021-10-06T21:02:05Z","createdDateTime":"2021-10-06T21:02:04Z","expirationDateTime":"2021-10-07T21:02:04Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: c6f90752-c608-4681-8f2a-30f7306ea3d8 + apim-request-id: 6e32939c-3a1a-4d2f-8b75-56c7e96f9747 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:28 GMT + date: Wed, 06 Oct 2021 21:02:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '154' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/1917a84a-9f08-44b6-9f5b-3cc51f1b2005 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/dd2d6866-1690-4194-8533-f9a24f1bcd9b version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_document_errors.yaml index ada1f75179b0..9a45ce5bc759 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_document_errors.yaml @@ -12,34 +12,34 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 6f40ade0-2fc3-4849-aad2-7539d21ae2e3 - date: Tue, 03 Aug 2021 17:33:28 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a20f3ec9-553c-42e6-a74c-568d9eafd48e + apim-request-id: 5aa9d41c-1e0a-440f-abad-62818fc1a2e8 + date: Wed, 06 Oct 2021 21:02:10 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/fc017c6f-ec2c-4d68-be54-fd3b34dfceaf strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '121' + x-envoy-upstream-service-time: '380' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a20f3ec9-553c-42e6-a74c-568d9eafd48e + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/fc017c6f-ec2c-4d68-be54-fd3b34dfceaf response: body: - string: '{"jobId":"a20f3ec9-553c-42e6-a74c-568d9eafd48e","lastUpdateDateTime":"2021-08-03T17:33:32Z","createdDateTime":"2021-08-03T17:33:28Z","expirationDateTime":"2021-08-04T17:33:28Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"fc017c6f-ec2c-4d68-be54-fd3b34dfceaf","lastUpdateDateTime":"2021-10-06T21:02:11Z","createdDateTime":"2021-10-06T21:02:10Z","expirationDateTime":"2021-10-07T21:02:10Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid @@ -49,15 +49,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 06de25ee-705f-4d9d-9eac-1f01d3829b4d + apim-request-id: 10d73066-ef26-4e95-98b9-53f1b129eac9 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:33 GMT + date: Wed, 06 Oct 2021 21:02:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' + x-envoy-upstream-service-time: '69' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/a20f3ec9-553c-42e6-a74c-568d9eafd48e + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/fc017c6f-ec2c-4d68-be54-fd3b34dfceaf version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_duplicate_ids_error.yaml index 40587785db67..50c71b53753b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: 800387d7-4261-4a33-a239-5581d2b4effe + apim-request-id: 2c729d08-852e-4e2d-bfe0-c2ec514dff73 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:34 GMT + date: Wed, 06 Oct 2021 21:02:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '6' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_explicit_set_string_index_type.yaml index 0c11b963cfec..ccd5f4f4c9ac 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_explicit_set_string_index_type.yaml @@ -9,44 +9,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=TextElements_v8 response: body: string: '' headers: - apim-request-id: 6ea2e2ac-5b2f-4ae6-9ece-48be02904935 - date: Tue, 03 Aug 2021 17:33:34 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/736315d8-cb86-48f1-a82c-0d7bd02839b9 + apim-request-id: ced7bbec-28a2-4338-8e41-5ba4d1bb77f0 + date: Wed, 06 Oct 2021 21:02:16 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/72095637-188c-44b2-9354-88bcacdf9c5b strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '114' + x-envoy-upstream-service-time: '340' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=TextElements_v8 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=TextElements_v8 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/736315d8-cb86-48f1-a82c-0d7bd02839b9 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/72095637-188c-44b2-9354-88bcacdf9c5b response: body: - string: '{"jobId":"736315d8-cb86-48f1-a82c-0d7bd02839b9","lastUpdateDateTime":"2021-08-03T17:33:37Z","createdDateTime":"2021-08-03T17:33:34Z","expirationDateTime":"2021-08-04T17:33:34Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"72095637-188c-44b2-9354-88bcacdf9c5b","lastUpdateDateTime":"2021-10-06T21:02:17Z","createdDateTime":"2021-10-06T21:02:16Z","expirationDateTime":"2021-10-07T21:02:16Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: ea64f001-0871-4517-80d5-141511e966df + apim-request-id: 846030f1-c7bd-44b4-8c1b-ccba5bde5add content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:40 GMT + date: Wed, 06 Oct 2021 21:02:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '57' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/736315d8-cb86-48f1-a82c-0d7bd02839b9 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/72095637-188c-44b2-9354-88bcacdf9c5b version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_assertion.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_assertion.yaml index a89f9c321b92..6b92f51d1120 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_assertion.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_assertion.yaml @@ -11,45 +11,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 0371e3fa-d0bb-419b-b4db-0fadcd1b9263 - date: Tue, 03 Aug 2021 17:33:40 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/3d495714-8233-4ad6-aa38-218256b05f82 + apim-request-id: 1c670973-e107-466d-a7fa-3e97940d3ed3 + date: Wed, 06 Oct 2021 21:02:21 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/bc7d9aeb-5adf-4813-9106-db5b578b5695 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '172' + x-envoy-upstream-service-time: '173' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/3d495714-8233-4ad6-aa38-218256b05f82 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/bc7d9aeb-5adf-4813-9106-db5b578b5695 response: body: - string: '{"jobId":"3d495714-8233-4ad6-aa38-218256b05f82","lastUpdateDateTime":"2021-08-03T17:33:42Z","createdDateTime":"2021-08-03T17:33:40Z","expirationDateTime":"2021-08-04T17:33:40Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother + string: '{"jobId":"bc7d9aeb-5adf-4813-9106-db5b578b5695","lastUpdateDateTime":"2021-10-06T21:02:22Z","createdDateTime":"2021-10-06T21:02:22Z","expirationDateTime":"2021-10-07T21:02:22Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.9,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"FamilyRelation","confidenceScore":1.0,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: ec5429da-1845-4cc9-b9b5-66d7aa179d6c + apim-request-id: be5eb31a-22db-4c6f-b330-a9d6229e5e43 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:46 GMT + date: Wed, 06 Oct 2021 21:02:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '67' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/3d495714-8233-4ad6-aa38-218256b05f82 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/bc7d9aeb-5adf-4813-9106-db5b578b5695 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_continuation_token.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_continuation_token.yaml new file mode 100644 index 000000000000..869ffc97d56f --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_continuation_token.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: '{"documents": [{"id": "1", "text": "Baby not likely to have Meningitis. + In case of fever in the mother, consider Penicillin for the baby too.", "language": + "en"}, {"id": "2", "text": "patients must have histologically confirmed NHL", + "language": "en"}, {"id": "3", "text": "", "language": "en"}, {"id": "4", "text": + "The patient was diagnosed with Parkinsons Disease (PD)", "language": "en"}]}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '393' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint + response: + body: + string: '' + headers: + apim-request-id: e4937493-c255-4e5e-8ee4-2d6e63777d9f + date: Mon, 25 Oct 2021 19:22:45 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/53509204-49cd-4066-8864-6469dd11c982 + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '235' + status: + code: 202 + message: Accepted + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/53509204-49cd-4066-8864-6469dd11c982?showStats=True + response: + body: + string: '{"jobId":"53509204-49cd-4066-8864-6469dd11c982","lastUpdateDateTime":"2021-10-25T19:22:47Z","createdDateTime":"2021-10-25T19:22:45Z","expirationDateTime":"2021-10-26T19:22:45Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother + (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.9,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"FamilyRelation","confidenceScore":1.0,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":47,"transactionsCount":1},"entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology + Procedure","links":[{"dataSource":"UMLS","id":"C0344441"},{"dataSource":"CHV","id":"0000030964"},{"dataSource":"LNC","id":"MTHU010496"},{"dataSource":"MDR","id":"10062005"},{"dataSource":"MTH","id":"U002823"},{"dataSource":"MTHMST","id":"MT140012"},{"dataSource":"NCI","id":"C49131"},{"dataSource":"SNOMEDCT_US","id":"714797009"}]},{"offset":44,"length":3,"text":"NHL","category":"Diagnosis","confidenceScore":1.0,"name":"Lymphoma, + Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[{"relationType":"ExaminationFindsCondition","entities":[{"ref":"#/results/documents/1/entities/0","role":"Examination"},{"ref":"#/results/documents/1/entities/1","role":"Condition"}]}],"warnings":[]},{"id":"4","statistics":{"charactersCount":54,"transactionsCount":1},"entities":[{"offset":31,"length":18,"text":"Parkinsons + Disease","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]},{"offset":51,"length":2,"text":"PD","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson + Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/2/entities/0","role":"FullTerm"},{"ref":"#/results/documents/2/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-05-15"}}' + headers: + apim-request-id: 2d69e095-4583-4bf7-aa9f-9281ae0bdb0e + content-type: application/json; charset=utf-8 + date: Mon, 25 Oct 2021 19:22:50 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '129' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/53509204-49cd-4066-8864-6469dd11c982?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/53509204-49cd-4066-8864-6469dd11c982?showStats=True + response: + body: + string: '{"jobId":"53509204-49cd-4066-8864-6469dd11c982","lastUpdateDateTime":"2021-10-25T19:22:47Z","createdDateTime":"2021-10-25T19:22:45Z","expirationDateTime":"2021-10-26T19:22:45Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother + (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.9,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"FamilyRelation","confidenceScore":1.0,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":47,"transactionsCount":1},"entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology + Procedure","links":[{"dataSource":"UMLS","id":"C0344441"},{"dataSource":"CHV","id":"0000030964"},{"dataSource":"LNC","id":"MTHU010496"},{"dataSource":"MDR","id":"10062005"},{"dataSource":"MTH","id":"U002823"},{"dataSource":"MTHMST","id":"MT140012"},{"dataSource":"NCI","id":"C49131"},{"dataSource":"SNOMEDCT_US","id":"714797009"}]},{"offset":44,"length":3,"text":"NHL","category":"Diagnosis","confidenceScore":1.0,"name":"Lymphoma, + Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[{"relationType":"ExaminationFindsCondition","entities":[{"ref":"#/results/documents/1/entities/0","role":"Examination"},{"ref":"#/results/documents/1/entities/1","role":"Condition"}]}],"warnings":[]},{"id":"4","statistics":{"charactersCount":54,"transactionsCount":1},"entities":[{"offset":31,"length":18,"text":"Parkinsons + Disease","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]},{"offset":51,"length":2,"text":"PD","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson + Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/2/entities/0","role":"FullTerm"},{"ref":"#/results/documents/2/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + document in request.","innererror":{"code":"InvalidDocument","message":"Document + text is empty."}}}],"modelVersion":"2021-05-15"}}' + headers: + apim-request-id: d68dfa45-1581-4f85-b80c-551681ff1646 + content-type: application/json; charset=utf-8 + date: Mon, 25 Oct 2021 19:22:55 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '115' + status: + code: 200 + message: OK + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/53509204-49cd-4066-8864-6469dd11c982?showStats=True +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_input_with_some_errors.yaml index 7cc52b1cf8b1..8d4a958390d5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_input_with_some_errors.yaml @@ -12,49 +12,49 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: b879ab7a-a683-4b17-8a57-e115c7cc19b7 - date: Tue, 03 Aug 2021 17:33:46 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/de5f6dd9-2f68-4181-89e6-1809d9fe14ba + apim-request-id: 07dfe726-4d0f-4f31-b795-272d53deadf0 + date: Wed, 06 Oct 2021 21:02:26 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/0ae45d30-aa33-4a9c-a2dc-6258db3e0fcc strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '127' + x-envoy-upstream-service-time: '229' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/de5f6dd9-2f68-4181-89e6-1809d9fe14ba + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/0ae45d30-aa33-4a9c-a2dc-6258db3e0fcc response: body: - string: '{"jobId":"de5f6dd9-2f68-4181-89e6-1809d9fe14ba","lastUpdateDateTime":"2021-08-03T17:33:47Z","createdDateTime":"2021-08-03T17:33:46Z","expirationDateTime":"2021-08-04T17:33:46Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"3","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice + string: '{"jobId":"0ae45d30-aa33-4a9c-a2dc-6258db3e0fcc","lastUpdateDateTime":"2021-10-06T21:02:28Z","createdDateTime":"2021-10-06T21:02:27Z","expirationDateTime":"2021-10-07T21:02:27Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"3","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice daily","category":"Frequency","confidenceScore":1.0}],"relations":[{"relationType":"DosageOfMedication","entities":[{"ref":"#/results/documents/0/entities/0","role":"Dosage"},{"ref":"#/results/documents/0/entities/1","role":"Medication"}]},{"relationType":"FrequencyOfMedication","entities":[{"ref":"#/results/documents/0/entities/1","role":"Medication"},{"ref":"#/results/documents/0/entities/2","role":"Frequency"}]}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 77742f78-4fcf-4354-adbb-68214fdb4956 + apim-request-id: c796bb31-064c-4ad3-854d-7849598ce2dd content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:51 GMT + date: Wed, 06 Oct 2021 21:02:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '66' + x-envoy-upstream-service-time: '123' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/de5f6dd9-2f68-4181-89e6-1809d9fe14ba + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/0ae45d30-aa33-4a9c-a2dc-6258db3e0fcc version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_docs.yaml index 569f3b650b05..7c0f146c8d1f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_docs.yaml @@ -10,46 +10,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 40f53957-10ac-45a9-876e-61d16d99f7cb - date: Tue, 03 Aug 2021 17:33:52 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d6f7adad-79c5-40a6-a95b-c9840072dd53 + apim-request-id: fd98224a-d051-45c0-82ad-2390a07006af + date: Wed, 06 Oct 2021 21:02:32 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8056f80a-bdad-41c9-b072-590ae86f94b9 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '120' + x-envoy-upstream-service-time: '215' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d6f7adad-79c5-40a6-a95b-c9840072dd53 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/8056f80a-bdad-41c9-b072-590ae86f94b9 response: body: - string: '{"jobId":"d6f7adad-79c5-40a6-a95b-c9840072dd53","lastUpdateDateTime":"2021-08-03T17:33:57Z","createdDateTime":"2021-08-03T17:33:52Z","expirationDateTime":"2021-08-04T17:33:52Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"8056f80a-bdad-41c9-b072-590ae86f94b9","lastUpdateDateTime":"2021-10-06T21:02:33Z","createdDateTime":"2021-10-06T21:02:33Z","expirationDateTime":"2021-10-07T21:02:33Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 0b5a4c59-79f9-460a-b4dd-be9f43881545 + apim-request-id: 482c6dd9-80bf-4494-825d-b647a10c8752 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:33:57 GMT + date: Wed, 06 Oct 2021 21:02:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '44' + x-envoy-upstream-service-time: '80' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/d6f7adad-79c5-40a6-a95b-c9840072dd53 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/8056f80a-bdad-41c9-b072-590ae86f94b9 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_method.yaml index 6fba19bac4e2..3422f2c70746 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_method.yaml @@ -10,46 +10,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 49d29e0e-5dd9-40ea-a0a1-02af3a3eaee5 - date: Tue, 03 Aug 2021 17:33:58 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4f47b172-7e42-4a94-a674-5b2947ee79df + apim-request-id: 96d5a808-5c2b-47ae-b3a7-c5c443381dc2 + date: Wed, 06 Oct 2021 21:02:38 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/613f0af7-0a4e-41be-ba6e-313467b2ff0d strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '96' + x-envoy-upstream-service-time: '166' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4f47b172-7e42-4a94-a674-5b2947ee79df + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/613f0af7-0a4e-41be-ba6e-313467b2ff0d response: body: - string: '{"jobId":"4f47b172-7e42-4a94-a674-5b2947ee79df","lastUpdateDateTime":"2021-08-03T17:34:02Z","createdDateTime":"2021-08-03T17:33:58Z","expirationDateTime":"2021-08-04T17:33:58Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"613f0af7-0a4e-41be-ba6e-313467b2ff0d","lastUpdateDateTime":"2021-10-06T21:02:39Z","createdDateTime":"2021-10-06T21:02:38Z","expirationDateTime":"2021-10-07T21:02:38Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: e2d7fc05-cda3-47b1-951a-7ec1a3636da9 + apim-request-id: d7c04443-0024-4394-93b1-bf424aa593e7 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:03 GMT + date: Wed, 06 Oct 2021 21:02:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '68' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/4f47b172-7e42-4a94-a674-5b2947ee79df + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/613f0af7-0a4e-41be-ba6e-313467b2ff0d version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_normalized_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_normalized_text.yaml index 2b24467405af..a69fb0458336 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_normalized_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_normalized_text.yaml @@ -10,46 +10,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: c631521d-568d-4ddf-a6c8-42daaaf16454 - date: Tue, 03 Aug 2021 17:34:03 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/1375f236-d5cb-4868-9a49-142d19b119fd + apim-request-id: ba3b3943-136f-4e8c-9297-edc93f06a67c + date: Wed, 06 Oct 2021 21:02:44 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/1f8029d5-b77f-4ae6-8f2b-79b743f23015 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '201' + x-envoy-upstream-service-time: '173' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/1375f236-d5cb-4868-9a49-142d19b119fd + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/1f8029d5-b77f-4ae6-8f2b-79b743f23015 response: body: - string: '{"jobId":"1375f236-d5cb-4868-9a49-142d19b119fd","lastUpdateDateTime":"2021-08-03T17:34:07Z","createdDateTime":"2021-08-03T17:34:04Z","expirationDateTime":"2021-08-04T17:34:04Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology + string: '{"jobId":"1f8029d5-b77f-4ae6-8f2b-79b743f23015","lastUpdateDateTime":"2021-10-06T21:02:44Z","createdDateTime":"2021-10-06T21:02:44Z","expirationDateTime":"2021-10-07T21:02:44Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology Procedure","links":[{"dataSource":"UMLS","id":"C0344441"},{"dataSource":"CHV","id":"0000030964"},{"dataSource":"LNC","id":"MTHU010496"},{"dataSource":"MDR","id":"10062005"},{"dataSource":"MTH","id":"U002823"},{"dataSource":"MTHMST","id":"MT140012"},{"dataSource":"NCI","id":"C49131"},{"dataSource":"SNOMEDCT_US","id":"714797009"}]},{"offset":44,"length":3,"text":"NHL","category":"Diagnosis","confidenceScore":1.0,"name":"Lymphoma, Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[{"relationType":"ExaminationFindsCondition","entities":[{"ref":"#/results/documents/0/entities/0","role":"Examination"},{"ref":"#/results/documents/0/entities/1","role":"Condition"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 97381180-04c5-4449-97a0-b62e87535263 + apim-request-id: 2708bb8d-2ee6-441c-b43f-223cf5fcaa73 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:09 GMT + date: Wed, 06 Oct 2021 21:02:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '139' + x-envoy-upstream-service-time: '108' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/1375f236-d5cb-4868-9a49-142d19b119fd + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/1f8029d5-b77f-4ae6-8f2b-79b743f23015 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_out_of_order_ids.yaml index 09c2699d3978..032c3985deb1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_out_of_order_ids.yaml @@ -12,46 +12,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: cd04b90a-9ec4-4aaa-8c21-54f0ac5b0487 - date: Tue, 03 Aug 2021 17:34:10 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d7c091f9-592d-47cc-9965-5083eb221e7b + apim-request-id: 7678d6a2-f6ac-40b3-9334-a941e0345ec5 + date: Wed, 06 Oct 2021 21:02:49 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/c47de496-3d98-460a-a397-c595f5291548 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '154' + x-envoy-upstream-service-time: '238' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d7c091f9-592d-47cc-9965-5083eb221e7b + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/c47de496-3d98-460a-a397-c595f5291548 response: body: - string: '{"jobId":"d7c091f9-592d-47cc-9965-5083eb221e7b","lastUpdateDateTime":"2021-08-03T17:34:12Z","createdDateTime":"2021-08-03T17:34:10Z","expirationDateTime":"2021-08-04T17:34:10Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"c47de496-3d98-460a-a397-c595f5291548","lastUpdateDateTime":"2021-10-06T21:02:51Z","createdDateTime":"2021-10-06T21:02:49Z","expirationDateTime":"2021-10-07T21:02:49Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 549ad899-81d9-4c18-88f3-d310f2980928 + apim-request-id: f132ae6c-5f5f-40e6-b85b-765c2a7cd5ce content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:15 GMT + date: Wed, 06 Oct 2021 21:02:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '68' + x-envoy-upstream-service-time: '124' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/d7c091f9-592d-47cc-9965-5083eb221e7b + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/c47de496-3d98-460a-a397-c595f5291548 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_pass_cls.yaml index 100b85c29272..e2936318f32e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_pass_cls.yaml @@ -10,45 +10,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 3e6e625c-7004-4364-9d8e-17d8b4690714 - date: Tue, 03 Aug 2021 17:34:16 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/b04d0571-a37d-4153-a9db-4a386fa8b535 + apim-request-id: e384fc8c-993b-47e9-8ead-0b7e8f1a3450 + date: Wed, 06 Oct 2021 21:02:55 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4ef38851-0eea-4cd0-8055-97bd23d431f6 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '107' + x-envoy-upstream-service-time: '177' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/b04d0571-a37d-4153-a9db-4a386fa8b535 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/4ef38851-0eea-4cd0-8055-97bd23d431f6 response: body: - string: '{"jobId":"b04d0571-a37d-4153-a9db-4a386fa8b535","lastUpdateDateTime":"2021-08-03T17:34:17Z","createdDateTime":"2021-08-03T17:34:16Z","expirationDateTime":"2021-08-04T17:34:16Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":5,"length":7,"text":"passing","category":"MeasurementValue","confidenceScore":0.78},{"offset":13,"length":3,"text":"cls","category":"Diagnosis","confidenceScore":1.0,"name":"Coffin-Lowry + string: '{"jobId":"4ef38851-0eea-4cd0-8055-97bd23d431f6","lastUpdateDateTime":"2021-10-06T21:02:56Z","createdDateTime":"2021-10-06T21:02:55Z","expirationDateTime":"2021-10-07T21:02:55Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":5,"length":7,"text":"passing","category":"MeasurementValue","confidenceScore":0.78},{"offset":13,"length":3,"text":"cls","category":"Diagnosis","confidenceScore":1.0,"name":"Coffin-Lowry syndrome","links":[{"dataSource":"UMLS","id":"C0265252"},{"dataSource":"CHV","id":"0000025867"},{"dataSource":"JABL","id":"238"},{"dataSource":"MDR","id":"10081806"},{"dataSource":"MEDCIN","id":"311935"},{"dataSource":"MSH","id":"D038921"},{"dataSource":"NCI","id":"C84643"},{"dataSource":"NCI_CELLOSAURUS","id":"C84643"},{"dataSource":"OMIM","id":"303600"},{"dataSource":"RCD","id":"Xa0Zc"},{"dataSource":"SNM","id":"D-5122"},{"dataSource":"SNMI","id":"D4-00811"},{"dataSource":"SNOMEDCT_US","id":"15182000"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 6fcd3e60-7d45-4abc-bc23-e876d4e53353 + apim-request-id: 991a2288-66f0-4612-a5da-f8927cf74394 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:21 GMT + date: Wed, 06 Oct 2021 21:03:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '71' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/b04d0571-a37d-4153-a9db-4a386fa8b535 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/4ef38851-0eea-4cd0-8055-97bd23d431f6 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_passing_only_string.yaml index 148a309da4fb..11ade9bb673a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_passing_only_string.yaml @@ -12,49 +12,49 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: dd8ec9a1-d7ea-4437-aa52-ff70360d2dc9 - date: Tue, 03 Aug 2021 17:34:21 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a9c83aca-b2a0-41ab-94e0-99708f91993a + apim-request-id: e26e886f-f6b2-4d8f-af4b-ce62cf396ba5 + date: Wed, 06 Oct 2021 21:03:01 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/bcdf7930-1c05-44df-8bd6-71b1ea659864 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '125' + x-envoy-upstream-service-time: '218' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/a9c83aca-b2a0-41ab-94e0-99708f91993a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/bcdf7930-1c05-44df-8bd6-71b1ea659864 response: body: - string: '{"jobId":"a9c83aca-b2a0-41ab-94e0-99708f91993a","lastUpdateDateTime":"2021-08-03T17:34:22Z","createdDateTime":"2021-08-03T17:34:21Z","expirationDateTime":"2021-08-04T17:34:21Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":29,"length":19,"text":"high + string: '{"jobId":"bcdf7930-1c05-44df-8bd6-71b1ea659864","lastUpdateDateTime":"2021-10-06T21:03:02Z","createdDateTime":"2021-10-06T21:03:01Z","expirationDateTime":"2021-10-07T21:03:01Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":29,"length":19,"text":"high blood pressure","category":"SymptomOrSign","confidenceScore":1.0,"assertion":{"certainty":"negative"},"name":"Hypertensive disease","links":[{"dataSource":"UMLS","id":"C0020538"},{"dataSource":"AOD","id":"0000023317"},{"dataSource":"BI","id":"BI00001"},{"dataSource":"CCPSS","id":"1017493"},{"dataSource":"CCS","id":"7.1"},{"dataSource":"CHV","id":"0000015800"},{"dataSource":"COSTAR","id":"397"},{"dataSource":"CSP","id":"0571-5243"},{"dataSource":"CST","id":"HYPERTENS"},{"dataSource":"DXP","id":"U002034"},{"dataSource":"HPO","id":"HP:0000822"},{"dataSource":"ICD10","id":"I10-I15.9"},{"dataSource":"ICD10AM","id":"I10-I15.9"},{"dataSource":"ICD10CM","id":"I10"},{"dataSource":"ICD9CM","id":"997.91"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU035456"},{"dataSource":"ICPC2P","id":"K85004"},{"dataSource":"LCH","id":"U002317"},{"dataSource":"LCH_NW","id":"sh85063723"},{"dataSource":"LNC","id":"LA14293-7"},{"dataSource":"MDR","id":"10020772"},{"dataSource":"MEDCIN","id":"33288"},{"dataSource":"MEDLINEPLUS","id":"34"},{"dataSource":"MSH","id":"D006973"},{"dataSource":"MTH","id":"005"},{"dataSource":"MTHICD9","id":"997.91"},{"dataSource":"NANDA-I","id":"00905"},{"dataSource":"NCI","id":"C3117"},{"dataSource":"NCI_CPTAC","id":"C3117"},{"dataSource":"NCI_CTCAE","id":"E13785"},{"dataSource":"NCI_CTRP","id":"C3117"},{"dataSource":"NCI_FDA","id":"1908"},{"dataSource":"NCI_GDC","id":"C3117"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000458091"},{"dataSource":"NCI_NICHD","id":"C3117"},{"dataSource":"NOC","id":"060808"},{"dataSource":"OMIM","id":"MTHU002068"},{"dataSource":"PCDS","id":"PRB_11000.06"},{"dataSource":"PDQ","id":"CDR0000686951"},{"dataSource":"PSY","id":"23830"},{"dataSource":"RCD","id":"XE0Ub"},{"dataSource":"SNM","id":"F-70700"},{"dataSource":"SNMI","id":"D3-02000"},{"dataSource":"SNOMEDCT_US","id":"38341003"},{"dataSource":"WHO","id":"0210"}]}],"relations":[],"warnings":[]},{"id":"1","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice daily","category":"Frequency","confidenceScore":1.0}],"relations":[{"relationType":"DosageOfMedication","entities":[{"ref":"#/results/documents/1/entities/0","role":"Dosage"},{"ref":"#/results/documents/1/entities/1","role":"Medication"}]},{"relationType":"FrequencyOfMedication","entities":[{"ref":"#/results/documents/1/entities/1","role":"Medication"},{"ref":"#/results/documents/1/entities/2","role":"Frequency"}]}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 6581fece-c8c1-4e6e-a159-8edb3a263ad7 + apim-request-id: 17270312-617a-4c9e-8c1b-c1bb2c3a024a content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:26 GMT + date: Wed, 06 Oct 2021 21:03:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '63' + x-envoy-upstream-service-time: '96' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/a9c83aca-b2a0-41ab-94e0-99708f91993a + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/bcdf7930-1c05-44df-8bd6-71b1ea659864 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_payload_too_large.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_payload_too_large.yaml index 9e7301c98dbb..73b9d043b4e7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_payload_too_large.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_payload_too_large.yaml @@ -8509,23 +8509,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Request Payload sent is too large to be processed. Limit request size to: 524288"}}}' headers: - apim-request-id: e2007a7d-b5c0-4d90-8df5-4eaf9e68c812 + apim-request-id: a67470ed-2188-46a6-b067-7c22c1423e38 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:29 GMT + date: Wed, 06 Oct 2021 21:03:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '26' status: code: 413 message: Payload Too Large - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_relations.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_relations.yaml index 06b9565c204f..2437cc2464c5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_relations.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_relations.yaml @@ -10,48 +10,48 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 5c28a03d-4266-4540-b6f1-4f494621c943 - date: Tue, 03 Aug 2021 17:34:31 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/5a87aafb-2e31-40d7-a528-6f1180f6ab88 + apim-request-id: 1b6bbb4c-4d5f-4953-9698-6fe6a6134bce + date: Wed, 06 Oct 2021 21:03:08 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d0c9cfaf-88e0-4d9c-875f-cc3645232457 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '92' + x-envoy-upstream-service-time: '194' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/5a87aafb-2e31-40d7-a528-6f1180f6ab88 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d0c9cfaf-88e0-4d9c-875f-cc3645232457 response: body: - string: '{"jobId":"5a87aafb-2e31-40d7-a528-6f1180f6ab88","lastUpdateDateTime":"2021-08-03T17:34:32Z","createdDateTime":"2021-08-03T17:34:31Z","expirationDateTime":"2021-08-04T17:34:31Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":31,"length":18,"text":"Parkinsons + string: '{"jobId":"d0c9cfaf-88e0-4d9c-875f-cc3645232457","lastUpdateDateTime":"2021-10-06T21:03:09Z","createdDateTime":"2021-10-06T21:03:08Z","expirationDateTime":"2021-10-07T21:03:08Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":31,"length":18,"text":"Parkinsons Disease","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]},{"offset":51,"length":2,"text":"PD","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/0/entities/0","role":"FullTerm"},{"ref":"#/results/documents/0/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: a043f084-c491-46e4-b282-0edf6119079a + apim-request-id: c2f6a1e3-cfcf-49b0-9378-49a1e13f1418 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:36 GMT + date: Wed, 06 Oct 2021 21:03:13 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '71' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/5a87aafb-2e31-40d7-a528-6f1180f6ab88 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/d0c9cfaf-88e0-4d9c-875f-cc3645232457 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_show_stats_and_model_version.yaml index 2b77f8fde0b7..6d161c18b270 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_show_stats_and_model_version.yaml @@ -12,46 +12,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 8e43c4cf-ec9b-4d91-888d-56d1c729f07e - date: Tue, 03 Aug 2021 17:34:37 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/196e0284-c276-4458-a15f-a5b79a416daf + apim-request-id: 701018e3-17db-4400-9e13-f6cbea2a070d + date: Wed, 06 Oct 2021 21:03:13 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/1d8db3b7-d41a-47db-89d9-a26e8532dbc7 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '160' + x-envoy-upstream-service-time: '230' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/196e0284-c276-4458-a15f-a5b79a416daf?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/1d8db3b7-d41a-47db-89d9-a26e8532dbc7?showStats=True response: body: - string: '{"jobId":"196e0284-c276-4458-a15f-a5b79a416daf","lastUpdateDateTime":"2021-08-03T17:34:37Z","createdDateTime":"2021-08-03T17:34:37Z","expirationDateTime":"2021-08-04T17:34:37Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"1d8db3b7-d41a-47db-89d9-a26e8532dbc7","lastUpdateDateTime":"2021-10-06T21:03:14Z","createdDateTime":"2021-10-06T21:03:13Z","expirationDateTime":"2021-10-07T21:03:13Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 7d7a546b-746f-49d8-a91f-c464b6f0cb9c + apim-request-id: 7098373c-6b8f-4f3e-842b-a9ce87aceadb content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:41 GMT + date: Wed, 06 Oct 2021 21:03:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' + x-envoy-upstream-service-time: '247' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/196e0284-c276-4458-a15f-a5b79a416daf?showStats=True + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/1d8db3b7-d41a-47db-89d9-a26e8532dbc7?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_too_many_documents.yaml index a0d636b28886..4d26c529a276 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_too_many_documents.yaml @@ -759,23 +759,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 9e8a570a-e036-4ff7-8044-8d378c8a576b + apim-request-id: b183000d-ac02-433c-80a1-bc42d87443f9 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:43 GMT + date: Wed, 06 Oct 2021 21:03:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '9' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_user_agent.yaml index fb40020985b4..27485ee8bb4c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_user_agent.yaml @@ -10,44 +10,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: aa142638-505d-49ff-81b5-2a21f69e466a - date: Tue, 03 Aug 2021 17:34:43 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/91352098-18a5-414d-b645-65b732d7398b + apim-request-id: 21362260-f9e5-4bb2-a5d2-5b2d2a8ad678 + date: Wed, 06 Oct 2021 21:03:20 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/41213479-1aa9-42dc-a51c-cec82b8f42bf strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '103' + x-envoy-upstream-service-time: '159' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/91352098-18a5-414d-b645-65b732d7398b + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/41213479-1aa9-42dc-a51c-cec82b8f42bf response: body: - string: '{"jobId":"91352098-18a5-414d-b645-65b732d7398b","lastUpdateDateTime":"2021-08-03T17:34:47Z","createdDateTime":"2021-08-03T17:34:43Z","expirationDateTime":"2021-08-04T17:34:43Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"41213479-1aa9-42dc-a51c-cec82b8f42bf","lastUpdateDateTime":"2021-10-06T21:03:20Z","createdDateTime":"2021-10-06T21:03:20Z","expirationDateTime":"2021-10-07T21:03:20Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 72da4f32-7fc5-445f-bcda-7d809b51a9e9 + apim-request-id: 865870e4-7ddb-49b9-806f-4f697d59dd75 content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:49 GMT + date: Wed, 06 Oct 2021 21:03:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '45' + x-envoy-upstream-service-time: '81' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/91352098-18a5-414d-b645-65b732d7398b + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/41213479-1aa9-42dc-a51c-cec82b8f42bf version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_whole_batch_language_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_whole_batch_language_hint_and_dict_input.yaml index da14bd835722..42f0f29408f2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_whole_batch_language_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_whole_batch_language_hint_and_dict_input.yaml @@ -12,44 +12,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: d7ba666e-af43-431b-a8c1-c945eadded26 - date: Tue, 03 Aug 2021 17:34:49 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/aac0a7da-2c41-4665-a137-dc91345f3d5b + apim-request-id: 5f32ef7c-fa1b-48d5-aba8-f5e8e384e39c + date: Wed, 06 Oct 2021 21:03:25 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d8506888-791b-4e23-983b-85775cd7f2a4 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '129' + x-envoy-upstream-service-time: '176' status: code: 202 message: Accepted - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/aac0a7da-2c41-4665-a137-dc91345f3d5b + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/health/jobs/d8506888-791b-4e23-983b-85775cd7f2a4 response: body: - string: '{"jobId":"aac0a7da-2c41-4665-a137-dc91345f3d5b","lastUpdateDateTime":"2021-08-03T17:34:52Z","createdDateTime":"2021-08-03T17:34:49Z","expirationDateTime":"2021-08-04T17:34:49Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' + string: '{"jobId":"d8506888-791b-4e23-983b-85775cd7f2a4","lastUpdateDateTime":"2021-10-06T21:03:26Z","createdDateTime":"2021-10-06T21:03:25Z","expirationDateTime":"2021-10-07T21:03:25Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: b8b55429-378b-4adb-80bd-224350566052 + apim-request-id: 3b08f5d5-b6f8-459e-b355-95bd0c8af05c content-type: application/json; charset=utf-8 - date: Tue, 03 Aug 2021 17:34:55 GMT + date: Wed, 06 Oct 2021 21:03:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '61' + x-envoy-upstream-service-time: '85' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/aac0a7da-2c41-4665-a137-dc91345f3d5b + url: https://javatextanalyticstestresources.cognitiveservices.azure.com/text/analytics/v3.2-preview.1/entities/health/jobs/d8506888-791b-4e23-983b-85775cd7f2a4 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_dict.yaml index d8d68696e8f9..d1ea004bf2c9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_dict.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -30,13 +30,13 @@ interactions: recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - d70919de-26fa-4240-9b99-8a0ba418c47c + - d84cde76-6e31-4aad-a2f7-2bd0e5696bdb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:14:26 GMT + - Wed, 06 Oct 2021 21:03:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11602' + - '103' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_text_document_input.yaml index a557cfbd7b5b..32917841ef15 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_text_document_input.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -30,13 +30,13 @@ interactions: recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 1dfc2996-6605-4a86-ba44-4a7e00445068 + - 69764653-38cb-46de-968d-bbe2b50827a4 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:14:39 GMT + - Wed, 06 Oct 2021 21:03:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10957' + - '81' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_credentials.yaml index 8f1be5fc2509..33b4b3c4c811 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_credentials.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - e0686411-8e2d-4dae-ada6-7c2e35f1db28 + - bc8224ca-b148-4c9d-9f4b-274108196758 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 19:14:39 GMT + - Wed, 06 Oct 2021 21:03:31 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_model_version_error.yaml index 465763c40b1d..65f3d720092f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_model_version_error.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid @@ -24,11 +24,11 @@ interactions: details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - a3256862-352e-43f8-9342-bbcb6e4303e6 + - 5edbe6d2-fffc-4aeb-bf6b-2c5a59fdd837 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:14:50 GMT + - Wed, 06 Oct 2021 21:03:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10449' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit.yaml index 95d5446775bf..5b2b76ebe4c0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - d59aa044-98f3-4183-8374-8608980ca095 + - ac1c1545-b31d-4425-bcb8-bdd389a270c8 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:14:52 GMT + - Wed, 06 Oct 2021 21:03:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -779,7 +779,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '133' + - '12' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit_error.yaml index 2f1a3c182dd3..f763144920ef 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - 71eeafa3-8471-404c-8df2-3c74643a3225 + - e3022306-d3dd-41ae-ace1-33c2c9fd93d4 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:15:04 GMT + - Wed, 06 Oct 2021 21:03:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -744,7 +744,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9967' + - '11' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_client_passed_default_language_hint.yaml index 4e81df49c1d4..4d765b176eed 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_client_passed_default_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - fbe5229a-25eb-42b7-b48e-a141346deb59 + - 965691d5-4c47-4654-9638-d1a1e70236a4 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:15:17 GMT + - Wed, 06 Oct 2021 21:03:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11706' + - '280' status: code: 200 message: OK @@ -62,9 +62,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -73,13 +73,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 9f1ac85f-5b54-4e77-a246-206b309de279 + - 6fcc2f1e-3e80-4c8c-b255-ae6a8f936291 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:15:17 GMT + - Wed, 06 Oct 2021 21:03:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -87,7 +87,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '407' + - '104' status: code: 200 message: OK @@ -108,9 +108,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -119,13 +119,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 0113a65f-3e95-4777-94dd-04cbb939e9f9 + - 160a1e78-4f5b-4103-bd44-7c72e2010b56 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:15:29 GMT + - Wed, 06 Oct 2021 21:03:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -133,7 +133,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10971' + - '110' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_default_string_index_type_is_UnicodeCodePoint.yaml index 9283a40b9f76..a86b1c4d4acb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,22 +13,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"Hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 89dc04c2-eee1-48f5-91db-0b9c442842b1 + - ddf8d82c-5eb8-4ec3-877b-7f76a5d6c14d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:30 GMT + - Wed, 06 Oct 2021 21:03:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '145' + - '196' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_disable_service_logs.yaml index 7eb398a89a18..80f7cf8561aa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_disable_service_logs.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 4a37b0ce-fb77-4c3a-985f-5017a25a3c0f + - 49f2d84e-1a28-485b-b7fa-102ff1f23704 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:31 GMT + - Wed, 06 Oct 2021 21:03:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '420' + - '110' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_no_result_attribute.yaml index a811b41f8918..79ee8a66f7f5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_no_result_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - d723306b-6400-48d2-8236-a3b94c11115a + - 62a5ce1a-d45f-4dd9-9bd7-cacaa00eebc2 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:15:31 GMT + - Wed, 06 Oct 2021 21:03:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_nonexistent_attribute.yaml index 6d944e6d1dc9..e88d2254ed30 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 58fceae4-a594-4286-a356-64bd438582d3 + - 3f272c20-6f75-4858-87df-e1019a835348 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:15:33 GMT + - Wed, 06 Oct 2021 21:03:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '33' + - '1' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_errors.yaml index aa82e8180e15..f1113e877473 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -33,11 +33,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 16c7f174-3b9e-4560-a5ad-8094abddbb89 + - 512cd576-06a3-446d-abb5-74060ef500eb content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:15:34 GMT + - Wed, 06 Oct 2021 21:03:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '4' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_warnings.yaml index 93d3526cbf70..b3f3d4d6d06f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_warnings.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":40,"text":"This won''t actually create a warning :''("}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 4e1de182-be9b-4cda-807b-fbea4f918b24 + - 675a696e-89ad-4250-9cfc-aa838b8af7c4 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:35 GMT + - Wed, 06 Oct 2021 21:03:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '106' + - '103' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_duplicate_ids_error.yaml index c66f6f2a24bc..68ac64b25dd3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 3fa8844e-d651-435a-ac2d-0d09dfe4d824 + - 04906e91-7975-438c-9bfd-24a7f0efcd96 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:15:35 GMT + - Wed, 06 Oct 2021 21:03:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '4' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_empty_credential_class.yaml index 62e2709f5da7..c02a68b17e16 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_empty_credential_class.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 9a50353b-ae26-4dfa-b1a8-0e85364852d7 + - ed033f81-735c-43bc-b3ad-a9d68e50c533 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 19:15:36 GMT + - Wed, 06 Oct 2021 21:03:36 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_explicit_set_string_index_type.yaml index b082c5ba9f54..c0aac6acc982 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_explicit_set_string_index_type.yaml @@ -13,22 +13,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"Hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - a6225306-fbd6-4464-8250-0b89426670cb + - 4709db4f-6446-4637-8410-859242948f58 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:37 GMT + - Wed, 06 Oct 2021 21:03:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '278' + - '87' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_all_errors.yaml index 12321abf6e9e..b94d7074b84e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_all_errors.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -30,11 +30,11 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - d7a9d6ea-e5a9-44bd-a4db-76a70d0b537c + - d652f89c-07dc-4953-8834-d7fd9ba753f6 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:15:38 GMT + - Wed, 06 Oct 2021 21:03:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_some_errors.yaml index 94ee9296af8b..001b0929624f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_some_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The @@ -31,13 +31,13 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 50dafb41-30c7-4a7c-a6ff-127e0f6ac5ec + - a9ac4d8d-cab8-43ea-9b00-2497f56572d4 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:39 GMT + - Wed, 06 Oct 2021 21:03:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '357' + - '151' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_docs.yaml index be2642ab7454..bafaa30e7eca 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_docs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - eb1829bc-7d16-442e-b21e-61763c6d82a9 + - 8c3aabb2-fc3f-47ba-82e1-0fd953c1fb49 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:15:39 GMT + - Wed, 06 Oct 2021 21:03:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_method.yaml index 78450def3213..64aa97fff29d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_method.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 53a00115-c342-4aa9-9946-1c610b8ee400 + - 866ac4ae-8524-4f4a-b1fe-b4a4c2714747 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:15:40 GMT + - Wed, 06 Oct 2021 21:03:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_language_kwarg_spanish.yaml index 1e7bb680471d..2163577bc718 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_language_kwarg_spanish.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":35,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.98,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.98,"negative":0.01},"offset":0,"length":35,"text":"Bill Gates is the CEO of Microsoft."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 951954e5-d4d2-4c75-9fa9-450b8f8ba1c8 + - 30cdba09-4634-49c6-9839-15d6d5b2aa21 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:41 GMT + - Wed, 06 Oct 2021 21:03:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '317' + - '107' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_v3_sentence_sentiment.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_v3_sentence_sentiment.yaml index cee4de34c2fd..1d46136c22a3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_v3_sentence_sentiment.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_v3_sentence_sentiment.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false response: @@ -24,13 +24,13 @@ interactions: do not like being inside"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 46616c2c-76e2-433d-a9fe-67bd59485aa5 + - 2629cb83-9878-4d4f-b625-636687d816c1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:48 GMT + - Wed, 06 Oct 2021 21:03:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5509' + - '116' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset.yaml index 538952c1b3f6..969e64d23f2f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"mixed","confidenceScores":{"positive":0.44,"neutral":0.27,"negative":0.29},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.88,"neutral":0.11,"negative":0.01},"offset":0,"length":14,"text":"I @@ -24,13 +24,13 @@ interactions: do not like being inside"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - d9d53e6a-f5da-4ed7-a366-41639ddf3db3 + - 8b942013-ea50-4881-82a0-122d90c34c6d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:50 GMT + - Wed, 06 Oct 2021 21:03:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '250' + - '102' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining.yaml index d7b7396deb5c..982fbf035440 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 1cc6f7c6-0c35-48ee-9f93-c5d97758672e + - 97531bf1-7a96-4e59-b595-40f5813cd043 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:51 GMT + - Wed, 06 Oct 2021 21:03:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '393' + - '87' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_more_than_5_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_more_than_5_documents.yaml index cbee9910d9ee..2dfb1935fe68 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_more_than_5_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_more_than_5_documents.yaml @@ -21,9 +21,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":25,"text":"The @@ -38,13 +38,13 @@ interactions: toilet smelled.","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":6,"text":"toilet","relations":[{"relationType":"assessment","ref":"#/documents/6/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":11,"length":7,"text":"smelled","isNegated":false}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 048badb2-2389-4b33-b964-c7ff6fcd5fd5 + - 8beff58a-6cda-49f3-914f-8bea77cae707 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=7,CognitiveServices.TextAnalytics.TextRecords=7 date: - - Mon, 02 Aug 2021 19:15:52 GMT + - Wed, 06 Oct 2021 21:03:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -52,7 +52,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '423' + - '229' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_no_mined_opinions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_no_mined_opinions.yaml index b378194e529f..c52a500bd618 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_no_mined_opinions.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_no_mined_opinions.yaml @@ -13,22 +13,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"offset":0,"length":18,"text":"today is a hot day","targets":[],"assessments":[]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 689abf61-ff09-4d7c-a5f0-0126452b3afb + - 7bab511d-a637-442f-b404-75bc0145a79b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:54 GMT + - Wed, 06 Oct 2021 21:03:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '314' + - '93' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_with_negated_opinion.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_with_negated_opinion.yaml index d64e64d19172..f1dfcf7c1412 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_with_negated_opinion.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_with_negated_opinion.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 1493f185-1fa6-4f19-8389-77ecfd88d108 + - 8fc65550-3207-4d6b-8ac7-464b6b2dcdae content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:54 GMT + - Wed, 06 Oct 2021 21:03:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '350' + - '81' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_out_of_order_ids.yaml index eddfa460e93a..81e5358d1b02 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_out_of_order_ids.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 96efd581-d21a-46bb-8b10-d5c36a954aff + - 724ab4dc-945b-4ecf-a618-6bae293c93b1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 19:15:55 GMT + - Wed, 06 Oct 2021 21:03:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '280' + - '95' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_output_same_order_as_input.yaml index efb408016296..5731c6c27b4b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.9,"negative":0.04},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.9,"negative":0.04},"offset":0,"length":3,"text":"one"}],"warnings":[]},{"id":"2","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.97,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.97,"negative":0.02},"offset":0,"length":3,"text":"two"}],"warnings":[]},{"id":"3","sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"offset":0,"length":5,"text":"three"}],"warnings":[]},{"id":"4","sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"offset":0,"length":4,"text":"four"}],"warnings":[]},{"id":"5","sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"offset":0,"length":4,"text":"five"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - a4b47813-ac29-4e3a-a6fb-dfe0268b75a5 + - 27c3d9d8-149f-48d9-a0dd-aadb7b67acc1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Mon, 02 Aug 2021 19:15:57 GMT + - Wed, 06 Oct 2021 21:03:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '316' + - '86' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_pass_cls.yaml index 457b1bf5e7c1..8c550d071e42 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_pass_cls.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.32,"neutral":0.65,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.32,"neutral":0.65,"negative":0.03},"offset":0,"length":28,"text":"Test passing cls to endpoint"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 757636d3-0a1c-42c3-b80f-97e5f0f95c62 + - 1da8940e-721f-4e62-a213-fbc3d003eba2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:15:58 GMT + - Wed, 06 Oct 2021 21:03:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '130' + - '101' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_passing_only_string.yaml index 62d8a6efeff3..1412b63df591 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_passing_only_string.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -32,13 +32,13 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 331f51ea-4025-432f-be0c-0059adfdda02 + - a165245e-d1da-47d3-80f5-e3b19f0f1a95 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:15:59 GMT + - Wed, 06 Oct 2021 21:03:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '268' + - '93' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_per_item_dont_use_language_hint.yaml index 20cb2c708d22..9d1070b12a9c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_per_item_dont_use_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - b4259c0b-787f-4df1-a4a1-d37f74c54477 + - ff348204-df21-47cd-81e5-e971073e379d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:01 GMT + - Wed, 06 Oct 2021 21:03:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '132' + - '81' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_rotate_subscription_key.yaml index 8d69c88e26f8..1fe4b944607c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_rotate_subscription_key.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 60c4fd71-76a1-402b-a9ba-bbf7ace63164 + - 97e57552-4ff4-4ba6-a54d-da4c63088f3b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:01 GMT + - Wed, 06 Oct 2021 21:03:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '107' + - '110' status: code: 200 message: OK @@ -62,9 +62,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -72,13 +72,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 4906dd58-86db-4ae5-826b-a765d9146927 + - a51cc0a8-4658-4974-85e0-2ca05d91ede6 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 19:16:01 GMT + - Wed, 06 Oct 2021 21:03:43 GMT status: code: 401 message: PermissionDenied @@ -99,9 +99,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -110,13 +110,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - e1b64cf4-0ded-4714-8920-f322fb7eead0 + - b71386c4-1404-4f97-bbf1-d453f206a949 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:02 GMT + - Wed, 06 Oct 2021 21:03:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -124,7 +124,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '118' + - '81' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_show_stats_and_model_version.yaml index d1eee0a1ec2a..32d626912304 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_show_stats_and_model_version.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 02d27ca8-3fe3-43df-8c2e-df69c124160e + - 9dd15d6c-7270-4833-8e81-67fe2ba1e38b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 19:16:03 GMT + - Wed, 06 Oct 2021 21:03:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '284' + - '100' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_string_index_type_not_fail_v3.yaml index cdaaa4538837..3c4d6f556742 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_string_index_type_not_fail_v3.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false response: @@ -22,13 +22,13 @@ interactions: don''t fail"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - c6c9d39c-ccf1-4541-a797-111c167c01e9 + - 5daa90e3-acfc-46e6-9cc5-44077ba51a79 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 19:16:04 GMT + - Wed, 06 Oct 2021 21:03:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '131' + - '113' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_too_many_documents.yaml index 68a9de603d9b..81636bf8a6be 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_too_many_documents.yaml @@ -19,20 +19,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - d8948348-f97a-4f7a-b8ec-8577983bc3b6 + - 8db3a0f7-e27f-4e66-8022-7fb55cd0216e content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 19:16:05 GMT + - Wed, 06 Oct 2021 21:03:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '7' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_user_agent.yaml index 7cf843cae5b5..b6b04a748887 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_user_agent.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - e646d44a-69cf-4c71-a3d0-251fd9b35475 + - 6a433712-fd9d-4b8c-be5b-edc13590692d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:07 GMT + - Wed, 06 Oct 2021 21:03:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '134' + - '112' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_dont_use_language_hint.yaml index a8c37a7cd417..cbedd9dfc401 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_dont_use_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":33,"text":"This @@ -28,13 +28,13 @@ interactions: restaurant was not as good as I hoped."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 146ceb6b-774d-4e9b-8307-a1b3e1d39409 + - 27f86092-8f02-4f47-9d1c-0af79ab68e07 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:08 GMT + - Wed, 06 Oct 2021 21:03:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '130' + - '78' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint.yaml index d8991a40186a..8e4a08716244 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.07,"neutral":0.93,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.07,"neutral":0.93,"negative":0.0},"offset":0,"length":33,"text":"This @@ -28,13 +28,13 @@ interactions: restaurant was not as good as I hoped."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 3aca7521-2c4f-4b0d-8fdd-d3845840e1b1 + - e19e3f79-32f7-4345-83c5-e39d38c8dd04 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:08 GMT + - Wed, 06 Oct 2021 21:03:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '165' + - '160' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_input.yaml index c8e882e0a472..c284a8a89749 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_input.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - cd153106-93c4-49cb-a377-5ce69e45b638 + - 3c87d375-47f7-43a0-8d3a-e260abc3cf1b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:10 GMT + - Wed, 06 Oct 2021 21:03:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '161' + - '81' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index f9f561e3ce94..6b9b01f52ee9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 7909131e-ff4e-4a41-a7ec-97ef6996ec6f + - dca754d4-50c5-4600-806f-b28114619e7e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:11 GMT + - Wed, 06 Oct 2021 21:03:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '254' + - '118' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_input.yaml index b3da2f1a7f92..e886483a3d5d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\"\ @@ -37,13 +37,13 @@ interactions: warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" headers: apim-request-id: - - e86fbb02-dc55-4ffd-b053-bf0c7df58c55 + - 40a00784-a226-494e-aad4-1fed404259ac content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:12 GMT + - Wed, 06 Oct 2021 21:03:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -51,7 +51,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '103' + - '111' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 87ce2b6a93db..1e6728450281 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\"\ @@ -37,13 +37,13 @@ interactions: warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" headers: apim-request-id: - - c96ef28e-989b-4a19-a743-6b34e7d00d0f + - e2ade69c-a83c-4425-9eaf-0a8b1d677e7d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 19:16:13 GMT + - Wed, 06 Oct 2021 21:03:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -51,7 +51,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '257' + - '156' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_dict.yaml index a5e8d7a357cf..f53b42ccdb0e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_dict.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -25,16 +25,16 @@ interactions: restaurant had really good food."},{"sentiment":"positive","confidenceScores":{"positive":0.96,"neutral":0.03,"negative":0.01},"offset":37,"length":23,"text":"I recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 63b4617b-5b40-43b2-ad09-51c65d41e020 + apim-request-id: a39d4775-cc86-4afd-9aec-a61dd0186bac content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:01 GMT + date: Wed, 06 Oct 2021 21:03:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '136' + x-envoy-upstream-service-time: '133' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_text_document_input.yaml index 4d186a48ed81..4437004f0757 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_text_document_input.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -25,16 +25,16 @@ interactions: restaurant had really good food."},{"sentiment":"positive","confidenceScores":{"positive":0.96,"neutral":0.03,"negative":0.01},"offset":37,"length":23,"text":"I recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 4c073764-a09d-445b-96ce-de944a59b29c + apim-request-id: a298e76c-51a1-4b0b-af2d-fe9f1425bce3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:02 GMT + date: Wed, 06 Oct 2021 21:03:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '104' + x-envoy-upstream-service-time: '84' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_credentials.yaml index 23a28f10ff0a..c359760b6d74 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_credentials.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: ef22bbf9-a4fb-4712-b443-04c8a65ace1a + apim-request-id: f8538597-b27b-4796-9a65-6c71830947c4 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 19:22:03 GMT + date: Wed, 06 Oct 2021 21:03:48 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version_error.yaml index 8e14984534f3..f053b10d259d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version_error.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid model version. Possible values are: latest,2019-10-01,2020-04-01. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: eea02227-0ef9-493b-b5dc-5f02296bba8b + apim-request-id: 77f75632-ddef-4e6b-990a-583accc379da content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:04 GMT + date: Wed, 06 Oct 2021 21:03:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '373' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit.yaml index acea3ed067ca..31a2aba21c2f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit.yaml @@ -754,23 +754,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 9ea755c3-fafe-4336-8b3f-c622dd40bea7 + apim-request-id: 9d6a4a76-dae9-4577-ace3-82c75ff66c3f content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:05 GMT + date: Wed, 06 Oct 2021 21:03:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '12' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit_error.yaml index d9d71afc891c..04ccb5b45215 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: b13c4372-c495-4db5-a279-2c62547ffecf + apim-request-id: d8f16cf2-1507-47b2-ace7-9ff5e852acbd content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:06 GMT + date: Wed, 06 Oct 2021 21:03:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '9' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_client_passed_default_language_hint.yaml index d2099b684833..e52daca4ad84 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_client_passed_default_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,18 +22,18 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 77d6375d-6086-48e7-9d63-307d8d08b409 + apim-request-id: d4da1d6d-1820-49fa-8824-e11e11be890f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:07 GMT + date: Wed, 06 Oct 2021 21:03:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '251' + x-envoy-upstream-service-time: '138' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -47,9 +47,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -57,18 +57,18 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: d2d59073-402c-4a1b-ad66-49c86a41b2bf + apim-request-id: 6e1b4cb5-a429-4143-8f69-b05a53ae7603 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:07 GMT + date: Wed, 06 Oct 2021 21:03:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '128' + x-envoy-upstream-service-time: '115' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -82,9 +82,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -92,16 +92,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 82613660-f5ca-406e-a450-80d94ecab98c + apim-request-id: e203748f-67c7-4072-98d4-5b1664a93052 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:07 GMT + date: Wed, 06 Oct 2021 21:03:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '319' + x-envoy-upstream-service-time: '111' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index f6b61dabcdb5..efd91d756ab0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"Hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 4730dc45-23ee-420b-a900-d5d8aab26a5b + apim-request-id: b423e78d-ac1c-4863-b47a-983d12e3b500 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:09 GMT + date: Wed, 06 Oct 2021 21:03:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '117' + x-envoy-upstream-service-time: '95' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_disable_service_logs.yaml index eda6cd043f84..c682243e12e6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_disable_service_logs.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: daa31e55-3e41-4992-bf2a-23a6e43e4d43 + apim-request-id: fee062ad-0d78-4f8b-a104-86c2f91ecf36 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:10 GMT + date: Wed, 06 Oct 2021 21:03:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '417' + x-envoy-upstream-service-time: '82' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_no_result_attribute.yaml index 7b6c373386e0..52c2091f2ebf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 0845769f-6cc7-49bb-a89f-b88c8d58e687 + apim-request-id: a98a7ce7-cf28-43c3-ba9e-07c2452e1c53 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:10 GMT + date: Wed, 06 Oct 2021 21:03:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_nonexistent_attribute.yaml index b30270b148e2..ce0c59b804cd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: c6a580d0-0358-4445-85fb-2f69d8091e39 + apim-request-id: eeb1fc8f-1212-427a-ab18-921036d8d0db content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:11 GMT + date: Wed, 06 Oct 2021 21:03:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_errors.yaml index 6f127b68ac26..ba4604502189 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -28,15 +28,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 09133517-b294-4148-afdc-102aa59aee6d + apim-request-id: 88e518e2-98b4-4a99-aec0-0ed1f19ac115 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:12 GMT + date: Wed, 06 Oct 2021 21:03:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_warnings.yaml index a85b93ecfbc7..0ce33727bb69 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_warnings.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":40,"text":"This won''t actually create a warning :''("}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: f77db013-ae8d-4b4b-881b-4e36239e0a0e + apim-request-id: e78c45a5-1e83-4947-a674-08b554fb1fe9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:12 GMT + date: Wed, 06 Oct 2021 21:03:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '256' + x-envoy-upstream-service-time: '118' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_duplicate_ids_error.yaml index d03e18b6df4a..d3b988cef626 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: f5636391-66b5-4565-ae58-170d9303e163 + apim-request-id: 21f40836-b926-4876-a375-d84ddb4df189 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:13 GMT + date: Wed, 06 Oct 2021 21:03:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '119' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_empty_credential_class.yaml index cd29d9223a9e..134f0c76a28b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_empty_credential_class.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 08e792dc-15c3-4bb3-83a8-bb1ee22f8f4d + apim-request-id: 1ced06eb-a307-48e5-98ec-b74760cedd1f content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 19:22:14 GMT + date: Wed, 06 Oct 2021 21:03:52 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_explicit_set_string_index_type.yaml index d6d6d44c8cce..01384f1214aa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_explicit_set_string_index_type.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"Hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: cf51db53-788c-4378-98a9-2e3ba95092c0 + apim-request-id: 93106a1b-a928-49e8-b0ce-7dc3edcd6398 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:14 GMT + date: Wed, 06 Oct 2021 21:03:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '121' + x-envoy-upstream-service-time: '144' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=TextElements_v8 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=TextElements_v8 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_all_errors.yaml index 8c45e2ae9261..f39a79e5aca6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_all_errors.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,15 +25,15 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: a5790f68-f346-4735-86ec-224515ce4545 + apim-request-id: d043f084-4c4a-4c81-951e-fc27bdec2ee1 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:16 GMT + date: Wed, 06 Oct 2021 21:03:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_some_errors.yaml index 464584ba53fe..804854967e02 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_some_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The @@ -26,16 +26,16 @@ interactions: language code. Supported languages: de,en,es,fr,hi,it,ja,ko,nl,no,pt-BR,pt-PT,tr,zh-Hans,zh-Hant. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: caae02d5-9328-43be-abc7-a8261d412864 + apim-request-id: 27b9c241-891f-4500-8b87-d061c6cca0d3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:17 GMT + date: Wed, 06 Oct 2021 21:03:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '127' + x-envoy-upstream-service-time: '100' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_docs.yaml index f7fa927ee143..7145e933ca81 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_docs.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: language code. Supported languages: de,en,es,fr,hi,it,ja,ko,nl,no,pt-BR,pt-PT,tr,zh-Hans,zh-Hant. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 6a3eaa07-bc59-4f45-a654-b00e55c52dc1 + apim-request-id: 182498b1-6add-46db-b644-826ad5ece2ad content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:17 GMT + date: Wed, 06 Oct 2021 21:03:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_method.yaml index 28edfe100fb7..ff5812759df4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_method.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: language code. Supported languages: de,en,es,fr,hi,it,ja,ko,nl,no,pt-BR,pt-PT,tr,zh-Hans,zh-Hant. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: b3733871-391c-4b09-a28d-78a507b39014 + apim-request-id: 9c3520c0-f760-4a2b-97f8-99e3db558b84 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:18 GMT + date: Wed, 06 Oct 2021 21:03:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '248' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_language_kwarg_spanish.yaml index f802ba8589e9..0f06f5bddab8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_language_kwarg_spanish.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":35,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.98,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.98,"negative":0.01},"offset":0,"length":35,"text":"Bill Gates is the CEO of Microsoft."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: d78afa88-e788-4e28-bab3-b44a74e6e7af + apim-request-id: aa55a310-a317-4515-84f8-9b5bf4532566 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:19 GMT + date: Wed, 06 Oct 2021 21:03:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '135' + x-envoy-upstream-service-time: '114' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_v3_sentence_sentiment.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_v3_sentence_sentiment.yaml index 5c1b3654ebb4..cc20042fce01 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_v3_sentence_sentiment.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_v3_sentence_sentiment.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false response: @@ -19,16 +19,16 @@ interactions: like nature."},{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.43,"negative":0.56},"offset":15,"length":26,"text":"I do not like being inside"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 4ede9988-43f0-4de4-9c99-1a20a1c1008f + apim-request-id: 7352dc99-9df8-4de3-8301-852ed5e67f1e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:25 GMT + date: Wed, 06 Oct 2021 21:03:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5654' + x-envoy-upstream-service-time: '86' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.0/sentiment?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.0/sentiment?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset.yaml index 94ae971d0301..f5063db3ff96 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"mixed","confidenceScores":{"positive":0.44,"neutral":0.27,"negative":0.29},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.88,"neutral":0.11,"negative":0.01},"offset":0,"length":14,"text":"I like nature."},{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.43,"negative":0.56},"offset":15,"length":26,"text":"I do not like being inside"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: dadef5e6-4e95-4094-9562-25d10aeaadca + apim-request-id: 62d9dea1-e070-4555-a063-3c384e31236c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:26 GMT + date: Wed, 06 Oct 2021 21:03:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '111' + x-envoy-upstream-service-time: '90' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining.yaml index fdd4db7ea6e9..2d570decbcc6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: b5fc4b83-8957-4c3e-8e8c-05d2ce44d6e8 + apim-request-id: 685f7156-4afd-47d7-b063-d4134b38fa09 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:27 GMT + date: Wed, 06 Oct 2021 21:03:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '268' + x-envoy-upstream-service-time: '111' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_more_than_5_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_more_than_5_documents.yaml index 7a0fb358e799..08640ca97e1b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_more_than_5_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_more_than_5_documents.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":25,"text":"The @@ -33,16 +33,16 @@ interactions: rooms but bathrooms were old and the toilet was dirty when we arrived.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":5,"length":5,"text":"rooms","relations":[{"relationType":"assessment","ref":"#/documents/5/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":15,"length":9,"text":"bathrooms","relations":[{"relationType":"assessment","ref":"#/documents/5/sentences/0/assessments/1"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":42,"length":6,"text":"toilet","relations":[{"relationType":"assessment","ref":"#/documents/5/sentences/0/assessments/2"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":0,"length":4,"text":"nice","isNegated":false},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":30,"length":3,"text":"old","isNegated":false},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":53,"length":5,"text":"dirty","isNegated":false}]}],"warnings":[]},{"id":"6","sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.63,"negative":0.34},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.63,"negative":0.34},"offset":0,"length":19,"text":"The toilet smelled.","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":6,"text":"toilet","relations":[{"relationType":"assessment","ref":"#/documents/6/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":11,"length":7,"text":"smelled","isNegated":false}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: c11ac65f-05f3-403f-9dd0-e5a266afc43b + apim-request-id: 97daf61a-73fe-4d70-8426-f1da78c88555 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=7,CognitiveServices.TextAnalytics.TextRecords=7 - date: Mon, 02 Aug 2021 19:22:28 GMT + date: Wed, 06 Oct 2021 21:03:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '370' + x-envoy-upstream-service-time: '109' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_no_mined_opinions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_no_mined_opinions.yaml index bdb247879c80..7d65f43e4b91 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_no_mined_opinions.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_no_mined_opinions.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"offset":0,"length":18,"text":"today is a hot day","targets":[],"assessments":[]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: d8abfde8-358e-44af-8dca-76c1ee1d1aee + apim-request-id: d350343c-13ef-4910-b6e9-b1a93251995c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:29 GMT + date: Wed, 06 Oct 2021 21:03:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '154' + x-envoy-upstream-service-time: '95' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_with_negated_opinion.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_with_negated_opinion.yaml index bff3f8e82069..f6f2db891029 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_with_negated_opinion.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_with_negated_opinion.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 911005d5-e947-4cfd-bffc-72d2d3e9224d + apim-request-id: 30e5d6d3-7898-432c-8755-38b9606728c4 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:30 GMT + date: Wed, 06 Oct 2021 21:03:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '167' + x-envoy-upstream-service-time: '124' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_out_of_order_ids.yaml index 8ce44e980d8f..5121516f8029 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 1d037baa-85c4-486d-904f-ad418c3ad5f8 + apim-request-id: 0452a693-f835-4028-89ab-ff3af691df9e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 19:22:31 GMT + date: Wed, 06 Oct 2021 21:03:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '109' + x-envoy-upstream-service-time: '113' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_output_same_order_as_input.yaml index 0344b04798aa..910fb99edc0f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.9,"negative":0.04},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.9,"negative":0.04},"offset":0,"length":3,"text":"one"}],"warnings":[]},{"id":"2","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.97,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.97,"negative":0.02},"offset":0,"length":3,"text":"two"}],"warnings":[]},{"id":"3","sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"offset":0,"length":5,"text":"three"}],"warnings":[]},{"id":"4","sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"offset":0,"length":4,"text":"four"}],"warnings":[]},{"id":"5","sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"offset":0,"length":4,"text":"five"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 8670dc2d-fc91-4b56-b394-d80d124df167 + apim-request-id: fa06b750-26fc-48d5-9801-29e8f2ad406d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Mon, 02 Aug 2021 19:22:31 GMT + date: Wed, 06 Oct 2021 21:03:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '100' + x-envoy-upstream-service-time: '92' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_pass_cls.yaml index 98672ce8a95e..2ba2f051d505 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_pass_cls.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.32,"neutral":0.65,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.32,"neutral":0.65,"negative":0.03},"offset":0,"length":28,"text":"Test passing cls to endpoint"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 9af42900-e7dc-41d6-9762-d5e522304eb6 + apim-request-id: 96dd1477-31f2-49fe-b583-faebd46ae839 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:32 GMT + date: Wed, 06 Oct 2021 21:03:56 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '106' + x-envoy-upstream-service-time: '97' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_passing_only_string.yaml index c8adb955b251..b72cd52743e1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_passing_only_string.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -27,16 +27,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 5ccdd10a-ee44-4aae-998b-c28bd808060c + apim-request-id: 5396f3a1-cd84-4528-a2e9-9389e9d2fbd3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:32 GMT + date: Wed, 06 Oct 2021 21:03:56 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '108' + x-envoy-upstream-service-time: '85' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_per_item_dont_use_language_hint.yaml index 30612db7b00d..3f31e574bf46 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_per_item_dont_use_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,16 +22,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: e5f134bb-f44f-4ba4-8f92-41884171f2aa + apim-request-id: a1af7a70-8631-4ecc-a016-482de4a166ae content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:33 GMT + date: Wed, 06 Oct 2021 21:03:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '121' + x-envoy-upstream-service-time: '105' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_rotate_subscription_key.yaml index 5cda6b8f24c5..d29e0f458644 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_rotate_subscription_key.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,18 +22,18 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 6fa78515-5e03-43f0-ba6b-47abce3008d7 + apim-request-id: f9a67766-ef0f-4c95-b7a7-3627e3146635 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:32 GMT + date: Wed, 06 Oct 2021 21:03:56 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '117' + x-envoy-upstream-service-time: '94' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -47,23 +47,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 46b27034-4e26-44d0-840d-3b4562520afc + apim-request-id: 20b8b783-962b-4bed-86fc-de8189c6d950 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 19:22:33 GMT + date: Wed, 06 Oct 2021 21:03:57 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -77,9 +77,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -87,16 +87,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 2c86679a-8937-4900-a863-788e6efddaad + apim-request-id: 7eb0a079-db2e-4984-9482-ab3724ae9cd6 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:33 GMT + date: Wed, 06 Oct 2021 21:03:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '142' + x-envoy-upstream-service-time: '105' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_show_stats_and_model_version.yaml index ac8cef6f9930..b0ea8ffd5333 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: d724defe-5795-473e-abd1-708fd77eabe7 + apim-request-id: f173468d-862e-43d8-b69f-90e56eb512d1 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 19:22:34 GMT + date: Wed, 06 Oct 2021 21:03:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '107' + x-envoy-upstream-service-time: '105' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_string_index_type_not_fail_v3.yaml index ba8ad1afa049..e236dbf57179 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_string_index_type_not_fail_v3.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false response: @@ -17,16 +17,16 @@ interactions: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":0.99,"neutral":0.0,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.99,"neutral":0.0,"negative":0.01},"offset":0,"length":17,"text":"please don''t fail"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 8c972b8b-2509-481a-b726-0d478c4326bb + apim-request-id: 35d4be8b-312a-4797-b87e-c5a77c716ad8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 19:22:40 GMT + date: Wed, 06 Oct 2021 21:03:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5372' + x-envoy-upstream-service-time: '106' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.0/sentiment?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.0/sentiment?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_too_many_documents.yaml index 37920050a488..cb1c3ce086b8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_too_many_documents.yaml @@ -15,23 +15,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 816602e9-1505-4f8e-b4f0-93ff94c0a97e + apim-request-id: 876ae955-8f69-42b0-9dc9-0c833dac1796 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 19:22:41 GMT + date: Wed, 06 Oct 2021 21:03:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '5' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_user_agent.yaml index dcfccb03abca..dec825fce612 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_user_agent.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,16 +22,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 65f89539-6c0b-404e-a86f-51c86783bb9e + apim-request-id: c7bb8f02-9497-443b-9ae4-afb50f98a791 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:41 GMT + date: Wed, 06 Oct 2021 21:03:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '97' + x-envoy-upstream-service-time: '113' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_dont_use_language_hint.yaml index d690a5186b74..248164bbf6dc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":33,"text":"This @@ -23,16 +23,16 @@ interactions: was too expensive."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.0,"negative":0.99},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.0,"negative":0.99},"offset":0,"length":42,"text":"The restaurant was not as good as I hoped."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 90ed4cc2-1087-4848-8888-43938181ff98 + apim-request-id: f41db6f7-6f7a-41f0-9535-afae386bb3d9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:41 GMT + date: Wed, 06 Oct 2021 21:03:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '98' + x-envoy-upstream-service-time: '115' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint.yaml index 8486578594da..3211eafdf928 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.07,"neutral":0.93,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.07,"neutral":0.93,"negative":0.0},"offset":0,"length":33,"text":"This @@ -23,16 +23,16 @@ interactions: was too expensive."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.32,"negative":0.67},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.32,"negative":0.67},"offset":0,"length":42,"text":"The restaurant was not as good as I hoped."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: ff49a838-805f-4d19-ab36-05eff84a0df6 + apim-request-id: 74d2abaa-bba2-47f7-8755-f7d9d8b79cc5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:42 GMT + date: Wed, 06 Oct 2021 21:03:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '131' + x-envoy-upstream-service-time: '112' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_input.yaml index 26f972368c17..3fe098c11672 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_input.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,16 +22,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: bcc36b9c-c328-4ff8-8ead-63e3986c5fdb + apim-request-id: a9c29541-9374-4685-9ed2-f77bcf098d58 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:43 GMT + date: Wed, 06 Oct 2021 21:03:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '294' + x-envoy-upstream-service-time: '193' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 14f7145a2a0f..99ca7f642add 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,16 +22,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 8e372782-604f-45c3-9cb0-c70f02c5db8c + apim-request-id: ed55ff37-fa6d-41cc-b81c-3d52492f93e9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:43 GMT + date: Wed, 06 Oct 2021 21:03:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '175' + x-envoy-upstream-service-time: '119' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_input.yaml index 85d89023c63e..e2a1b2ec71e1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\"\ @@ -32,16 +32,16 @@ interactions: :0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"\ warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" headers: - apim-request-id: c6591a02-286b-4536-a4dc-54be0c20de22 + apim-request-id: 6c9ca22a-ca67-4e01-adcd-c37ac9ffd681 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:44 GMT + date: Wed, 06 Oct 2021 21:04:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '134' + x-envoy-upstream-service-time: '113' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index de6c8576d16f..91e3872c604d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\"\ @@ -32,16 +32,16 @@ interactions: :0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"\ warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" headers: - apim-request-id: b1714f8b-d578-4bfa-9c07-d6bc7be283b1 + apim-request-id: 40ab7a31-c90e-4da6-82a8-6c9603683873 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 19:22:44 GMT + date: Wed, 06 Oct 2021 21:04:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '120' + x-envoy-upstream-service-time: '404' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_dict.yaml index 1d6b7e126438..0ac81194002f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_dict.yaml @@ -17,21 +17,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=true response: body: string: '{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"statistics":{"charactersCount":41,"transactionsCount":1},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"statistics":{"charactersCount":39,"transactionsCount":1},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"statistics":{"charactersCount":4,"transactionsCount":1},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"statistics":{"charactersCount":46,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - f2c1dafe-c364-4a67-9eb4-40d05e86fa5e + - e02d7cbd-a0e8-4a21-9b5c-6fe8ad097dfa content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 20:19:47 GMT + - Wed, 06 Oct 2021 21:04:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5581' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_text_document_input.yaml index 1e3b634a4db7..4ac813ae560b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_text_document_input.yaml @@ -17,21 +17,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - d6260eea-7a44-44e4-a1e0-0cb64cdc210b + - dd9b2600-5817-4c40-b8fc-8eff97744f04 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 20:19:54 GMT + - Wed, 06 Oct 2021 21:04:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6058' + - '16' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_credentials.yaml index 3779f74463d5..910a23b199ad 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_credentials.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 9dfebd00-2c89-4ab0-8292-bc920245c0b9 + - e40d476b-ede2-4865-a880-b6d1aa703574 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 20:19:53 GMT + - Wed, 06 Oct 2021 21:04:04 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_model_version_error.yaml index 30811c2e0fbd..edc45a21faa7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_model_version_error.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?model-version=bad&showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?model-version=bad&showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid @@ -24,11 +24,11 @@ interactions: For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - 4138d72b-774c-4bd3-9bdd-dde542dfd1f7 + - bfd2e80b-dc99-47c7-a0db-89db3d4758b1 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:00 GMT + - Wed, 06 Oct 2021 21:04:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5561' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit.yaml index d9aa90f99dfe..4984f397da60 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit.yaml @@ -763,20 +763,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 1000 records are permitted."}}}' headers: apim-request-id: - - 771dc8a6-b107-4a2c-a32f-c381d90c1f52 + - f0f53621-dade-4f33-9b0f-675a42957960 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:00 GMT + - Wed, 06 Oct 2021 21:04:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -784,7 +784,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '11' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit_error.yaml index 5de77335a8ff..d7b348bc64ab 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit_error.yaml @@ -728,20 +728,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 1000 records are permitted."}}}' headers: apim-request-id: - - 34881f82-fdc5-47d2-81b7-3ce242f4dbf2 + - 8fb4a16c-f546-42cc-83fb-4498e31660cd content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:07 GMT + - Wed, 06 Oct 2021 21:04:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -749,7 +749,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5333' + - '464' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_client_passed_default_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_client_passed_default_country_hint.yaml index 59c6a1b759b3..730fe7ef1345 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_client_passed_default_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_client_passed_default_country_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 9e6e0ee6-87a6-455d-9ae6-aff3b6545e08 + - 1398eb1b-9f03-4730-a3cd-a2b455a7d11d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:13 GMT + - Wed, 06 Oct 2021 21:04:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5636' + - '9' status: code: 200 message: OK @@ -59,21 +59,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 34bef030-01f5-4e17-aad1-2cc65627d8b1 + - 1f9238b5-66f1-41b4-b040-963ae61a0608 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:19 GMT + - Wed, 06 Oct 2021 21:04:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -81,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5711' + - '8' status: code: 200 message: OK @@ -102,21 +102,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 341ccb02-0523-4e7e-9e03-eaff8a2a2b21 + - 29bea6f2-844d-4b0a-86c7-2a480be8c32a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:19 GMT + - Wed, 06 Oct 2021 21:04:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -124,7 +124,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '32' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_kwarg.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_kwarg.yaml index 5cd52ad4694a..f062ec57dcd7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_kwarg.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_kwarg.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"statistics":{"charactersCount":26,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 9ace338d-f1ab-48e0-b7fd-b437823cd7ae + - af26b62d-54a4-4933-b5e2-6acbab3417bc content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:20:19 GMT + - Wed, 06 Oct 2021 21:04:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '104' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_none.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_none.yaml index 95395f55358c..dbbd8f2208d0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_none.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_none.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 7ab2405c-b87f-423c-9fff-bfdb2a91c12e + - 583d300c-8e93-47ca-8931-b3f7f118a9a3 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:20:21 GMT + - Wed, 06 Oct 2021 21:04:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '136' + - '9' status: code: 200 message: OK @@ -55,21 +55,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - bdbf32ef-16d8-4f85-b9f4-c39960f11a90 + - a6786520-bbae-45d6-b8a0-649a6fe539fb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:20:22 GMT + - Wed, 06 Oct 2021 21:04:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -77,7 +77,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '505' + - '7' status: code: 200 message: OK @@ -96,21 +96,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - a5b7e345-143b-4927-bf95-a1c321cf440a + - bc662bb3-be8b-4680-979c-13b46fff6220 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:20:22 GMT + - Wed, 06 Oct 2021 21:04:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,7 +118,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '518' + - '9' status: code: 200 message: OK @@ -137,21 +137,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 8a0726cd-4eae-4c91-bf41-6d53d3add65b + - 4bc5fec9-0ae2-4329-8803-9622f5cecf8f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:20:23 GMT + - Wed, 06 Oct 2021 21:04:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -159,7 +159,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '24' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_disable_service_logs.yaml index 48c02ae46273..b0f7786b5c65 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_disable_service_logs.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false&loggingOptOut=true response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.88},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 4dcf5acc-0a03-4436-bee6-c21eef57f07d + - 91396326-e99b-4dba-8a14-cc7ce77aa96d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:20:23 GMT + - Wed, 06 Oct 2021 21:04:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '110' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_no_result_attribute.yaml index e58f1d827699..191c805822bc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_no_result_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - f5b1fdb3-7b98-4419-ab87-328d5450ef64 + - f3bbe5c9-0bf9-40ec-be1c-3fad7358b5ca content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:23 GMT + - Wed, 06 Oct 2021 21:04:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_nonexistent_attribute.yaml index cb2f4d51f5d8..5836e2a419f5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 31aad89d-b516-4ccf-933a-f2bb823b2715 + - 365a3a0e-fbeb-4d19-b4a7-4d1fd29e78f0 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:24 GMT + - Wed, 06 Oct 2021 21:04:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_errors.yaml index ce7981879395..67428dd39163 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_errors.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -29,11 +29,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - f3261b59-3e87-46d3-898c-88bbedc61e15 + - c3a98696-afa4-41b0-bbd2-08bac7e843d2 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:24 GMT + - Wed, 06 Oct 2021 21:04:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_warnings.yaml index 4c9499db587f..237d648c4e58 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_warnings.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - d91e87f8-53af-4f35-b433-813912c14613 + - bc9d02e8-9cfc-433c-b8eb-81a203459da7 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:20:25 GMT + - Wed, 06 Oct 2021 21:04:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '7' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_duplicate_ids_error.yaml index c756ff8987d6..edcf2399e549 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_duplicate_ids_error.yaml @@ -15,20 +15,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 454b440f-57e6-4726-968d-61611514a0a8 + - c8422b34-e06b-4d51-94d5-51adde3c2b7a content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:26 GMT + - Wed, 06 Oct 2021 21:04:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_empty_credential_class.yaml index 02a26eeeab81..4bbfad087420 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_empty_credential_class.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 41615899-1718-4fae-b331-09257423c6d1 + - 1fb2b8f0-76d6-4ab0-a032-82759a36f6ce content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 20:20:26 GMT + - Wed, 06 Oct 2021 21:04:09 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_all_errors.yaml index 8d3be5fe86e0..7564cfb72782 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_all_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -34,11 +34,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 25cca461-2c00-4650-8a88-d8a00541d368 + - 4b5e5b1f-8147-4c92-8bbd-460f668399c6 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:27 GMT + - Wed, 06 Oct 2021 21:04:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_some_errors.yaml index 85c07f2564ec..54183fd55bee 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_some_errors.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -30,13 +30,13 @@ interactions: is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - a1679e2b-ecf0-438a-9f46-0becbc533e1b + - 2ce869ae-ff93-41fe-896d-6e1aafe1de07 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Mon, 02 Aug 2021 20:20:28 GMT + - Wed, 06 Oct 2021 21:04:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '162' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_docs.yaml index 2fb16d17f85b..4a5e516d3f6a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_docs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: code."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - ad472d08-6e16-413e-b9f4-cccf0d8e54bb + - f2bf9f46-fcb0-4470-b5c6-527152624226 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:28 GMT + - Wed, 06 Oct 2021 21:04:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_method.yaml index 93e942ec648d..fdd8d9d49f54 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_method.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: code."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 26654212-af0e-4ca5-a544-1a4e202feb3f + - 15371fcc-d430-4196-9c7f-8242b612ee5d content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 20:20:29 GMT + - Wed, 06 Oct 2021 21:04:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_out_of_order_ids.yaml index 13a7e7bce89f..ebf6f92510f9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_out_of_order_ids.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"56","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"0","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"19","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - a00f70ab-248b-403b-a942-5081a62ae024 + - b771ac5c-ab64-4130-b548-766b09e77327 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 20:20:29 GMT + - Wed, 06 Oct 2021 21:04:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '7' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_output_same_order_as_input.yaml index 791e396bcce9..616519bf6551 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.93},"warnings":[]},{"id":"4","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"5","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 84e70611-1760-4aa6-965e-37bd46bae977 + - 6d28639a-9aa8-4118-be5e-06e943ba3b76 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Mon, 02 Aug 2021 20:20:30 GMT + - Wed, 06 Oct 2021 21:04:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_pass_cls.yaml index f84bb83fd401..faa1b7707fbb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 8f6ac700-fba0-4310-8034-4781abefad6b + - 8497db1e-b240-4d00-9cce-5fabf924bf76 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:20:30 GMT + - Wed, 06 Oct 2021 21:04:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_passing_only_string.yaml index 2c6ba974aaa8..0f4293226d0a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_passing_only_string.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[{"id":"4","error":{"code":"InvalidArgument","message":"Invalid @@ -27,13 +27,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - fb761f80-7848-4e62-9a75-1b93e301f23f + - 6ea3423b-917f-4d4f-bdf5-a59af12d7f00 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 20:20:31 GMT + - Wed, 06 Oct 2021 21:04:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_per_item_dont_use_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_per_item_dont_use_country_hint.yaml index cf41e9a88707..6ef23ac2f576 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_per_item_dont_use_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_per_item_dont_use_country_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 97108ad7-3fa2-4bf0-a39e-d2516fc48c17 + - e5d4842f-6154-4cc5-899b-083fe0544e59 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:32 GMT + - Wed, 06 Oct 2021 21:04:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_rotate_subscription_key.yaml index de9595166bbf..ca20b55db9d1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_rotate_subscription_key.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 6ffe2ea4-ddd0-4aab-9d87-2ededffa12f7 + - 7236e2fa-d62b-4ed9-b81c-b4a64b198423 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:32 GMT + - Wed, 06 Oct 2021 21:04:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '7' status: code: 200 message: OK @@ -59,9 +59,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -69,13 +69,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 2b3f80fa-594a-4b69-bfb3-c2a2607721d1 + - d7c848ed-efcd-4621-bf98-4ed1210aa94a content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 20:20:32 GMT + - Wed, 06 Oct 2021 21:04:12 GMT status: code: 401 message: PermissionDenied @@ -96,21 +96,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 602ee9e7-6ae4-467b-847f-0ac6e69aa887 + - 6dac516a-8cbe-4736-8ad4-9d6967edbf4c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:32 GMT + - Wed, 06 Oct 2021 21:04:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,7 +118,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '32' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_show_stats_and_model_version.yaml index ef77e67b14a0..ec00f3bfbb48 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_show_stats_and_model_version.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - c1719f9b-aee9-4844-96a6-e58b943c54f2 + - f9ffb32c-10b9-4183-a654-88d02e02fef4 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 20:20:33 GMT + - Wed, 06 Oct 2021 21:04:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_string_index_type_not_fail_v3.yaml index abb3949a609a..6751cc0f7443 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_string_index_type_not_fail_v3.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/languages?showStats=false response: @@ -22,13 +22,13 @@ interactions: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - a43e64dd-4560-4b76-9ea8-3b33fa65172d + - 5eef97fd-dd1a-4e04-9929-916aef62dd3d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:20:33 GMT + - Wed, 06 Oct 2021 21:04:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '33' + - '7' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_user_agent.yaml index 59a97d44faa4..13c309f87f69 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_user_agent.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - e7d6b198-70e2-4634-9e4e-402a76226eb3 + - e164ae9f-49cc-4a0e-948e-b7b5d023c196 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:34 GMT + - Wed, 06 Oct 2021 21:04:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '7' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint.yaml index 5475f39d1ed5..e59813546646 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 77fbfc06-1e25-40ef-ae0a-e433d0465b18 + - f5eb5e78-4ecb-4062-a860-002f2dfc450d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:34 GMT + - Wed, 06 Oct 2021 21:04:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_input.yaml index e6b738feb778..39ee74faf6cc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 0f689ee7-ea67-4822-a5b5-d4967e7dbe3a + - cb3b32f4-ace8-4940-9dd3-0437000a5e12 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:35 GMT + - Wed, 06 Oct 2021 21:04:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_per_item_hints.yaml index 71b62582ccae..0cbe2840eb49 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 362744e1-5bb7-4cd3-978f-0d81b8f2caee + - d72104d3-df63-4e0c-8be0-bbd7e3f15486 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:36 GMT + - Wed, 06 Oct 2021 21:04:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_input.yaml index db512dc54a17..b2369ce16abc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - f1bac836-36f2-451f-9da6-07921da99da7 + - e47742c4-1567-4a56-bba0-a3b322f6fc7e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:36 GMT + - Wed, 06 Oct 2021 21:04:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '7' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_per_item_hints.yaml index b81b4d3bd7a3..4d0493057d72 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"4","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 9b9ebbe7-6ac5-47d0-95bb-ea7a24942736 + - ab42eba2-c6f4-4823-a022-d814151716a0 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:37 GMT + - Wed, 06 Oct 2021 21:04:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '7' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_dont_use_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_dont_use_country_hint.yaml index 70a1ed6ee937..4b3758706605 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_dont_use_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_dont_use_country_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - ee030a5d-40ec-49d0-8dfd-0a09b6947237 + - 361eadc3-b803-4c3a-b57b-625c6e2da7a8 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 20:20:37 GMT + - Wed, 06 Oct 2021 21:04:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_dict.yaml index e4c28fcfaec4..d0de35138beb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_dict.yaml @@ -13,23 +13,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=true response: body: string: '{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"statistics":{"charactersCount":41,"transactionsCount":1},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"statistics":{"charactersCount":39,"transactionsCount":1},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"statistics":{"charactersCount":4,"transactionsCount":1},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"statistics":{"charactersCount":46,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: f8e20e8a-d67a-4876-8238-9da032f2d9ba + apim-request-id: 9a9ae519-7b2b-4be1-9c3a-38f4570d8f21 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 20:42:32 GMT + date: Wed, 06 Oct 2021 21:04:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '56' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=true + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_text_document_input.yaml index 5a43a3943d0f..f707168946a0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_text_document_input.yaml @@ -13,23 +13,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 574da8ee-fe69-4019-92c7-e43404d77adf + apim-request-id: 763b2fe7-bfba-4b44-b22e-b097956cc5bd content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 20:42:32 GMT + date: Wed, 06 Oct 2021 21:04:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_credentials.yaml index fc6d1e713c9e..0977a745a75a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_credentials.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 0079cc57-c1e1-4d9b-81ec-8f8344e29edc + apim-request-id: 96d34562-8b6e-43fe-8566-e67830bb43c5 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 20:42:33 GMT + date: Wed, 06 Oct 2021 21:04:14 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version_error.yaml index 8c5f2b9724e1..440802f06321 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version_error.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?model-version=bad&showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?model-version=bad&showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid model version. Possible values are: latest,2019-10-01,2020-07-01,2020-09-01,2021-01-05. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: 5dba0e9d-7bf4-422f-ae75-d35519072eb5 + apim-request-id: 88ed9f17-126c-4074-9541-b4fd1eee9318 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:34 GMT + date: Wed, 06 Oct 2021 21:04:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '6' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?model-version=bad&showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?model-version=bad&showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit.yaml index 9c99804930e7..57d53ed417bb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit.yaml @@ -759,23 +759,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 1000 records are permitted."}}}' headers: - apim-request-id: 80efc4e2-1b57-4827-919e-fa411d88c837 + apim-request-id: f5b031db-0e67-4287-9e3c-fc378f3fa9ec content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:35 GMT + date: Wed, 06 Oct 2021 21:04:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '9' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit_error.yaml index 8ac3dd2e28f1..07746a298df2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit_error.yaml @@ -724,23 +724,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 1000 records are permitted."}}}' headers: - apim-request-id: 342c7e6b-765a-45ee-a105-a6a2ff91f47a + apim-request-id: 7a86bb4f-062e-473a-892d-535d4c729f90 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:36 GMT + date: Wed, 06 Oct 2021 21:04:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '8' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_client_passed_default_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_client_passed_default_country_hint.yaml index 2833af8ab6a1..0ee0c5fa38f4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_client_passed_default_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_client_passed_default_country_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 5f94ca5f-1a03-4d02-a653-92d465726c21 + apim-request-id: 41497108-30f6-438a-ba58-caafcf901179 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:36 GMT + date: Wed, 06 Oct 2021 21:04:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "countryHint": "DE"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "countryHint": @@ -44,25 +44,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: de29f210-7705-4930-ad27-1c0edbe00433 + apim-request-id: e42f856e-4376-42b2-ac8a-30dedcdae00c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:36 GMT + date: Wed, 06 Oct 2021 21:04:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "countryHint": "CA"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "countryHint": @@ -76,23 +76,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 6e906434-ffdd-4b6a-82b2-4384bf93d61c + apim-request-id: 1c9d848b-db4f-4782-8b61-d879cfb63537 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:36 GMT + date: Wed, 06 Oct 2021 21:04:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_kwarg.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_kwarg.yaml index 299b4cd5f3a0..b99fe807251a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_kwarg.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_kwarg.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"statistics":{"charactersCount":26,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: e7d44f16-947b-404c-b659-a57fe05e0faa + apim-request-id: 428c53cd-e630-46d3-a7ae-c0b13bb76ada content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:42:36 GMT + date: Wed, 06 Oct 2021 21:04:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?model-version=latest&showStats=true + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?model-version=latest&showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_none.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_none.yaml index 3e7dcee5dd25..febac275cc52 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_none.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_none.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 69f1774a-b881-42e2-9996-fe7068fae610 + apim-request-id: ac9dc402-9788-46d3-b2fa-966aef68d9c8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:42:38 GMT + date: Wed, 06 Oct 2021 21:04:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '6' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "This is written in English.", "countryHint": ""}]}' @@ -40,25 +40,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: ed410781-869f-4e3a-9163-388ce704b5e8 + apim-request-id: 97ae8493-f5b1-43f5-9c38-49e1abc2f23c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:42:38 GMT + date: Wed, 06 Oct 2021 21:04:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '38' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false - request: body: '{"documents": [{"id": "0", "text": "this is written in english", "countryHint": ""}]}' @@ -70,25 +70,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 0241a248-38da-4c07-b10e-4476d7cd58f6 + apim-request-id: 84b8915d-69f7-4ee3-8665-506f7a6a3e2b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:42:38 GMT + date: Wed, 06 Oct 2021 21:04:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false - request: body: '{"documents": [{"id": "0", "text": "this is written in english", "countryHint": ""}]}' @@ -100,23 +100,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: dc3af545-9414-4894-95a9-ea10cfcc502d + apim-request-id: 0cb7f8fa-5448-40e7-a67e-f843da5ad301 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:42:38 GMT + date: Wed, 06 Oct 2021 21:04:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '23' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_disable_service_logs.yaml index 22a16c4c8e46..d53d05cbe274 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_disable_service_logs.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false&loggingOptOut=true response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.88},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 2a13e43d-9d53-476c-b667-4378da960116 + apim-request-id: e0cdc51c-962a-44c3-97c4-7ee0324b5ad2 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:42:39 GMT + date: Wed, 06 Oct 2021 21:04:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false&loggingOptOut=true + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false&loggingOptOut=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_no_result_attribute.yaml index 3ae83362dc7c..db38e8501be5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 82ca21b8-5155-4bae-8e6f-00f2ee93eb2b + apim-request-id: 1c2290f7-5835-4182-8e9f-2450f22f40f5 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:39 GMT + date: Wed, 06 Oct 2021 21:04:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_nonexistent_attribute.yaml index 98598cef2d02..d5917148a5b7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 2f59fc51-cdb7-49fc-aeaa-f1b0f8c3f1a7 + apim-request-id: c89fd253-c31c-4391-b22b-5a428ebf576e content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:39 GMT + date: Wed, 06 Oct 2021 21:04:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_errors.yaml index 912c48ea8d93..e01949484b0d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_errors.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -24,15 +24,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: baf1d6d4-37c4-4962-808e-6d81a6a3d2d6 + apim-request-id: 23ed9a91-8dcf-42b9-9c0a-d099cf2c8168 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:40 GMT + date: Wed, 06 Oct 2021 21:04:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_warnings.yaml index 917e4cf3dc2c..d2d6419e18ef 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_warnings.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 27a18e2a-c80d-49d2-8312-c11abbe3a681 + apim-request-id: 3618cca0-2ff0-49f1-80d0-6e258bad9d3b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:42:40 GMT + date: Wed, 06 Oct 2021 21:04:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '23' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_duplicate_ids_error.yaml index 453a5810802b..cda9f3542d3a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_duplicate_ids_error.yaml @@ -11,23 +11,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: 35b7675c-6cbf-41df-9e30-2e3334493293 + apim-request-id: 717069b3-6000-4254-9b84-72c7c6908b67 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:41 GMT + date: Wed, 06 Oct 2021 21:04:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '13' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_empty_credential_class.yaml index 0c490373fdb7..0c00426fd154 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_empty_credential_class.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 66176ca7-ecbb-4914-84ec-65375b4268fa + apim-request-id: d7c7723c-0d70-42af-bfda-15caa8857340 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 20:42:42 GMT + date: Wed, 06 Oct 2021 21:04:18 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_all_errors.yaml index e7e79e1b11c4..3b6e8676b4d7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_all_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -29,15 +29,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: d9d0a3b8-317e-47d6-82ab-c91bc04dbcfc + apim-request-id: e2a12243-a35b-4367-9b85-21b92a7e5348 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:42 GMT + date: Wed, 06 Oct 2021 21:04:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' + x-envoy-upstream-service-time: '4' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_some_errors.yaml index d7364f0dfc17..d5ac16fcdb36 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_some_errors.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,16 +25,16 @@ interactions: in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: eec1faac-2858-460f-b844-c034d6137cf4 + apim-request-id: bcbf3829-85ec-4192-b4de-8d457f569a0a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Mon, 02 Aug 2021 20:42:43 GMT + date: Wed, 06 Oct 2021 21:04:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_docs.yaml index 673584382717..0c6b124170ee 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_docs.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country code."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 06c2a1bc-1341-4139-aab2-755321dbd9e1 + apim-request-id: 3c2ebac7-ab93-49ae-b9f4-1892fc39aa4f content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:43 GMT + date: Wed, 06 Oct 2021 21:04:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_method.yaml index 2af54b1f14b8..fac4b689e9c0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_method.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country code."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: b10b5969-dd79-458a-8d1f-545b2f4201ba + apim-request-id: 8c3e6840-ea13-437f-8a2f-61ddafaeebb3 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 20:42:43 GMT + date: Wed, 06 Oct 2021 21:04:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_out_of_order_ids.yaml index 97cebe3746ed..474e8c09cb1e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"56","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"0","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"19","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: c407a28e-c32d-4a42-8bbb-6a743297d8fd + apim-request-id: 8443dedd-383a-4d08-a517-34c153c60a12 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 20:42:43 GMT + date: Wed, 06 Oct 2021 21:04:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_output_same_order_as_input.yaml index 4392920e16b7..92342ddf787b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.93},"warnings":[]},{"id":"4","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"5","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 61887549-7344-4511-b851-8090a694351a + apim-request-id: 78a0f602-c6be-4617-ae31-4a3aa4cb9e2d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Mon, 02 Aug 2021 20:42:45 GMT + date: Wed, 06 Oct 2021 21:04:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_pass_cls.yaml index 3211a2504e40..58071a59fd2c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: c4a42b6a-deac-4312-9d8f-99e2e715776b + apim-request-id: 17ba4f6f-4e11-4106-8e5d-ffb6002b974c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:42:45 GMT + date: Wed, 06 Oct 2021 21:04:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '44' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_passing_only_string.yaml index 995f4718873e..0f670392a92d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_passing_only_string.yaml @@ -13,25 +13,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[{"id":"4","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 290851f1-c99e-4651-a6ad-cb264dbb863f + apim-request-id: f9c65c91-b1fc-4167-8a7f-2097fc731967 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 20:42:46 GMT + date: Wed, 06 Oct 2021 21:04:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_per_item_dont_use_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_per_item_dont_use_country_hint.yaml index ee12368f8019..bd95b8721818 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_per_item_dont_use_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_per_item_dont_use_country_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 64a6c3f6-ce74-4006-b7f2-ac3da45956c0 + apim-request-id: 4a7987d9-1713-426e-9728-2212ba68689d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:46 GMT + date: Wed, 06 Oct 2021 21:04:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_rotate_subscription_key.yaml index 566b60930a68..6d568e2b3a9b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_rotate_subscription_key.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 7ddc9c64-e40f-44eb-8ee9-b60d568714eb + apim-request-id: 910eba28-f8b3-49a4-8cbb-0f5d87463c48 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:47 GMT + date: Wed, 06 Oct 2021 21:04:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '23' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "countryHint": "US"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "countryHint": @@ -44,23 +44,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: ba6f91be-92bc-41c2-baeb-179566dbe026 + apim-request-id: fbb75b30-d041-48ff-b0aa-9d5dfd2ebd7e content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 20:42:47 GMT + date: Wed, 06 Oct 2021 21:04:21 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "countryHint": "US"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "countryHint": @@ -74,23 +74,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 335f4547-1c25-4d76-8424-000d0876b882 + apim-request-id: 78cc564c-88c1-4f61-a41d-18c334363ee3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:47 GMT + date: Wed, 06 Oct 2021 21:04:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_show_stats_and_model_version.yaml index 926f5ef0a7ac..5837401fb4b4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 9211864a-a363-489d-b637-b021af115d07 + apim-request-id: 48be2f2b-3d30-49cb-8c3f-0ca40975296d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 20:42:47 GMT + date: Wed, 06 Oct 2021 21:04:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '23' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?model-version=latest&showStats=true + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?model-version=latest&showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_string_index_type_not_fail_v3.yaml index d661254fa462..fa5e1b21f741 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_string_index_type_not_fail_v3.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 9b292b2a-51ad-4da5-a3c6-6986c477e61f + apim-request-id: 396802f8-2654-4fde-b334-c1022d0af293 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:42:48 GMT + date: Wed, 06 Oct 2021 21:04:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.0/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.0/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_user_agent.yaml index 901b8f7e4a57..1853cac71deb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_user_agent.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 46cdf286-9582-4215-a8fc-9c9abc95b14c + apim-request-id: ab52d02b-ab06-4cc1-894d-8f3937713a37 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:48 GMT + date: Wed, 06 Oct 2021 21:04:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint.yaml index 867093a2eea6..db25c6487a13 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 9486538d-4dce-4d73-af13-e891d948d65c + apim-request-id: 7d36b336-b9ae-4f33-831c-6a58f763650f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:48 GMT + date: Wed, 06 Oct 2021 21:04:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_input.yaml index 10e95c432c2f..b95514ab0988 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 618d8376-f024-4d22-8fa9-e5e91c2f67ff + apim-request-id: d2c72681-788d-4872-bbeb-77600a52e4b0 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:49 GMT + date: Wed, 06 Oct 2021 21:04:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_per_item_hints.yaml index bec4847eb87d..85104754b252 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 5b192e61-81e4-48d5-b2cd-f79e5472c2b5 + apim-request-id: b66280a5-e64c-4021-931d-4e346e6d3a9a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:49 GMT + date: Wed, 06 Oct 2021 21:04:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '7' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_input.yaml index e299ae448911..0b349d8badb1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 865c4194-2ece-45af-a967-e0392f51cc37 + apim-request-id: 3e6b7461-88fa-4d0f-bb9c-e2736927abcd content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:49 GMT + date: Wed, 06 Oct 2021 21:04:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_per_item_hints.yaml index adb6faa8c176..bcd88810ec8c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"4","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 95d64c68-87b6-4158-8a9b-8994366574e3 + apim-request-id: c7a4c01d-944e-4046-bde9-6d9d7f64f0e7 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:50 GMT + date: Wed, 06 Oct 2021 21:04:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_dont_use_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_dont_use_country_hint.yaml index 5235989a3df9..0b7f664fad87 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_dont_use_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_dont_use_country_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 67f5e1a7-77b1-4fb8-adaf-0f4991add6a0 + apim-request-id: 70f477e1-dc17-4eca-abc2-a17985e813cb content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 20:42:50 GMT + date: Wed, 06 Oct 2021 21:04:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/languages?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfc.yaml index 5be1f6af2cf6..baef9c2145f2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfc.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfc.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"a\xF1o SSN: ***********\",\"id\"\ @@ -25,13 +25,13 @@ interactions: errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 671bbe52-b969-4d34-9788-a02b3dd258dc + - 232cff4c-1c0e-4ce6-8da9-f86f650744d6 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:47:15 GMT + - Wed, 06 Oct 2021 21:04:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10956' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfd.yaml index 2e6375be1213..19321b78075d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfd.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfd.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"an\u0303o SSN: ***********\",\"\ @@ -25,13 +25,13 @@ interactions: errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 56c90146-8561-4650-924d-e7ba7603230a + - ddb400d2-6dd8-49b3-a7da-b56fc6910483 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:47:24 GMT + - Wed, 06 Oct 2021 21:04:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10195' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji.yaml index 8aabd08351fd..2d71c49d749c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\U0001F469 SSN: ***********\",\"\ @@ -25,13 +25,13 @@ interactions: errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 0ad5084b-863d-492b-9ded-aa68dadec244 + - ca73ac00-a40c-49d9-b141-0d6d01fd63f9 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:47:36 GMT + - Wed, 06 Oct 2021 21:04:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10645' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family.yaml index 11bbcdd7399c..f88abf0eeee2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\U0001F469\u200D\U0001F469\u200D\ @@ -26,13 +26,13 @@ interactions: :[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 69dd4e19-8466-4e42-8baf-86b64da6650a + - 2d1f9da0-256c-4a34-af7d-5f039142c352 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:47:48 GMT + - Wed, 06 Oct 2021 21:04:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11286' + - '34' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family_with_skin_tone_modifier.yaml index 116b6038cf21..a44a49bd34ef 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family_with_skin_tone_modifier.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family_with_skin_tone_modifier.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB\u200D\U0001F469\ @@ -26,13 +26,13 @@ interactions: errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 1f9abe25-8be5-4f74-8982-445c8fd7724e + - 7f243014-b76c-4c9c-858a-14fa2e52e174 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:47:50 GMT + - Wed, 06 Oct 2021 21:04:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '502' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_with_skin_tone_modifier.yaml index 16b4eb9af683..b069ce036ca4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_with_skin_tone_modifier.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_with_skin_tone_modifier.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB SSN: ***********\"\ @@ -25,13 +25,13 @@ interactions: errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - ed689bbb-563e-4c9c-bbb4-bff24336e6d2 + - 30c48386-b531-4a84-9086-818edfb495da content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:47:50 GMT + - Wed, 06 Oct 2021 21:04:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '355' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfc.yaml index a1570fb68cae..ac5cc533ae09 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfc.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfc.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\ @@ -25,13 +25,13 @@ interactions: errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - b6ccba31-555f-4084-b7b6-498a7b66f337 + - e17cc662-62b5-4096-8593-c94d177bf9c1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:48:03 GMT + - Wed, 06 Oct 2021 21:04:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11636' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfd.yaml index d150a46ce098..f9388075dea5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfd.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfd.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\ @@ -25,13 +25,13 @@ interactions: errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - d6473258-5cca-45ce-9bdd-562bcdc30c9e + - 375f60a0-2eba-4525-ac79-20a67185f21f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:48:13 GMT + - Wed, 06 Oct 2021 21:04:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10646' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_zalgo_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_zalgo_text.yaml index a8546eeea3ef..aac1ff3bd02a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_zalgo_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_zalgo_text.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"o\u0335\u0308\u0307\u0312\u0303\ @@ -34,13 +34,13 @@ interactions: modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 617017ed-b83b-4fd1-8ffa-21b69cf7e651 + - b098ec65-a14d-4cb6-97af-d30024db4382 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 20:48:15 GMT + - Wed, 06 Oct 2021 21:04:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -48,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '107' + - '57' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfc.yaml index c2940bc543f0..41236d7be8b6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfc.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfc.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"a\xF1o SSN: ***********\",\"id\"\ @@ -20,16 +20,16 @@ interactions: ,\"offset\":9,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 51d95e1c-31b6-49e7-887b-a373c88c6362 + apim-request-id: cd08e06c-83ba-4f6f-84a3-43cacd41bf1d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:53:15 GMT + date: Wed, 06 Oct 2021 21:04:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '428' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfd.yaml index ad08c6755b9b..3ea5f455463c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfd.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfd.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"an\u0303o SSN: ***********\",\"\ @@ -20,16 +20,16 @@ interactions: ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 820b44df-0032-4877-8198-381090b80467 + apim-request-id: c87ad575-cd67-4931-85b3-819c3ab6075c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:53:15 GMT + date: Wed, 06 Oct 2021 21:04:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '548' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji.yaml index 49aa29b98485..ef9670b7bdd5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\U0001F469 SSN: ***********\",\"\ @@ -20,16 +20,16 @@ interactions: ,\"offset\":7,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 9b1384ee-a517-4605-861a-8f9f42ca0462 + apim-request-id: 1abfdd71-156d-4a63-bf47-8581615685ba content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:53:16 GMT + date: Wed, 06 Oct 2021 21:04:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '407' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family.yaml index 267d3754c37d..98a825ad06ec 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\U0001F469\u200D\U0001F469\u200D\ @@ -21,16 +21,16 @@ interactions: :13,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\"\ :[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: f3502f20-124e-4b8a-8a5a-beee828a00d0 + apim-request-id: 34f4052a-8f96-4b8a-8d08-6bd8b3c87945 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:53:17 GMT + date: Wed, 06 Oct 2021 21:04:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '475' + x-envoy-upstream-service-time: '28' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family_with_skin_tone_modifier.yaml index d383f5027973..f4e505f5e415 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family_with_skin_tone_modifier.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family_with_skin_tone_modifier.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB\u200D\U0001F469\ @@ -21,16 +21,16 @@ interactions: ,\"offset\":17,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 71431bb8-b6c1-4364-9190-fca6e6e7d02a + apim-request-id: aefccd75-39d6-4914-ba64-135b1eb22df1 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:53:18 GMT + date: Wed, 06 Oct 2021 21:04:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '511' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_with_skin_tone_modifier.yaml index 714a17dba879..f173584372fd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_with_skin_tone_modifier.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_with_skin_tone_modifier.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB SSN: ***********\"\ @@ -20,16 +20,16 @@ interactions: ,\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: c8a2c644-6bc1-4f4c-ae03-a3938623b6ce + apim-request-id: 6ee852c0-b8b3-4fc9-850c-1881a1c2e054 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:53:19 GMT + date: Wed, 06 Oct 2021 21:04:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '394' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfc.yaml index f17a50a09951..0282ebc7c188 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfc.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfc.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\ @@ -20,16 +20,16 @@ interactions: ,\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 02ebeb1f-9dbe-4f17-8718-cb2ff3cf988a + apim-request-id: 3e0d00ad-32a6-4262-bd98-3a7a197772da content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:53:20 GMT + date: Wed, 06 Oct 2021 21:04:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '377' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfd.yaml index 57fdc0b48cb4..41d39554f9fc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfd.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfd.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\ @@ -20,16 +20,16 @@ interactions: ,\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 05af4bd7-2aa6-49b1-9746-14c57bb56c25 + apim-request-id: e53413ad-5317-443d-b148-d2c0306a4696 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:53:20 GMT + date: Wed, 06 Oct 2021 21:04:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '44' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_zalgo_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_zalgo_text.yaml index 5aa82c4ce90f..953b951f2249 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_zalgo_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_zalgo_text.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"o\u0335\u0308\u0307\u0312\u0303\ @@ -29,16 +29,16 @@ interactions: length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"\ modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: d04aa78f-6135-4a28-acc2-92dda9e9f9fd + apim-request-id: 6b4ee1a1-f71f-4f34-b9cb-5eb6e26f8cb6 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 20:53:21 GMT + date: Wed, 06 Oct 2021 21:04:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '543' + x-envoy-upstream-service-time: '57' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_dict.yaml index 9f7e4f7e44dc..9c2844dcbda0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_dict.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=true response: body: string: '{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill @@ -25,13 +25,13 @@ interactions: Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 42c358da-91b1-408d-a2aa-ea15ae406d9a + - 983c0836-c5e7-4b82-ad12-d569f239a833 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Mon, 02 Aug 2021 21:04:59 GMT + - Wed, 06 Oct 2021 21:04:27 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5231' + - '12' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_text_document_input.yaml index 5c01f562cb08..408a978ceedc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_text_document_input.yaml @@ -15,22 +15,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a1d28287-9cd4-40ad-bbda-fea4128d2dad + - 877c88c4-9af5-4836-b43f-5196dfd0a59c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Mon, 02 Aug 2021 21:05:00 GMT + - Wed, 06 Oct 2021 21:04:27 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '221' + - '13' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_credentials.yaml index 31375845f05d..f9e9557206dc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_credentials.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - d3891dff-490c-4f14-9bbb-a3343b95ab2c + - d823a6dc-a74c-415a-a6e8-9e9ca4952c6c content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:05:00 GMT + - Wed, 06 Oct 2021 21:04:28 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_model_version_error.yaml index 461733c14297..c80f542b7518 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_model_version_error.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?model-version=bad&showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?model-version=bad&showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid @@ -24,11 +24,11 @@ interactions: For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - f9fce8d8-1c33-44f4-9201-a0835eeb1591 + - 5f170022-3dc9-418e-bd90-638ceb3662e5 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:06 GMT + - Wed, 06 Oct 2021 21:04:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5515' + - '4' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit.yaml index 8fe4c5fcbc67..ab08d1a7461f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - e6592fb9-ea61-428b-81ec-c16100b07404 + - 6e089cbc-8338-42cb-8a59-226cb58022b2 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:12 GMT + - Wed, 06 Oct 2021 21:04:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -779,7 +779,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5160' + - '15' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit_error.yaml index e08bbdca763f..d667539048a2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - f1299cc4-f408-4c51-bae2-59c6a3c42310 + - f388ebcd-117f-4086-86a4-b4b55f66530c content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:18 GMT + - Wed, 06 Oct 2021 21:04:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -744,7 +744,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5112' + - '10' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_client_passed_default_language_hint.yaml index a609b8f3038a..ce6a182938ed 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_client_passed_default_language_hint.yaml @@ -16,22 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f8f669e0-411f-40df-a0a8-fe9c6d78b142 + - a1880740-b6b3-485a-9e17-b8b667224e75 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:24 GMT + - Wed, 06 Oct 2021 21:04:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5275' + - '324' status: code: 200 message: OK @@ -60,22 +60,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 929de9d0-dcab-4272-bb98-5a01dbbb3976 + - c57d322b-6b89-44a7-a251-1f7a646c9488 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:24 GMT + - Wed, 06 Oct 2021 21:04:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -83,7 +83,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '55' + - '56' status: code: 200 message: OK @@ -104,22 +104,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 97e86d7d-2028-4580-a5aa-508f07d768ee + - 49c6a04d-825d-49dd-9ca4-29b6f6a761f5 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:24 GMT + - Wed, 06 Oct 2021 21:04:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -127,7 +127,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '105' + - '73' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_disable_service_logs.yaml index 178ea72ed92b..140f48936f59 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_disable_service_logs.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false&loggingOptOut=true response: body: string: '{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 824778d0-0946-4f9a-a5c4-b42a4dd70496 + - b0cb2313-b38c-404c-8068-9ae59e4db80f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:05:25 GMT + - Wed, 06 Oct 2021 21:04:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '43' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_no_result_attribute.yaml index 66f946a0a316..7dcbb15683a5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_no_result_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 1d620f02-6b29-48d9-af24-fd95f6e734d4 + - 9f58e025-a815-4bb9-9205-780cd7bef27c content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:31 GMT + - Wed, 06 Oct 2021 21:04:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5345' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_nonexistent_attribute.yaml index c0591a5aab44..406ffae0f64a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 5f443381-2cc3-46cd-a585-a4acbf3ace01 + - 6687427f-6602-42b0-ba1d-3f0bfbecb8c1 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:31 GMT + - Wed, 06 Oct 2021 21:04:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_errors.yaml index 54de6d15dd97..674023827246 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -33,11 +33,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ad4cfd10-3c67-45d9-ab83-88bb8a693535 + - 031c1284-7cef-48bf-ad55-f69a0ac469ce content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:32 GMT + - Wed, 06 Oct 2021 21:04:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_duplicate_ids_error.yaml index bc2c4c9da990..4c9e06b0893a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 37918354-1674-428b-9946-c929897a49ab + - 1615814e-b0f5-4b9e-abea-976a289a1952 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:33 GMT + - Wed, 06 Oct 2021 21:04:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '7' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_empty_credential_class.yaml index 8fce73fd44b2..3baaa1283c41 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_empty_credential_class.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 4a155d62-5d76-43c7-9362-085dbb768bdf + - fb46d679-c0c9-4f73-b011-835a9eb40aeb content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:05:33 GMT + - Wed, 06 Oct 2021 21:04:31 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_all_errors.yaml index 22ec852d068c..a56111a78978 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_all_errors.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -28,11 +28,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 5bff1ec4-a259-42c6-937d-1beaeaa9cbf4 + - 979fa878-0bf7-4d8a-8831-e4885ef15f42 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:33 GMT + - Wed, 06 Oct 2021 21:04:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_some_errors.yaml index 43c6fe87a3d8..745ae444505a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_some_errors.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 37ff03af-3e89-4136-a7f8-10737c8b0c3a + - b18c6829-e874-4dd5-8aaa-08831caec715 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:05:34 GMT + - Wed, 06 Oct 2021 21:04:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '233' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_docs.yaml index f164a7b57681..0985a84cf59c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_docs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - e7e37f7f-7df6-4217-8dd8-983c59cb2f89 + - 4a5e545f-0439-403a-80ea-25dd80239e34 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:35 GMT + - Wed, 06 Oct 2021 21:04:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_method.yaml index 007f9265e9ba..93a9ebffbd56 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_method.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - e3c88013-acb3-4c31-a00e-148978453f9a + - c699b5be-2e05-4b47-9810-3fe299a3b023 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:35 GMT + - Wed, 06 Oct 2021 21:04:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_language_kwarg_spanish.yaml index 94085cf29511..6b17d3f88cb7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_language_kwarg_spanish.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","keyPhrases":["Bill Gates","CEO","Microsoft"],"statistics":{"charactersCount":35,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c456bf24-44b4-406f-b944-0fbe280911c0 + - a090b05d-0422-470d-9bb9-13c9d2e70194 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:05:36 GMT + - Wed, 06 Oct 2021 21:04:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '110' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_out_of_order_ids.yaml index 7ea626c01e61..5f3856b69a9b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_out_of_order_ids.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 62758b98-e374-454e-85f8-b3e05fa43a52 + - 582d85e0-ba4f-48b0-9a9e-2bf511315317 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 21:05:37 GMT + - Wed, 06 Oct 2021 21:04:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '97' + - '144' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_output_same_order_as_input.yaml index 687f8a4fa8e2..ae03bdceb6c0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a2d42dfb-06d5-4040-af1d-745e99f991ba + - 159a1e5f-029c-48f0-accb-3e639003d4ec content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Mon, 02 Aug 2021 21:05:38 GMT + - Wed, 06 Oct 2021 21:04:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '36' + - '48' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_pass_cls.yaml index 836cc6fe1f55..621766c0aaac 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"0","keyPhrases":["Test","cls","endpoint"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - d900052e-592d-44b5-b615-4fa34cecf40b + - fc5ebe2b-a5f9-4fc9-ad81-e8e094eafcd8 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:05:38 GMT + - Wed, 06 Oct 2021 21:04:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '82' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_passing_only_string.yaml index fcc338e9328a..201fbb4e3d37 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_passing_only_string.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"0","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"1","keyPhrases":["Bill @@ -27,13 +27,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ec37f2f3-23bd-4269-8c2d-de32bddddbaf + - c8ad629f-5b04-4004-978b-f4717dd778ef content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Mon, 02 Aug 2021 21:05:39 GMT + - Wed, 06 Oct 2021 21:04:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_per_item_dont_use_language_hint.yaml index 2d726a19ad0e..89a8b8be6aba 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_per_item_dont_use_language_hint.yaml @@ -16,22 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a6f5a53a-2828-468a-88d4-b386886f61f4 + - a32160a2-55bc-42ad-bafe-8202525d8269 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:39 GMT + - Wed, 06 Oct 2021 21:04:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_rotate_subscription_key.yaml index 41d48f97eed1..d4d845b3b235 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_rotate_subscription_key.yaml @@ -16,22 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - fadbc289-be4d-4819-9cc9-2cb9f1e224a2 + - 387fd780-aaf6-4c25-b17d-1723f4ff8112 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:40 GMT + - Wed, 06 Oct 2021 21:04:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '33' + - '10' status: code: 200 message: OK @@ -60,9 +60,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -70,13 +70,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 9cd05957-ca31-4c0a-b958-02e62b2a3042 + - 0a0a17e2-44dd-4758-814e-2751ae561b70 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:05:40 GMT + - Wed, 06 Oct 2021 21:04:36 GMT status: code: 401 message: PermissionDenied @@ -97,22 +97,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ad0e552c-cefa-429c-8ae7-e5fbe9958a12 + - 665e0d95-c0ae-445a-9ae0-be65b8fdd1c7 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:40 GMT + - Wed, 06 Oct 2021 21:04:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -120,7 +120,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_show_stats_and_model_version.yaml index ec43dc577c9a..9869f8984252 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_show_stats_and_model_version.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 65d75a87-c79b-4f84-9ce3-747b05024f72 + - e6660020-f76b-40bd-bd23-997b8ee5b011 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 21:05:41 GMT + - Wed, 06 Oct 2021 21:04:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_string_index_type_not_fail_v3.yaml index 2b4929f1681b..eca633b41d91 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_string_index_type_not_fail_v3.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/keyPhrases?showStats=false response: @@ -21,13 +21,13 @@ interactions: string: '{"documents":[{"id":"0","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 25c34be9-197e-41c8-b186-db26b7cd1440 + - 7470b865-a897-4fa3-8eaf-e3233524b15f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:05:41 GMT + - Wed, 06 Oct 2021 21:04:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '32' + - '71' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_too_many_documents.yaml index e94d03a500a2..7fc8b6b343b3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_too_many_documents.yaml @@ -19,20 +19,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - 0decb6ba-e1ad-4005-a2ab-2b971f49cbe6 + - bb25bf13-b818-4fc4-9253-8e4d5c4f4d89 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:05:41 GMT + - Wed, 06 Oct 2021 21:04:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_user_agent.yaml index 7c3c5f5693c7..5c5d18e28156 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_user_agent.yaml @@ -16,22 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f2628a2e-fca9-4d05-87c4-0fcc5ea08923 + - 8cfe4da3-fe21-4e97-b05d-c95ead481651 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:42 GMT + - Wed, 06 Oct 2021 21:04:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '12' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_dont_use_language_hint.yaml index 5f916fe19a36..e9115fea4a14 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f2a0d599-339f-4bf3-beb2-22924669ffe4 + - 21392ba9-ddb1-4c45-b360-322117434a37 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:42 GMT + - Wed, 06 Oct 2021 21:04:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint.yaml index 2ade963d8d1b..4274d6390e41 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 7f2fbd14-1ee4-480c-b1b4-a97703bc44cd + - 517380a0-e889-492c-8e10-ea4fbfe6e872 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:44 GMT + - Wed, 06 Oct 2021 21:04:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '46' + - '13' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 156a26d15574..0575a65ba8dd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,22 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - b6bbe47e-0244-4ed5-b726-e212542f4818 + - 2f73291f-13d7-4546-adf1-0a98c1d9d0ac content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:44 GMT + - Wed, 06 Oct 2021 21:04:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '46' + - '13' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_input.yaml index 078b3093d216..1c9786ed5d83 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,24 +16,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"cat\",\"veterinarian\"\ ],\"warnings\":[]},{\"id\":\"4\",\"keyPhrases\":[\"Espa\xF1ol\",\"document\"\ - ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u305B\"],\"warnings\"\ - :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u306F\u5E78\u305B\"],\"\ + warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: apim-request-id: - - f729cee9-daf6-4867-85bb-da784dfa7bd8 + - ed93f859-953f-4484-949d-08ee666b9db2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:45 GMT + - Wed, 06 Oct 2021 21:04:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '36' + - '13' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 02a95f4ec7c8..0d38ea859ee4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,24 +16,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"cat\",\"veterinarian\"\ ],\"warnings\":[]},{\"id\":\"2\",\"keyPhrases\":[\"Espa\xF1ol\",\"document\"\ - ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u305B\"],\"warnings\"\ - :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u306F\u5E78\u305B\"],\"\ + warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: apim-request-id: - - 6eec1d6b-6743-4343-9eb7-630a2f0a58ed + - 72d7708c-7167-434e-bfac-1fdd8b9d8983 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:05:45 GMT + - Wed, 06 Oct 2021 21:04:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '42' + - '148' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_dict.yaml index fab18284cac5..d00b1fb468bc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_dict.yaml @@ -11,25 +11,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=true response: body: string: '{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":50,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: b15bf1ce-a0b1-4419-8edb-b1058187b230 + apim-request-id: 4c4235e9-a398-4978-b3eb-45ece4ede89b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Mon, 02 Aug 2021 21:05:54 GMT + date: Wed, 06 Oct 2021 21:04:39 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '175' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=true + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_text_document_input.yaml index f0e226b177ce..a6bfe8c83308 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_text_document_input.yaml @@ -11,24 +11,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 41565c69-c804-44ee-954d-a04279251a85 + apim-request-id: aaec8719-936c-4add-a164-5d444559b076 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Mon, 02 Aug 2021 21:05:55 GMT + date: Wed, 06 Oct 2021 21:04:39 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '181' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_credentials.yaml index ea4b8630590a..3534b8313950 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_credentials.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: c9ba1da3-c9bf-4981-a7b3-66d73685594f + apim-request-id: 1ed56f7a-061e-4e65-8b5a-224274f25be4 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:05:55 GMT + date: Wed, 06 Oct 2021 21:04:39 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version_error.yaml index 701ddce3cc85..aaef929391b3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version_error.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?model-version=bad&showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?model-version=bad&showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid model version. Possible values are: latest,2019-10-01,2020-07-01,2021-06-01. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: 0d25bd98-5ae5-4011-97d9-1fbf3580d658 + apim-request-id: 1f9c0416-93f1-461f-8c40-35b875b7358e content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:05:56 GMT + date: Wed, 06 Oct 2021 21:04:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '11' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?model-version=bad&showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?model-version=bad&showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit.yaml index 8e87b3864a65..7650f419fd01 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit.yaml @@ -754,23 +754,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 2b6f7e7f-7c8c-4a09-ad94-96db309faa9f + apim-request-id: 3651b60b-912c-48a4-a569-260352413350 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:05:57 GMT + date: Wed, 06 Oct 2021 21:04:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '13' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit_error.yaml index 3526ec1a4693..3b634eb9f6fb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 8de1f409-2b70-4c9f-a550-af3a8d33529e + apim-request-id: 4e91c4f4-9dd3-40c0-adb7-85bd7a45f3c5 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:05:58 GMT + date: Wed, 06 Oct 2021 21:04:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '12' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_client_passed_default_language_hint.yaml index 0dd60032c895..a8808165144a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_client_passed_default_language_hint.yaml @@ -12,26 +12,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 71fe5aa6-1cc5-4683-8d59-dad08b35b995 + apim-request-id: e858d960-9c07-4e73-a8b6-949da67661a5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:05:59 GMT + date: Wed, 06 Oct 2021 21:04:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '39' + x-envoy-upstream-service-time: '307' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -45,26 +45,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 4448b2fc-eb67-4c75-b56a-7cdf798736a2 + apim-request-id: fa02079d-af27-4a49-8307-61255055119e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:05:59 GMT + date: Wed, 06 Oct 2021 21:04:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -78,24 +78,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: f18983ee-ad1b-4b83-a9fe-0de1bc66e69a + apim-request-id: 3efe6f81-d223-453e-9cfe-3bf925752df7 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:05:59 GMT + date: Wed, 06 Oct 2021 21:04:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '39' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_disable_service_logs.yaml index 11616642df3f..bae251e19004 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_disable_service_logs.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false&loggingOptOut=true response: body: string: '{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 5a3b4489-a2fd-41b6-8c4b-083404a2237b + apim-request-id: 185fc880-3bf0-4460-8c88-00f4fdad8a80 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:05:59 GMT + date: Wed, 06 Oct 2021 21:04:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false&loggingOptOut=true + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false&loggingOptOut=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_no_result_attribute.yaml index 09823e14e671..f2a5e2ed3edd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 68c904c0-016a-44f8-a191-d0046dff71a2 + apim-request-id: 645bd0ca-f0a0-4b64-b043-dd0c5eb8ac44 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:06:00 GMT + date: Wed, 06 Oct 2021 21:04:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_nonexistent_attribute.yaml index 8d0e2df8e7af..43ba94a234ef 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 754b74d5-5756-49dc-b575-e69d939f4c4c + apim-request-id: 7f0a5de4-924f-498e-a863-fcc4e8103b51 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:06:00 GMT + date: Wed, 06 Oct 2021 21:04:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_errors.yaml index 136b9a6269b6..585603f58c57 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -28,15 +28,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 7f3776c4-afc1-4136-a307-2faed8bb1e0b + apim-request-id: d24a0cd3-f52b-4f75-a133-c3e955ce0142 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:06:01 GMT + date: Wed, 06 Oct 2021 21:04:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_duplicate_ids_error.yaml index ce21cacd8c1a..a58353f54caa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: 79e034cf-4275-4795-b267-9eee5dc44705 + apim-request-id: d48fbc4f-ecc5-4f11-a444-99df0cf46fdc content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:06:01 GMT + date: Wed, 06 Oct 2021 21:04:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '5' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_empty_credential_class.yaml index 14b89525f3fc..1d1a3b4deaf5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_empty_credential_class.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 52ebee45-b521-49d8-bd6e-fb064fa3c0b6 + apim-request-id: 04e144ed-5f16-48e6-b23d-9fb5042b7f82 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:06:01 GMT + date: Wed, 06 Oct 2021 21:04:43 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_all_errors.yaml index 8c7d16be4f45..1392c9d95354 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_all_errors.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,15 +23,15 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c097f4b7-7bc9-43a0-a16e-7e5b4e936a17 + apim-request-id: 1ed1cf82-5c05-42a6-ba41-93cc89e7d4c0 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:06:02 GMT + date: Wed, 06 Oct 2021 21:04:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_some_errors.yaml index 0940678b829d..ce8f487e8412 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_some_errors.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -21,16 +21,16 @@ interactions: language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: ef49991d-86ea-4bad-8e19-f2d5d32f402a + apim-request-id: 93e9e06f-98a0-4d43-b334-9e56a015ddc0 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:06:02 GMT + date: Wed, 06 Oct 2021 21:04:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '34' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_docs.yaml index f6759e51fa26..4c28a2aacf9b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_docs.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 7e5068c9-871e-43b1-99f5-dbd64cb2a8d9 + apim-request-id: 0c036589-d639-49e3-89fb-92a6a40cbbb5 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:06:03 GMT + date: Wed, 06 Oct 2021 21:04:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_method.yaml index 62c644802619..a5040e8986b9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_method.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e4c19e3f-3431-4773-bca9-0f1edb87688d + apim-request-id: a8ed0e8a-c7d6-40e6-9c5a-907693cebc5c content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:06:03 GMT + date: Wed, 06 Oct 2021 21:04:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_language_kwarg_spanish.yaml index 5ff129c1fda3..d13ab7690e07 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_language_kwarg_spanish.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","keyPhrases":["Bill Gates","CEO","Microsoft"],"statistics":{"charactersCount":35,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 7b9a5fc1-1ebb-4390-91a0-4c42bb406cd7 + apim-request-id: 94becafd-dfbb-4f0e-8f43-a6070e0c7afa content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:06:04 GMT + date: Wed, 06 Oct 2021 21:04:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?model-version=latest&showStats=true + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?model-version=latest&showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_out_of_order_ids.yaml index b38417b4c551..4da7e2aea05d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 393c7e6d-820f-41bf-abc3-d4bd68d84c95 + apim-request-id: 727e5d7b-1c99-4bae-859b-925746b7b359 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 21:06:04 GMT + date: Wed, 06 Oct 2021 21:04:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '50' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_output_same_order_as_input.yaml index 15014548b600..c6fcd56df94f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 5b3a70e7-1ac5-4b4b-ad9b-985d12a0ab36 + apim-request-id: 503a7e57-66e1-4b00-9ab8-030f740382eb content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Mon, 02 Aug 2021 21:06:04 GMT + date: Wed, 06 Oct 2021 21:04:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_pass_cls.yaml index 485a9b4022de..48a4538fbcfd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"0","keyPhrases":["Test","cls","endpoint"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 007a5fcf-30f2-402b-b74c-2beceb6dcbe6 + apim-request-id: 00c3278a-2f84-4cc0-825b-5cceed47cf5b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:06:05 GMT + date: Wed, 06 Oct 2021 21:04:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_passing_only_string.yaml index 83a320617e84..a80b94d6684d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_passing_only_string.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"0","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"1","keyPhrases":["Bill @@ -22,16 +22,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 5c5b4fd8-dd6b-4c8d-9e96-0691aa12d38a + apim-request-id: f8ce980a-86f7-40e7-a877-6cd950d1f11f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Mon, 02 Aug 2021 21:06:06 GMT + date: Wed, 06 Oct 2021 21:04:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_per_item_dont_use_language_hint.yaml index f6ac801b1462..1f74f297ff22 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_per_item_dont_use_language_hint.yaml @@ -12,24 +12,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 4e4bb973-10f5-484e-a486-8943b9b9226e + apim-request-id: 63ba05aa-fef3-46de-a7ca-740d7236e8c0 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:06:05 GMT + date: Wed, 06 Oct 2021 21:04:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_rotate_subscription_key.yaml index 5fb87fed0eab..a175c09971dd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_rotate_subscription_key.yaml @@ -12,26 +12,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: b9c8153e-37ef-4804-b03b-361dc76ae322 + apim-request-id: f54f848f-3a06-4c2b-85d7-a1596ffd4109 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:06:06 GMT + date: Wed, 06 Oct 2021 21:04:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -45,23 +45,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: e8ac84df-1c9e-4398-9d82-dbbe6bd26de4 + apim-request-id: 2caddd03-5452-49ff-adfd-ab8f2dd9222f content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:06:07 GMT + date: Wed, 06 Oct 2021 21:04:45 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -75,24 +75,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 1d347265-fb1a-46a8-a9bf-4b88e8a17b30 + apim-request-id: ce37d17a-16cf-4c23-9ebc-b4cb254c2454 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:06:07 GMT + date: Wed, 06 Oct 2021 21:04:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_show_stats_and_model_version.yaml index d8b39ead954c..6fb8456b7f3b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 8e4a95ca-d195-4fd9-bc90-b50de695f37e + apim-request-id: 64624a19-211e-4148-83d4-c7f67dc26796 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 21:06:07 GMT + date: Wed, 06 Oct 2021 21:04:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?model-version=latest&showStats=true + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?model-version=latest&showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_string_index_type_not_fail_v3.yaml index 80be0c5f6027..624b2fe97013 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_string_index_type_not_fail_v3.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"0","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 3347cdbf-5cdf-41f1-bc4c-06984e8064df + apim-request-id: aa492b58-7586-4fe5-8f1f-a07ac83b6bff content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:06:08 GMT + date: Wed, 06 Oct 2021 21:04:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.0/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.0/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_too_many_documents.yaml index 005d84503a75..8c6481cbceab 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_too_many_documents.yaml @@ -15,23 +15,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 968951a6-be13-488f-bb1b-0fbdfd5fd27c + apim-request-id: 695c8bfd-fc19-438e-9e4b-807fb98e1c63 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:06:07 GMT + date: Wed, 06 Oct 2021 21:04:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_user_agent.yaml index 370f2beeb294..eccd70f6c14c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_user_agent.yaml @@ -12,24 +12,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 8f2bbd92-0420-407a-8401-0a8b4d0124b1 + apim-request-id: 90fe610e-a904-49f8-a304-c774f81d2dbe content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:06:08 GMT + date: Wed, 06 Oct 2021 21:04:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_dont_use_language_hint.yaml index cd3a8b7378a6..f5007438956e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 56dd2014-6df6-467c-bb96-f1e42e8fa26e + apim-request-id: 2ca4ba7b-25eb-495c-8bff-e3816794a4eb content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:06:09 GMT + date: Wed, 06 Oct 2021 21:04:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '37' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint.yaml index 0b83c198fdeb..cdd1052e0780 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 96c5e15d-d0f7-49e0-81c8-03f329bc902f + apim-request-id: 455ca9ba-04d1-4fc0-8e4c-52df855b94bb content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:06:09 GMT + date: Wed, 06 Oct 2021 21:04:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '37' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 1afb3daf263e..622d6f73b9cf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,24 +12,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 73103e3a-da25-4c60-8322-aaceb9dd65c7 + apim-request-id: e428928c-9aa0-407b-b4bc-fa59e01cedcf content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:06:09 GMT + date: Wed, 06 Oct 2021 21:04:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_input.yaml index 17b4db2a420a..198b383a894f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,26 +12,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"cat\",\"veterinarian\"\ ],\"warnings\":[]},{\"id\":\"4\",\"keyPhrases\":[\"Espa\xF1ol\",\"document\"\ - ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u305B\"],\"warnings\"\ - :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u306F\u5E78\u305B\"],\"\ + warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: - apim-request-id: bb9824fb-204a-4631-8f3f-2dd510eb5646 + apim-request-id: 29698525-b045-4809-a0b8-a5f855265c5a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:06:10 GMT + date: Wed, 06 Oct 2021 21:04:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index e6ec3d550551..58a8dcb070aa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,26 +12,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/keyPhrases?showStats=false response: body: string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"cat\",\"veterinarian\"\ ],\"warnings\":[]},{\"id\":\"2\",\"keyPhrases\":[\"Espa\xF1ol\",\"document\"\ - ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u305B\"],\"warnings\"\ - :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u306F\u5E78\u305B\"],\"\ + warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: - apim-request-id: 3ac23e9d-87a7-4bd8-a9f6-d578a4aa6d46 + apim-request-id: 52799a62-d39b-4b11-adba-234641e24c2c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:06:11 GMT + date: Wed, 06 Oct 2021 21:04:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '29' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/keyPhrases?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_dict.yaml index 1201d252abe5..48135cd2b113 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_dict.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":68,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -30,13 +30,13 @@ interactions: April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' headers: apim-request-id: - - 8aed0b0d-1dab-43a6-8439-608fa7ef2888 + - cb863621-2722-45ae-b703-3d0580118874 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:11:48 GMT + - Wed, 06 Oct 2021 21:04:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5823' + - '205' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_text_document_input.yaml index 6c6d02e0a245..529d5dc11a77 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_text_document_input.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -30,13 +30,13 @@ interactions: April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' headers: apim-request-id: - - fb5166f9-cf29-4f6b-b267-ab8e386c1220 + - 75fafb86-b2c4-424e-b4f3-b8891dc13adc content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:11:54 GMT + - Wed, 06 Oct 2021 21:04:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5257' + - '102' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_credentials.yaml index 2d581e3731e3..579634493f01 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_credentials.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - f7a6b445-a595-423a-9c4c-f46cec75acdd + - 3ec231e4-e860-4d14-a5f8-f1696537bc27 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:11:55 GMT + - Wed, 06 Oct 2021 21:04:48 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_model_version_error.yaml index bc6052f877f4..5e6cad367dd8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_model_version_error.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid @@ -24,11 +24,11 @@ interactions: For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - bc09a392-ad09-4166-b6b4-9d673af93669 + - e0dcef04-f0f1-4250-ad18-7e5d9c1f7f89 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:01 GMT + - Wed, 06 Oct 2021 21:04:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5446' + - '4' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit.yaml index 88762bdffdfb..5df6337421d1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 6375b842-e71e-4b70-b813-e03745e5f276 + - 7e2c7579-ea89-4185-b6d2-612cd54d8d4b content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:02 GMT + - Wed, 06 Oct 2021 21:04:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -779,7 +779,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '9' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit_error.yaml index 7a2a4bbbe185..88fc56689ce1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 03345101-7baa-4045-aa17-a31210f375b3 + - ae533611-7a64-4382-84c5-5209f23af431 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:08 GMT + - Wed, 06 Oct 2021 21:04:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -744,7 +744,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5574' + - '8' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_client_passed_default_language_hint.yaml index ec42ea124906..85f5beebb9c9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_client_passed_default_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f5085fdb-2dab-4172-96a2-18f97ff6cd3a + - 242df0bf-21d5-4199-8752-8a0bb10da1df content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:09 GMT + - Wed, 06 Oct 2021 21:04:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '188' + - '29' status: code: 200 message: OK @@ -59,21 +59,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 765f8afc-adbe-468a-b1dc-d0f2747221d7 + - cfa7e659-8dcd-4d93-aae3-bc642bbf0eed content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:09 GMT + - Wed, 06 Oct 2021 21:04:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -81,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '177' + - '26' status: code: 200 message: OK @@ -102,21 +102,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - b1a28679-eaf9-4beb-a4e0-077a2fd43590 + - 634124a1-b9c8-434d-b458-66b7c148dd35 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:15 GMT + - Wed, 06 Oct 2021 21:04:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -124,7 +124,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5435' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml index bf0d83141037..08461c1ce01c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ec5d33d5-0e8b-4443-b5ac-fc4026abe4fb + - 63f4b61b-60d0-48a8-b14e-90b839738a35 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:20 GMT + - Wed, 06 Oct 2021 21:04:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5138' + - '19' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_disable_service_logs.yaml index c0b3045776f9..8be4d75b1f0e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_disable_service_logs.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 2ccf9a25-c0d2-49f2-8417-cddc5c465765 + - 2f78fb84-6ab5-49a8-bd55-210ec81a9bac content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:21 GMT + - Wed, 06 Oct 2021 21:04:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '82' + - '20' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_no_result_attribute.yaml index 2337d728df5e..84747173d193 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_no_result_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - d320d8cb-547f-43f5-abab-4922bbad3fb3 + - dd435f86-7382-4495-bbe7-dd330ff3df7e content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:21 GMT + - Wed, 06 Oct 2021 21:04:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_nonexistent_attribute.yaml index 55abb6d6844f..94a2d366b337 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 757f9e18-0f2c-4bb9-9f66-9f218bdc1ce8 + - 1d8cfb04-2865-4af1-832a-0e84b4bddbcf content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:22 GMT + - Wed, 06 Oct 2021 21:04:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '1' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_errors.yaml index fe9077031442..026280e41a0d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -33,11 +33,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 40575ae9-4a3e-4037-b830-2ded6a5a5112 + - ed659c89-3767-4235-a3e0-114efe29dc78 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:23 GMT + - Wed, 06 Oct 2021 21:04:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_warnings.yaml index 66a2efd56e53..c0a2a5310fe3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_warnings.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f7831442-f3ac-446b-99a7-1c361e8a1c58 + - bf3a6997-7de9-43f9-af96-724d0b4070e6 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:23 GMT + - Wed, 06 Oct 2021 21:04:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '147' + - '27' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_duplicate_ids_error.yaml index 4c6868e1e692..bc61b03bc9d6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 3fe07d26-755a-467a-9542-4a3602a3d851 + - 4b27dbe8-c5fc-4115-b4ec-aa9f1dd51fab content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:24 GMT + - Wed, 06 Oct 2021 21:04:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_empty_credential_class.yaml index 1fb7d09239f1..e9f5a8ae7080 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_empty_credential_class.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 67bbee20-f517-4af4-ad2b-ea29db5a2052 + - 93d8106b-ee06-4bad-a3e9-a715651869e3 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:12:24 GMT + - Wed, 06 Oct 2021 21:04:52 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_explicit_set_string_index_type.yaml index 119670a26d33..5b46e36f75a3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_explicit_set_string_index_type.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 64281867-e0a7-42c6-bc91-87964a9d09c6 + - 441d5c9a-2ea4-4d96-aece-78b6acdb7ca3 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:25 GMT + - Wed, 06 Oct 2021 21:04:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '41' + - '20' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_all_errors.yaml index 3e85e8d75541..49449c5e85e4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_all_errors.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -29,11 +29,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 089f820f-fb0c-465e-90e1-831d725cbf63 + - b854fdca-f92a-4bf0-b84f-b4bdd04b8576 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:26 GMT + - Wed, 06 Oct 2021 21:04:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_some_errors.yaml index f00508cfe95e..371d86fc0261 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_some_errors.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -31,13 +31,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ce4fc16d-482c-487b-91a7-044c2333343b + - 0ab57be3-916e-4fe1-81c8-170e0b812d86 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:26 GMT + - Wed, 06 Oct 2021 21:04:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '152' + - '32' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_docs.yaml index 4fbb12c6508b..26edca820ebc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_docs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 85f7bd5b-9b06-4c6b-8ea9-7b5762da8b15 + - 21cad490-61aa-41e5-926b-7d6d58a22b49 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:27 GMT + - Wed, 06 Oct 2021 21:04:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_method.yaml index 5db6fdca53c4..c53ff49a6a0f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_method.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 1d0bdde2-3ad8-47ad-a6a7-73c82c6f1e2b + - 25b966d9-dd8e-47f0-a16b-c68d7b9fb379 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:27 GMT + - Wed, 06 Oct 2021 21:04:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_language_kwarg_spanish.yaml index ef4018caedf9..0aebe8b70eee 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_language_kwarg_spanish.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.97},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - eaf1df86-da54-43b1-9f16-9cbb3544c46f + - f6a04245-8b94-4dc9-a246-ff5d751678ed content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:27 GMT + - Wed, 06 Oct 2021 21:04:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '152' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_v3_categorized_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_v3_categorized_entities.yaml index b78bf41387d4..7b51426a29a6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_v3_categorized_entities.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_v3_categorized_entities.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false response: @@ -24,13 +24,13 @@ interactions: Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f1b52be4-83e7-47a2-9aaa-bc97e62c2ae6 + - 95ffae98-bc4a-4ce3-9e4d-96b9b902b922 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:29 GMT + - Wed, 06 Oct 2021 21:04:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '155' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset.yaml index 3d786a9711ec..9c1214eb726f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -24,13 +24,13 @@ interactions: Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 74b6be4a-ed01-437b-81a5-21b5f66844cb + - ef185a96-6f53-4d05-95e2-ef53d78832f8 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:29 GMT + - Wed, 06 Oct 2021 21:04:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_out_of_order_ids.yaml index e0f708bbb8de..4f3c0b9d7713 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_out_of_order_ids.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - eb2d5d40-74b8-4781-a485-f46435b7f8f6 + - 87eabac0-4948-444b-b30f-40f32c05af48 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 21:12:30 GMT + - Wed, 06 Oct 2021 21:04:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '22' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_output_same_order_as_input.yaml index 3e7b17391e5e..6f45f984d627 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"one","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"two","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"three","category":"Quantity","subcategory":"Number","offset":0,"length":5,"confidenceScore":0.8}],"warnings":[]},{"id":"4","entities":[{"text":"four","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"5","entities":[{"text":"five","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 18793f51-a723-46a4-8748-57bc15a4318a + - dfd0bb8b-37f3-4cf6-8070-29a9831782d8 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Mon, 02 Aug 2021 21:12:31 GMT + - Wed, 06 Oct 2021 21:04:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '422' + - '163' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_pass_cls.yaml index ca616f6804d4..196f7e8f3284 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 141d4a88-f4a5-4669-85b9-5fb8697df61d + - b9cef195-1633-4cee-b994-45d9f52c19ca content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:31 GMT + - Wed, 06 Oct 2021 21:04:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '22' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_passing_only_string.yaml index dc8d88c49117..aa287e6a1de0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_passing_only_string.yaml @@ -18,9 +18,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -36,13 +36,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 9e9279c9-1031-4547-addb-30d0450c67f1 + - 7cc29da2-e2d1-4f75-b8f5-2cc749702109 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:31 GMT + - Wed, 06 Oct 2021 21:04:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -50,7 +50,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '202' + - '30' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_per_item_dont_use_language_hint.yaml index b1e094604ffc..0e0ed96bc024 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_per_item_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 8c64fb4a-c27f-48d4-a71a-2da18c55449d + - 3b474254-c2a5-421c-8205-f51d16d8033c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:33 GMT + - Wed, 06 Oct 2021 21:04:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '86' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_rotate_subscription_key.yaml index 4389a66140ae..dcf1b76e8743 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_rotate_subscription_key.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 962f4dd3-27c0-49f4-81f0-92afe5407df2 + - fc70226e-5680-4b65-aee7-fa0d5cc764cd content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:33 GMT + - Wed, 06 Oct 2021 21:04:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '26' status: code: 200 message: OK @@ -59,9 +59,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -69,13 +69,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 7a08a429-5ee9-45cb-bc4e-dadeeb912003 + - ef63706c-3505-4576-ab36-f5ce58a50ef2 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:12:33 GMT + - Wed, 06 Oct 2021 21:04:56 GMT status: code: 401 message: PermissionDenied @@ -96,21 +96,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - d07b7e4a-7914-4f50-8f49-b8a1a0523859 + - 5633d788-8419-4f25-b522-c2bf14092d01 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:33 GMT + - Wed, 06 Oct 2021 21:04:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,7 +118,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '144' + - '27' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_show_stats_and_model_version.yaml index d45213f84900..a6bc122df2da 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_show_stats_and_model_version.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c6a91ac2-1bb4-4ef8-ae42-b0640024b701 + - bf115ea9-bf3a-4895-89a9-5f94293b2b43 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 21:12:34 GMT + - Wed, 06 Oct 2021 21:04:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '41' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_string_index_type_not_fail_v3.yaml index f6f699f83b2e..adb0793e56d9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_string_index_type_not_fail_v3.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false response: @@ -21,13 +21,13 @@ interactions: string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 651e8edb-ec6b-4610-98ef-158cabd06faf + - b7d87fc5-cf22-491d-8be3-d378608cf272 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:12:35 GMT + - Wed, 06 Oct 2021 21:04:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '55' + - '30' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_too_many_documents.yaml index fd9cffac3969..ba33289a1117 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_too_many_documents.yaml @@ -16,20 +16,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 26071190-d20b-4ef0-bb92-cda5a57cdc2d + - b6326737-a31b-48d9-86ae-1dfc992e60e6 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:12:35 GMT + - Wed, 06 Oct 2021 21:04:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_user_agent.yaml index 117590225910..37b95d807a6a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_user_agent.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 01461986-8c1d-488d-a07b-169411766eac + - ae62b50d-23a2-4362-a0f1-6a17c045ca13 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:36 GMT + - Wed, 06 Oct 2021 21:04:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '28' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_dont_use_language_hint.yaml index a8254722dc46..2c10911f4837 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.96}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f52cfaec-6546-48cb-b176-405ac3fc231b + - 9470f9e7-acbc-458a-ba54-657388981379 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:36 GMT + - Wed, 06 Oct 2021 21:04:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '58' + - '42' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint.yaml index b34066c11c89..ed3cf97c381e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.96}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ed947fef-ed69-48f3-8b48-0281c9cdf5dc + - 48a7de23-26d3-419b-b9e7-5181602b841e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:37 GMT + - Wed, 06 Oct 2021 21:04:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '60' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 2f8a146150bb..4b4a9f3464fd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 54c7b168-5a56-4eec-9319-ddcea7000796 + - 1e8f378e-a025-4da1-83d7-e31e75cc0a51 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:37 GMT + - Wed, 06 Oct 2021 21:04:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_input.yaml index d6f3bceb9652..741dfe047017 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\"\ @@ -29,13 +29,13 @@ interactions: :[],\"modelVersion\":\"2021-06-01\"}" headers: apim-request-id: - - 8cf52364-b45a-49ef-8eac-dcf5e2d12dbc + - e4c3dbf7-3599-45a0-9d55-96e0854fbc79 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:38 GMT + - Wed, 06 Oct 2021 21:04:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '56' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index e0399fe64144..2b393635901b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\"\ @@ -30,13 +30,13 @@ interactions: :[],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: apim-request-id: - - dd08cab0-6da2-4878-a316-d660a899b44a + - 305e172d-e8fc-44fa-a68e-95868c073db9 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:12:38 GMT + - Wed, 06 Oct 2021 21:04:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '333' + - '211' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_dict.yaml index b51978308711..8148a2489f1e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_dict.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":68,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -25,16 +25,16 @@ interactions: de abril de 1975","category":"DateTime","subcategory":"Date","offset":53,"length":18,"confidenceScore":0.8}],"warnings":[]},{"id":"3","statistics":{"charactersCount":73,"transactionsCount":1},"entities":[{"text":"4. April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' headers: - apim-request-id: 42ac00c3-a2b1-47cd-8b89-36c781541e41 + apim-request-id: d0a8c45f-f79d-4966-b6b3-086a124a6a01 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:15:54 GMT + date: Wed, 06 Oct 2021 21:04:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '727' + x-envoy-upstream-service-time: '136' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_text_document_input.yaml index 4f283e67ab36..546d46b5b4a8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_text_document_input.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -25,16 +25,16 @@ interactions: de abril de 1975","category":"DateTime","subcategory":"Date","offset":53,"length":18,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"4. April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' headers: - apim-request-id: 2dba9360-7b65-4474-b95e-ad600fc34be1 + apim-request-id: da0c7559-766d-4f0b-bc61-c25f80e8f495 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:15:55 GMT + date: Wed, 06 Oct 2021 21:05:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '280' + x-envoy-upstream-service-time: '77' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_credentials.yaml index 669aab5cccb1..15c2fb502bbe 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_credentials.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: c3b1a446-1ee8-4156-9a78-afa32a835ea6 + apim-request-id: cfa4753c-2b5d-4ffa-8579-9c2401dfea03 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:15:54 GMT + date: Wed, 06 Oct 2021 21:04:59 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version_error.yaml index d93b2179a0bd..6be9c2d08ad9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version_error.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid model version. Possible values are: latest,2019-10-01,2020-02-01,2020-04-01,2021-01-15,2021-06-01. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: cd747de8-b357-4d8d-80ce-3fb0d61d0ab0 + apim-request-id: e275d1ac-a353-4054-ae0e-437d0d8b512c content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:15:56 GMT + date: Wed, 06 Oct 2021 21:05:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '7' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit.yaml index a32da7dbec51..8db61414d7a1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit.yaml @@ -754,17 +754,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: 8d6b339d-60fa-4a13-addd-62a82239b1e3 + apim-request-id: 8bd64c34-9ab2-4925-8f0e-8cc8069343b8 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:15:57 GMT + date: Wed, 06 Oct 2021 21:05:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -772,5 +772,5 @@ interactions: status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit_error.yaml index 628594781ac0..b4256dcc9400 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: ace28cd9-90e9-4a5a-aedb-fed15290d4ee + apim-request-id: 58fe2576-3821-40d3-826d-a51eff8db186 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:15:57 GMT + date: Wed, 06 Oct 2021 21:05:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '10' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_client_passed_default_language_hint.yaml index 8e1784e1f55a..92db94dc65c8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_client_passed_default_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a0c85666-d873-4392-b276-f00e2f236d63 + apim-request-id: e687587e-4f93-48d4-a34e-0b61ae4042a9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:15:57 GMT + date: Wed, 06 Oct 2021 21:05:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -44,25 +44,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 92e6cbcb-53ea-4be0-ace8-65ad4efb32e5 + apim-request-id: e7ca641b-37c3-4b34-a7e9-ea74070fe310 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:15:57 GMT + date: Wed, 06 Oct 2021 21:05:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '65' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -76,23 +76,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c0e577ea-2d52-410b-a827-71a715639ca6 + apim-request-id: ff5f110d-76e5-4e07-a167-1f10d67e39f9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:15:57 GMT + date: Wed, 06 Oct 2021 21:05:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '60' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index 46541bf049e8..3e6b54c8e6cf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 806fb681-6ee4-412e-8f27-b7feac41646c + apim-request-id: 55b8bbec-6e8a-42a6-a7b9-dd69ab93815d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:15:59 GMT + date: Wed, 06 Oct 2021 21:05:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '39' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_disable_service_logs.yaml index 1075f60527ec..ec507c474e36 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_disable_service_logs.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 06e31cfb-c5b0-4471-a3ff-499714c15b25 + apim-request-id: 8043fdac-7977-4827-8681-e633e29f33a9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:15:59 GMT + date: Wed, 06 Oct 2021 21:05:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_no_result_attribute.yaml index d0c1b124a4fb..14cba4173c99 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 989f215a-314c-4113-af36-455929330686 + apim-request-id: 518563ea-e01e-4367-b1a1-57fe7f8671bf content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:16:00 GMT + date: Wed, 06 Oct 2021 21:05:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_nonexistent_attribute.yaml index c14ef47854b2..70790321dfd5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 5d4969b0-db2b-462d-b34f-3f7d24c5f191 + apim-request-id: 5772d67f-0299-40d6-8cfa-cfd41b45ce9b content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:16:00 GMT + date: Wed, 06 Oct 2021 21:05:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_errors.yaml index e831d751caae..f3adc1bd45c3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -28,15 +28,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: b2c2b9c4-afb3-40fc-944a-c6a5ad116a61 + apim-request-id: c35851a6-c37d-430c-86a9-9b5c78e2ea6f content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:16:01 GMT + date: Wed, 06 Oct 2021 21:05:03 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '4' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_warnings.yaml index 299a833d5e82..303c459b1785 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_warnings.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 7db1163a-c11a-4283-b555-c311893a54fb + apim-request-id: cbb2bc02-dcef-434c-96e9-87f4c9b6da13 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:16:01 GMT + date: Wed, 06 Oct 2021 21:05:03 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '29' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_duplicate_ids_error.yaml index c96f3b4dbbee..170f7e807b47 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: bcf27c28-3ea4-4895-a640-269d9a128761 + apim-request-id: f18ab104-afd8-45ad-a84b-d8eeba76226e content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:16:02 GMT + date: Wed, 06 Oct 2021 21:05:03 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_empty_credential_class.yaml index 2be60e59e609..da44ad20dd30 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_empty_credential_class.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: b72dc605-c454-4178-a109-3d629aa622d8 + apim-request-id: 6e0e2636-cd87-421c-8d8c-fcaf20c0c870 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:16:02 GMT + date: Wed, 06 Oct 2021 21:05:04 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_explicit_set_string_index_type.yaml index cec0d3f28173..2ff682fe3ef6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_explicit_set_string_index_type.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e7daeee2-2ee3-446a-b54e-bd660ef16ba3 + apim-request-id: 9322fbf5-069e-4a3d-bd18-4b84e7103a40 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:16:02 GMT + date: Wed, 06 Oct 2021 21:05:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_all_errors.yaml index 54e4357dcbd6..36266d1b4789 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_all_errors.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -24,15 +24,15 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 6f021617-db3a-4699-a7e2-13fe86776e70 + apim-request-id: 14f20e5b-2c80-40e8-88f5-776538ac9a37 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:16:03 GMT + date: Wed, 06 Oct 2021 21:05:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_some_errors.yaml index f9a9803156da..2f8ce97f28e4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_some_errors.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -26,16 +26,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 197cd499-54fe-41d0-bfe2-80a2a78dd1a7 + apim-request-id: b85683bc-fceb-45ee-838f-841aafa52e37 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:16:04 GMT + date: Wed, 06 Oct 2021 21:05:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '80' + x-envoy-upstream-service-time: '27' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_docs.yaml index be4000ef3f35..94c8db8ebe4a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_docs.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: ffefc417-a875-4bd9-823e-0b60d36a4793 + apim-request-id: e8d50259-b69c-446f-98be-5714346f36c8 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:16:04 GMT + date: Wed, 06 Oct 2021 21:05:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_method.yaml index 0decac738913..3d069dc3452b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_method.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 561a266d-9078-4953-a4cb-907b71e99f2e + apim-request-id: c82ea7ff-1b1c-4657-a9c9-2e80c98b639b content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:16:04 GMT + date: Wed, 06 Oct 2021 21:05:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '7' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_language_kwarg_spanish.yaml index 1b3f83a0e84b..80cd15d69014 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_language_kwarg_spanish.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.97},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 81c911d5-c1b2-465a-9c5e-00b41c034419 + apim-request-id: ff68ee6b-c61f-4e91-8a93-3f53ffcf2a3f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:16:05 GMT + date: Wed, 06 Oct 2021 21:05:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' + x-envoy-upstream-service-time: '28' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_v3_categorized_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_v3_categorized_entities.yaml index 26cd8b496d8e..af7c350afb29 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_v3_categorized_entities.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_v3_categorized_entities.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false response: @@ -19,16 +19,16 @@ interactions: Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 7243e2ad-1d78-4fed-97ff-65dba0f126f8 + apim-request-id: ff49ae18-d855-4eeb-b7c9-1a9c08f4ce59 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:16:05 GMT + date: Wed, 06 Oct 2021 21:05:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '72' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.0/entities/recognition/general?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.0/entities/recognition/general?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset.yaml index 25c363eccb90..a8f1f92bcc76 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a79ede16-2727-42c2-a35b-53fb8fd50da6 + apim-request-id: 450afcd8-9bfc-4f9f-bf67-480289f47a3d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:16:06 GMT + date: Wed, 06 Oct 2021 21:05:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_out_of_order_ids.yaml index 99fcf508aef4..c1fb0d9b9b9d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: cfc4965e-3e51-4e82-a747-a5d3c90f90c1 + apim-request-id: 94d3b01c-df1e-47fd-a721-4cc73495f1aa content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 21:16:07 GMT + date: Wed, 06 Oct 2021 21:05:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_output_same_order_as_input.yaml index f37d3bb346de..493cdaf87b42 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"one","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"two","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"three","category":"Quantity","subcategory":"Number","offset":0,"length":5,"confidenceScore":0.8}],"warnings":[]},{"id":"4","entities":[{"text":"four","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"5","entities":[{"text":"five","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 137a68a0-11bd-4612-8162-2d2e520e2994 + apim-request-id: ab84a3c7-0269-41a1-985d-f780ee505f92 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Mon, 02 Aug 2021 21:16:07 GMT + date: Wed, 06 Oct 2021 21:05:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '311' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_pass_cls.yaml index 281d16a8ce00..7efe7f9fd2dd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 3dfe5552-942b-4203-a670-46ce3d95ccd0 + apim-request-id: 4a4059ac-fad7-41a3-b765-465d39e68f80 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:16:07 GMT + date: Wed, 06 Oct 2021 21:05:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '44' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_passing_only_string.yaml index 1f427b2ab477..06c6b42d10fb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_passing_only_string.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -31,16 +31,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: d6c60e1b-df19-496c-ad61-2e427dc7bd94 + apim-request-id: 3cc7ceb9-d978-453f-9af1-8e9dcb5a6dc6 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:08 GMT + date: Wed, 06 Oct 2021 21:05:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '78' + x-envoy-upstream-service-time: '34' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_per_item_dont_use_language_hint.yaml index 08bbc242d5c7..1b45fff97a0c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_per_item_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: f05b80c0-708a-4c81-ac6b-da5891793ab0 + apim-request-id: bc81cb6b-208d-40c1-b543-5e4b3ee02273 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:09 GMT + date: Wed, 06 Oct 2021 21:05:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_rotate_subscription_key.yaml index dca3be8d1855..45b4b94df0a7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_rotate_subscription_key.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c960651a-f661-4e59-babf-c5f4db456a96 + apim-request-id: 78e28330-a6a2-4f90-91fc-4b7a86ca63af content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:10 GMT + date: Wed, 06 Oct 2021 21:05:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '38' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -44,23 +44,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 538000c1-6566-4003-a6f5-aa9e1771c9db + apim-request-id: 9d3e6212-1a88-4b68-a43a-f7926e6b1d36 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:16:10 GMT + date: Wed, 06 Oct 2021 21:05:06 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -74,23 +74,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 7f44d7b8-607f-4a56-b1cb-9b9dfdacbd1f + apim-request-id: 4ddd2c20-720d-4019-9b83-5356da6e87e5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:10 GMT + date: Wed, 06 Oct 2021 21:05:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '101' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_show_stats_and_model_version.yaml index 5076f13d73f5..167ed6e20ae2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 8b709f7a-5869-4542-bd7e-209a607e5876 + apim-request-id: 06a939ce-3c9c-43cc-a662-7a6f34bb5673 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 21:16:10 GMT + date: Wed, 06 Oct 2021 21:05:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_string_index_type_not_fail_v3.yaml index e0838454669e..0fe56d1e3713 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_string_index_type_not_fail_v3.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: edfeb1a9-f059-469a-bb66-6d9c3cb7de94 + apim-request-id: 2ddbb0d3-a263-4824-a0e2-37661dff702e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:16:10 GMT + date: Wed, 06 Oct 2021 21:05:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '43' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.0/entities/recognition/general?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.0/entities/recognition/general?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_too_many_documents.yaml index 916f5654ffe6..393323a15ade 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_too_many_documents.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: f78c8969-0684-469a-a767-f66be871f830 + apim-request-id: fc696898-2bc9-4810-8f95-2f9ebb1d49b7 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:16:11 GMT + date: Wed, 06 Oct 2021 21:05:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_user_agent.yaml index 87d8812f4bbd..182dbb8d0232 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_user_agent.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 1e22c942-3847-479d-8467-09f201a70ffc + apim-request-id: 991c898a-66bb-4e35-abb2-af536bd0df16 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:12 GMT + date: Wed, 06 Oct 2021 21:05:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_dont_use_language_hint.yaml index a52f5d8e2b34..be90aae730f5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.96}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: d615752b-3b8e-482b-b79a-7e62eb687e32 + apim-request-id: 76e15fd8-c7b2-41bd-a425-0f75ff7f3761 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:12 GMT + date: Wed, 06 Oct 2021 21:05:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '32' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint.yaml index d033a006152b..239b61f93d93 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.96}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a5f0fa5e-b58c-43c8-8895-dd0933174aa1 + apim-request-id: d540e6ec-d735-4ddb-ae35-3d1bc374283b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:12 GMT + date: Wed, 06 Oct 2021 21:05:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' + x-envoy-upstream-service-time: '27' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 5dab4bcd74a5..97e956e0387d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: f3d337a4-bf28-43c4-b607-337cc9e53c88 + apim-request-id: ccc1dbcd-a4c6-428a-8ed8-28cc064d7f36 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:13 GMT + date: Wed, 06 Oct 2021 21:05:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_input.yaml index 6094540325c6..796868e422b7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\"\ @@ -24,16 +24,16 @@ interactions: warnings\":[]},{\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\"\ :[],\"modelVersion\":\"2021-06-01\"}" headers: - apim-request-id: b5dfaaf4-67fd-4e78-921a-8ee8bf7a38a5 + apim-request-id: f115ffc4-0f6e-4086-b367-43e60861a35f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:14 GMT + date: Wed, 06 Oct 2021 21:05:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '60' + x-envoy-upstream-service-time: '31' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 80792b629a9a..62d23d20c17e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\"\ @@ -25,16 +25,16 @@ interactions: :7,\"confidenceScore\":0.92}],\"warnings\":[]},{\"id\":\"3\",\"entities\"\ :[],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: - apim-request-id: 28561acd-b263-4dd7-ba77-587c83610570 + apim-request-id: 191ffedd-5526-4dce-9884-c25bf9cbf0ff content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:16:15 GMT + date: Wed, 06 Oct 2021 21:05:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '252' + x-envoy-upstream-service-time: '230' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_dict.yaml index d416ba924717..e1205ad0a992 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_dict.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","statistics":{"charactersCount":50,"transactionsCount":1},"entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -31,13 +31,13 @@ interactions: Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - abcdd44a-22b4-485c-a0cf-f6ab593678a1 + - 53c106fb-5cbd-46dc-a068-da4f8cd30f2f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Mon, 02 Aug 2021 21:16:33 GMT + - Wed, 06 Oct 2021 21:05:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5377' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_text_document_input.yaml index b81afc99eb3e..ab23d9cdfbe5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_text_document_input.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -31,13 +31,13 @@ interactions: Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f39bd82d-384d-4825-a4ae-64835bfb362e + - a8fedcde-5b8e-432c-9e36-ef9f64bcac25 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Mon, 02 Aug 2021 21:16:40 GMT + - Wed, 06 Oct 2021 21:05:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5601' + - '37' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_credentials.yaml index 6dae10fc8298..dec1f808086e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_credentials.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - ebe89c35-1ab9-4ae1-a472-1eae2e413002 + - 69d1a8c4-ad3f-4df4-9ab1-9d2953eb0da6 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:16:40 GMT + - Wed, 06 Oct 2021 21:05:09 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version_error.yaml index 72d7644b2b98..c47d464fbcf7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version_error.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid @@ -24,11 +24,11 @@ interactions: For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - e532531d-b918-4157-9456-e85de8c71e9e + - fb24721c-0a60-4d72-b060-6b5e26a11ba5 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:16:46 GMT + - Wed, 06 Oct 2021 21:05:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5346' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit.yaml index 500502ff14af..deb820acb3ff 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - df84091c-393f-4e97-a833-39183eeb8dc6 + - ea3d5c80-952c-4712-bc67-b69f018fdafd content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:16:52 GMT + - Wed, 06 Oct 2021 21:05:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -779,7 +779,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5150' + - '11' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit_error.yaml index 28aa04a2c80c..f01dcf3397fd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 0a910be7-eb8d-4ad4-99a0-615f8f1a2932 + - 35df85d5-bad1-497e-a4ac-0109a7f0ce04 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:16:52 GMT + - Wed, 06 Oct 2021 21:05:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -744,7 +744,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '12' + - '7' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bing_id.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bing_id.yaml index ec59931f6856..3d4939de32b9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bing_id.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bing_id.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -26,13 +26,13 @@ interactions: Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ab5daf4d-e9a3-4a55-836b-922f24e353f7 + - 825f1c1a-2aee-4d76-94cd-a509d9101abf content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:16:54 GMT + - Wed, 06 Oct 2021 21:05:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '447' + - '13' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_client_passed_default_language_hint.yaml index 7696fb5d3042..a97e7ab5beea 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_client_passed_default_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 79d44f78-5c78-4fe9-85aa-467c275ea026 + - 29931e9f-fc37-45d1-a0f5-2d893be821a1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:00 GMT + - Wed, 06 Oct 2021 21:05:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6006' + - '97' status: code: 200 message: OK @@ -59,21 +59,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - dababed5-953c-455a-af5d-7aa4304dc491 + - 4213505c-122e-49ef-8466-37f4d2002f41 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:00 GMT + - Wed, 06 Oct 2021 21:05:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -81,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '402' + - '15' status: code: 200 message: OK @@ -102,21 +102,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - b02719db-826d-4f29-ad64-4ee62441d92e + - a612f55e-9ad0-4d3e-8d0b-15776e355325 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:06 GMT + - Wed, 06 Oct 2021 21:05:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -124,7 +124,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5780' + - '214' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml index c401b19ccf44..19328aa25628 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"7b4d3717-77ab-39ff-d8ec-1c7fd8723bd2","name":"\"Hello, @@ -23,13 +23,13 @@ interactions: World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 12975b5d-d50a-4a78-b5e0-f954182e3c31 + - 3bae19df-60fc-4257-9f5a-c4d08a8961bb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:08 GMT + - Wed, 06 Oct 2021 21:05:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '550' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_disable_service_logs.yaml index c2a6874f2796..6259a1bec74e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_disable_service_logs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test @@ -24,13 +24,13 @@ interactions: (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 81f782f8-a237-46d7-a993-91d9984a5703 + - abbcfa2e-638f-4502-8dcc-53a0f25b4f08 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:09 GMT + - Wed, 06 Oct 2021 21:05:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '519' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_no_result_attribute.yaml index 76b7a052c926..614a2e3c962a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_no_result_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 6da32c78-5bf7-45f3-98fc-565255a933ad + - d2f21f18-894c-4040-87d1-77cf16358337 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:10 GMT + - Wed, 06 Oct 2021 21:05:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_nonexistent_attribute.yaml index a686fdf2d3bb..392de060fe36 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ce829419-c6f9-48b8-8b6f-af8bcad91fa7 + - b31b47ef-7d4b-4e08-82fd-f5967d7d3976 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:10 GMT + - Wed, 06 Oct 2021 21:05:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '1' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_errors.yaml index 17d2dac234bb..107f3f601c20 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -32,11 +32,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 5b2b3155-db7f-46fa-aad0-5ecd1fb8526f + - 965bf6d7-dbf4-47cf-bc7a-9b45dc79566f content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:11 GMT + - Wed, 06 Oct 2021 21:05:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_warnings.yaml index 752458f02d0a..8ba12f0dad61 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_warnings.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a1080254-48f8-4723-802e-efbadced869c + - 251f250d-2b70-45e4-9e64-b961308d8025 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:12 GMT + - Wed, 06 Oct 2021 21:05:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '430' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_duplicate_ids_error.yaml index e44fbebfca0e..281784b3bf75 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 7d54efc5-c120-4d2b-bda2-70c64a2b23ff + - 401343a0-c215-48bd-ad84-e709acea7926 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:12 GMT + - Wed, 06 Oct 2021 21:05:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_empty_credential_class.yaml index 7389068bca9c..bce4e0236d4c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_empty_credential_class.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 248073f1-9fc8-4831-8604-ffbc8b5cd999 + - 07bb6ddf-16f5-425a-93c6-fde6444d40ec content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:17:13 GMT + - Wed, 06 Oct 2021 21:05:14 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_explicit_set_string_index_type.yaml index 7b45ce6d57d4..80aca73b1ef2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_explicit_set_string_index_type.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"7b4d3717-77ab-39ff-d8ec-1c7fd8723bd2","name":"\"Hello, @@ -23,13 +23,13 @@ interactions: World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ac8d2001-4204-4d1c-80ad-ebe47cb01523 + - f88dfe22-cb2a-4e81-bae1-4af46c56cb25 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:13 GMT + - Wed, 06 Oct 2021 21:05:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_all_errors.yaml index 990a8187491e..67a5bc4b4f08 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_all_errors.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -26,11 +26,11 @@ interactions: language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 6c645f3a-7d4c-45ea-92d0-a0c86a998242 + - 1942ab9a-f66e-4703-aed6-da18541cfcf0 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:14 GMT + - Wed, 06 Oct 2021 21:05:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_some_errors.yaml index c05537570a50..63c534e390b1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_some_errors.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"2","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.38}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -28,13 +28,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 2d3c9a12-d91d-4bea-ab4b-732ed64d0b07 + - 0da8f234-a193-4cbd-9e1b-576e3cef1ae8 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:15 GMT + - Wed, 06 Oct 2021 21:05:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '139' + - '242' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_docs.yaml index fa7a156f8e12..9dfdfcfb390a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_docs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -24,11 +24,11 @@ interactions: language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c328f026-548d-48a1-94f9-678de0c542eb + - 3df1370a-09c3-4561-9b6b-0e577892c467 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:15 GMT + - Wed, 06 Oct 2021 21:05:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_method.yaml index b086f9b85408..bce33fc55c6f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_method.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -24,11 +24,11 @@ interactions: language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 6556ac17-b0e8-4dde-9f4d-eda08d53d797 + - 2f539b40-2eb5-4b4e-8067-9272416afb4e content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:16 GMT + - Wed, 06 Oct 2021 21:05:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_language_kwarg_spanish.yaml index 1d809ed5f51c..3b772ed215bb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_language_kwarg_spanish.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -26,13 +26,13 @@ interactions: ejecutivo","url":"https://es.wikipedia.org/wiki/Director_ejecutivo","dataSource":"Wikipedia"},{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":25,"length":9,"confidenceScore":0.3}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 03a04c84-6e04-46f4-99a1-2e2db17b1f3b + - bc6970ec-e543-4f80-8809-83f632a16fb3 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:17 GMT + - Wed, 06 Oct 2021 21:05:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '566' + - '17' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_v3_linked_entity_match.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_v3_linked_entity_match.yaml index 5ee3a1dc4259..2b3d9e76822c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_v3_linked_entity_match.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_v3_linked_entity_match.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false response: @@ -26,13 +26,13 @@ interactions: Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 761419d4-c7b7-4710-aaa0-23000f9014b7 + - aaa464a2-612a-4783-bd56-b0f141aacbb2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:23 GMT + - Wed, 06 Oct 2021 21:05:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5475' + - '33' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset.yaml index 60bc4ff38239..bc7561013a44 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -26,13 +26,13 @@ interactions: Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 25f7f8d0-48c2-4b3c-9387-f9b67ac1a41c + - 3960fe69-fe29-49b8-8a93-3a465ec42fa1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:24 GMT + - Wed, 06 Oct 2021 21:05:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '509' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_out_of_order_ids.yaml index b8abe06b51e4..181c3795460a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_out_of_order_ids.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - eb907402-e59f-4da5-9383-8fb44edc88ae + - ecd70a8d-0bd0-4d2c-bfc5-a07efcb71134 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 21:17:25 GMT + - Wed, 06 Oct 2021 21:05:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_output_same_order_as_input.yaml index 3f2234d5a112..b110f7c15d52 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - fb358b6c-dfbb-4955-aeae-3c847a83400a + - 517430c9-9d1c-4bc8-8c28-b365c510c45a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Mon, 02 Aug 2021 21:17:25 GMT + - Wed, 06 Oct 2021 21:05:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '39' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_pass_cls.yaml index ba6e7ccd7584..13de15417c3d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"9d84a0ad-fb96-8089-b2e7-9bdb0ee2551e","name":".test","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.02}],"language":"en","id":".test","url":"https://en.wikipedia.org/wiki/.test","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 91b21b19-c124-4e24-b010-e1e01817a736 + - d51a0b30-439f-4480-a322-cab05908794e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:26 GMT + - Wed, 06 Oct 2021 21:05:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '399' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_passing_only_string.yaml index 021afd9863d0..3a2d7464f34f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_passing_only_string.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -34,13 +34,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 96ee3f16-dad0-486c-9da4-16c46bf571e0 + - 84f36052-36d1-4934-bf8d-80010f5dd464 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Mon, 02 Aug 2021 21:17:27 GMT + - Wed, 06 Oct 2021 21:05:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -48,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '13' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_per_item_dont_use_language_hint.yaml index 16f3489df61b..b9eb9c5e6c84 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_per_item_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 3619c403-a3bb-436a-9bc3-2e42922ad5e1 + - 9142caa1-8c1e-44e6-add9-fc358d0ee910 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:27 GMT + - Wed, 06 Oct 2021 21:05:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '436' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_rotate_subscription_key.yaml index 5da09e6361b1..5723ce8ffd65 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_rotate_subscription_key.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a9b74633-39b7-4654-9565-daad3b71f98d + - 0bee66ee-22ea-4d55-aff3-107da5fd6f6d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:28 GMT + - Wed, 06 Oct 2021 21:05:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '395' + - '10' status: code: 200 message: OK @@ -59,9 +59,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -69,13 +69,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - fb6e55d7-5b2c-40b4-9d8f-709513332f27 + - 17cb77b8-ac90-4094-8c08-8c0511659579 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:17:29 GMT + - Wed, 06 Oct 2021 21:05:18 GMT status: code: 401 message: PermissionDenied @@ -96,21 +96,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - dcd3fb3e-b5f9-4588-b494-e49282af4cea + - aac5e95f-355f-45e1-bc00-87191e5ec727 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:29 GMT + - Wed, 06 Oct 2021 21:05:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,7 +118,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '473' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_show_stats_and_model_version.yaml index 710f6c12dbf0..32587e294828 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_show_stats_and_model_version.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - cec8e246-4bcd-4780-a3ed-6614de044f1a + - 1e34afc4-9903-444f-98c2-3883cc5cf7b3 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 21:17:30 GMT + - Wed, 06 Oct 2021 21:05:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '369' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_string_index_type_not_fail_v3.yaml index b07fc01fec95..4eabb87d8f89 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_string_index_type_not_fail_v3.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false response: @@ -21,13 +21,13 @@ interactions: string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ccb8cb80-5099-433e-829f-8125e0dae14c + - 5bb7e03d-d908-4c65-845f-74d9959c8ca2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:17:31 GMT + - Wed, 06 Oct 2021 21:05:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '12' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_too_many_documents.yaml index 0634fcc39959..65d260a0faf5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_too_many_documents.yaml @@ -16,20 +16,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - d2b21a18-104e-45c5-a253-1b964c825216 + - d96300d6-ef01-47d2-8985-58fda4093eb9 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:31 GMT + - Wed, 06 Oct 2021 21:05:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '7' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_user_agent.yaml index 5eb416a28df4..085a1a6e8426 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_user_agent.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 2813eb0a-0587-4ccd-8fb4-6b3e7bbfefec + - 4510ef67-3b0c-4be3-8fec-61cf6a2115ea content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:32 GMT + - Wed, 06 Oct 2021 21:05:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_dont_use_language_hint.yaml index dfcc1df73d6f..6779fbbb4cd7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - db23e299-ea23-44b3-9cb6-6d2d329e9d3d + - 7029ec1e-dd55-4def-b357-d7d3fb54bebd content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:32 GMT + - Wed, 06 Oct 2021 21:05:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint.yaml index 2714666e6328..47bf1367a93a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -30,11 +30,11 @@ interactions: language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 7beff3a7-1c1a-4e99-954b-cc7ce17313e6 + - d75854ab-023b-492d-985e-d854f0c4bf39 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:33 GMT + - Wed, 06 Oct 2021 21:05:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 9936136749d5..9b91920ee9e5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 2d5f3d73-01da-4888-97db-53fcaaa332a3 + - 93c58f90-d741-4830-bfb4-743475178bfb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:34 GMT + - Wed, 06 Oct 2021 21:05:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '521' + - '14' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_input.yaml index f3e1c3a7607a..318b172c7dcb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -30,11 +30,11 @@ interactions: language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 5bdc7e99-4753-4d82-9144-c2d9aeecf60f + - b1ec7efb-89f5-4fd8-a115-2df2ea5aa6f1 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:17:34 GMT + - Wed, 06 Oct 2021 21:05:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 58e0133e984e..70f4c4238d2c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 05a7fd4d-2741-4758-bc1c-44792fce2a7f + - 0d90e3b7-1c1d-4478-a904-56b07b562d70 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:17:34 GMT + - Wed, 06 Oct 2021 21:05:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '43' + - '17' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_dict.yaml index a3feb81fbc3e..6b5538e1d078 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_dict.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","statistics":{"charactersCount":50,"transactionsCount":1},"entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -26,16 +26,16 @@ interactions: Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.9}],"language":"es","id":"Paul Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 0f45e4f5-7772-40b1-bff8-dc452aa6abb3 + apim-request-id: 58fab485-ede4-4db9-9843-6dd99eac1c0e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Mon, 02 Aug 2021 21:18:05 GMT + date: Wed, 06 Oct 2021 21:05:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '665' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_text_document_input.yaml index 9ac0541eba7e..44be287be51e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_text_document_input.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -26,16 +26,16 @@ interactions: Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.55}],"language":"en","id":"Paul Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: b6546b32-2f14-4714-99b2-98ba1cd45259 + apim-request-id: 92481c74-f0ec-460d-961d-a737ebf8c7e7 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Mon, 02 Aug 2021 21:18:05 GMT + date: Wed, 06 Oct 2021 21:05:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_credentials.yaml index f3b9b60d8669..8c817da7df8f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_credentials.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 5f44c085-0aba-4b5a-a7b8-5f066ba90773 + apim-request-id: b2125e6a-7e79-4af0-af1b-c390f8a344c2 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:18:06 GMT + date: Wed, 06 Oct 2021 21:05:22 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version_error.yaml index fb99531066cf..b2893f432926 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version_error.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid model version. Possible values are: latest,2019-10-01,2020-02-01,2021-06-01. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: eb013117-7cbd-4fc4-b82c-dc743b6437bb + apim-request-id: 25ca4c22-6b2c-4956-ae14-1c67aa10e8ab content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:06 GMT + date: Wed, 06 Oct 2021 21:05:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit.yaml index e7e39b8e453f..b52806568912 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit.yaml @@ -754,17 +754,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: 3cae59c2-4f4f-4ebe-ac4d-52ed0089776e + apim-request-id: 96b83cf4-f9c5-497b-8946-117b11772bc1 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:07 GMT + date: Wed, 06 Oct 2021 21:05:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -772,5 +772,5 @@ interactions: status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit_error.yaml index 30814ad9e82e..ee451b424a8d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: c9fe32ed-a558-4dc4-9cee-6dbdf90d9996 + apim-request-id: 4bd917e0-2c72-4ffd-ba56-b5d3f036da3f content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:08 GMT + date: Wed, 06 Oct 2021 21:05:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '12' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bing_id.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bing_id.yaml index 3292cae2b56f..0d3c252f8595 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bing_id.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bing_id.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -21,16 +21,16 @@ interactions: Allen","matches":[{"text":"Paul Allen","offset":40,"length":10,"confidenceScore":0.54}],"language":"en","id":"Paul Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 48174734-b650-462c-b367-dee6ee038469 + apim-request-id: 10ef9364-4768-4407-b37a-745f2bea8b41 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:09 GMT + date: Wed, 06 Oct 2021 21:05:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '553' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_client_passed_default_language_hint.yaml index 2b4655ea598f..b386ebc592c2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_client_passed_default_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 10ff26e1-d4f9-4367-a508-566c2563b3cb + apim-request-id: 9d85ef7a-7906-4df6-8e6a-b4d560f65514 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:09 GMT + date: Wed, 06 Oct 2021 21:05:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '122' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -44,25 +44,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 1f9e370a-4b62-4b05-8718-0b4e7c006d7c + apim-request-id: f3afc368-1f27-48f9-93cb-36c050f04a0c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:09 GMT + date: Wed, 06 Oct 2021 21:05:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -76,23 +76,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 602f8f87-8f76-4e02-9cec-60928d4bb3ae + apim-request-id: 9d977751-499e-45de-a179-d050604f09bf content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:09 GMT + date: Wed, 06 Oct 2021 21:05:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '632' + x-envoy-upstream-service-time: '82' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index d832af1a50f3..f5e123ee5e1f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,25 +9,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"7b4d3717-77ab-39ff-d8ec-1c7fd8723bd2","name":"\"Hello, World!\" program","matches":[{"text":"Hello world","offset":0,"length":11,"confidenceScore":0.03}],"language":"en","id":"\"Hello, World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 53829f84-75a0-495e-897a-07a1143870ee + apim-request-id: 1f9bb5e2-66ad-401d-9093-3e5842979325 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:10 GMT + date: Wed, 06 Oct 2021 21:05:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '43' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_disable_service_logs.yaml index b280662b3459..0b89b06a9662 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_disable_service_logs.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 4a0a480b-9bfd-4a05-8195-028ddc09c32e + apim-request-id: 4d4685c4-ee0a-46ef-b27d-c9632c09a989 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:11 GMT + date: Wed, 06 Oct 2021 21:05:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_no_result_attribute.yaml index 6b6f80e907e0..fa94b8944e3c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 5a791092-cc43-45a7-ae36-0b1452613aec + apim-request-id: f4d4d5cb-8abf-403c-8fa4-5603b1942917 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:11 GMT + date: Wed, 06 Oct 2021 21:05:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_nonexistent_attribute.yaml index df721baf8219..e7722c18e1c8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 8c9656e5-bf6a-4321-9448-b08ec4832d04 + apim-request-id: 4bcfa111-3278-4ddb-b2a5-eab7a5712ce7 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:12 GMT + date: Wed, 06 Oct 2021 21:05:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_errors.yaml index c59d27a40f57..9212397e1ca9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -27,15 +27,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a2afcb6b-2cd8-40e1-b885-53a646bc4abb + apim-request-id: 944723ab-0c8f-48b0-8c4e-942beef8e0d3 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:12 GMT + date: Wed, 06 Oct 2021 21:05:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_warnings.yaml index 7350512edf97..3160a567c424 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_warnings.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 2cecde48-3647-45f0-8eb5-7be4c798332d + apim-request-id: 36277386-b6a4-4192-9ded-8b3a1e0b02cf content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:13 GMT + date: Wed, 06 Oct 2021 21:05:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_duplicate_ids_error.yaml index 1b81a8509e8f..19263893a720 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: f1dd79f1-563a-4b9c-8f72-bfbac96e6f20 + apim-request-id: f3d9b73b-6b72-48bf-906f-dd070dbf4caa content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:13 GMT + date: Wed, 06 Oct 2021 21:05:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_empty_credential_class.yaml index b6cb737a01fd..1666554720ff 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_empty_credential_class.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: e378b2d6-6aa8-4630-a6b5-9cda9467f580 + apim-request-id: bb869600-1d40-47ae-b476-9a5458d591f3 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:18:14 GMT + date: Wed, 06 Oct 2021 21:05:24 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_explicit_set_string_index_type.yaml index 89fbaec9684e..8221b6ee5d0a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_explicit_set_string_index_type.yaml @@ -9,25 +9,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"7b4d3717-77ab-39ff-d8ec-1c7fd8723bd2","name":"\"Hello, World!\" program","matches":[{"text":"Hello world","offset":0,"length":11,"confidenceScore":0.03}],"language":"en","id":"\"Hello, World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e3ea2553-5c2c-46f8-beb8-06e39d198ba3 + apim-request-id: 1f394ce5-5b1d-479f-a599-62e2a56b6d13 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:14 GMT + date: Wed, 06 Oct 2021 21:05:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '41' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=TextElements_v8 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=TextElements_v8 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_all_errors.yaml index b10bd591f055..815acb5d127e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_all_errors.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -21,15 +21,15 @@ interactions: Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: d1c8b8d6-9cd0-40a3-a65c-6d1cfedd7e8d + apim-request-id: 12f72520-fe31-4e8e-a00d-cb8af3892934 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:14 GMT + date: Wed, 06 Oct 2021 21:05:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_some_errors.yaml index b1938bb7467a..97ffa1702c18 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_some_errors.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"2","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.38}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -23,16 +23,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: bb54e6b4-18e9-41cc-a8a5-138fd1bf7f16 + apim-request-id: 7149ec4f-bb4c-4e84-afd4-cc984abf64d7 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:14 GMT + date: Wed, 06 Oct 2021 21:05:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_docs.yaml index 54e5936a7bb4..4e40576aa8bb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_docs.yaml @@ -10,18 +10,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 2433ae2c-7a50-43ac-bbb5-9c3bfcc4d7c5 + apim-request-id: f694625d-64a8-40ed-9e37-998f833191fe content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:15 GMT + date: Wed, 06 Oct 2021 21:05:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -29,5 +29,5 @@ interactions: status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_method.yaml index 28a244b2819c..d671e4adcb73 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_method.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 2aec1d39-302f-4d8d-9844-b0baa16a633a + apim-request-id: e9e73461-2737-456c-8386-9df46cde9158 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:16 GMT + date: Wed, 06 Oct 2021 21:05:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_language_kwarg_spanish.yaml index 29fe626f5442..05c1497dffe3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_language_kwarg_spanish.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -21,16 +21,16 @@ interactions: ejecutivo","matches":[{"text":"CEO","offset":18,"length":3,"confidenceScore":0.22}],"language":"es","id":"Director ejecutivo","url":"https://es.wikipedia.org/wiki/Director_ejecutivo","dataSource":"Wikipedia"},{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":25,"length":9,"confidenceScore":0.3}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c3c296c3-84aa-4d1d-bdaa-46e19d17d17a + apim-request-id: 78a8fca6-3c30-44b2-b79b-785c426bf878 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:16 GMT + date: Wed, 06 Oct 2021 21:05:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '106' + x-envoy-upstream-service-time: '28' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_v3_linked_entity_match.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_v3_linked_entity_match.yaml index d778ee2f545f..9365977eb48b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_v3_linked_entity_match.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_v3_linked_entity_match.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false response: @@ -21,16 +21,16 @@ interactions: Allen","matches":[{"text":"Paul Allen","offset":40,"length":10,"confidenceScore":0.54}],"language":"en","id":"Paul Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 4c96661d-47cf-4c04-8fe5-675cbe5600c3 + apim-request-id: fda46758-1649-4203-92ea-a7f34ce4b03c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:22 GMT + date: Wed, 06 Oct 2021 21:05:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5964' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.0/entities/linking?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.0/entities/linking?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset.yaml index 40d9391c2002..5070607ad0ff 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -21,16 +21,16 @@ interactions: Allen","matches":[{"text":"Paul Allen","offset":40,"length":10,"confidenceScore":0.54}],"language":"en","id":"Paul Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 557808cf-a374-4ef0-9f24-90995bd40fad + apim-request-id: a7212e66-e8cb-4736-92b0-1d81dabcdb30 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:23 GMT + date: Wed, 06 Oct 2021 21:05:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_out_of_order_ids.yaml index 4457b64b2418..7f3c7c7679fb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: d4033e1b-7611-4d3b-8bd3-58ef1ebf7b1e + apim-request-id: dc7787ba-ff49-4eb4-96ec-4b02b4d9d11f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 21:18:24 GMT + date: Wed, 06 Oct 2021 21:05:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_output_same_order_as_input.yaml index 7c08ea7102df..6a29f2e5e781 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 3fff7540-9dc2-45e1-9ad1-337a4f6154c6 + apim-request-id: 4a17dc45-37c2-4376-a288-f618754b1e7e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Mon, 02 Aug 2021 21:18:24 GMT + date: Wed, 06 Oct 2021 21:05:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_pass_cls.yaml index a886e80b95ae..5d75d3fdb27e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"9d84a0ad-fb96-8089-b2e7-9bdb0ee2551e","name":".test","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.02}],"language":"en","id":".test","url":"https://en.wikipedia.org/wiki/.test","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 3a896b3a-3ecd-47b9-8184-a71061ef5df5 + apim-request-id: 2da4ce2e-9ab7-4d01-a042-aca619302a3d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:24 GMT + date: Wed, 06 Oct 2021 21:05:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_passing_only_string.yaml index 2b5ff81f4254..b246c5b6e356 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_passing_only_string.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -29,16 +29,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: b3dfbead-ae9a-4f29-9261-509af48fc8a2 + apim-request-id: 192bff96-87a4-4fc8-bb4e-24258a319046 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Mon, 02 Aug 2021 21:18:25 GMT + date: Wed, 06 Oct 2021 21:05:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '63' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_per_item_dont_use_language_hint.yaml index bb3d1b338e2e..9c48cfae6067 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_per_item_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 69faa0b6-27cf-40a2-9a88-185451762ff4 + apim-request-id: c3f85c67-0b39-4c34-adde-486e281a56b3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:26 GMT + date: Wed, 06 Oct 2021 21:05:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '436' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_rotate_subscription_key.yaml index dcd4cd85e440..b517dad6d316 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_rotate_subscription_key.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: da477128-49b5-4d12-b87a-ca3313285b5a + apim-request-id: edf0f8e7-614b-4503-a564-ebb55cb080da content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:26 GMT + date: Wed, 06 Oct 2021 21:05:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '32' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -44,23 +44,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 1cffced3-e254-4517-883a-251b7dd3f098 + apim-request-id: 59bcffbc-e4aa-43c0-ac5f-e3941aae5570 content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:18:26 GMT + date: Wed, 06 Oct 2021 21:05:28 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -74,23 +74,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a764bbe8-d292-43d7-b3e0-125e66879baa + apim-request-id: c817fc57-90c9-4f77-b574-ccb3d09dc93d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:26 GMT + date: Wed, 06 Oct 2021 21:05:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_show_stats_and_model_version.yaml index 67a80dfda4cf..72e8678ed3f8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a864978c-f5c6-47f1-b83d-e2afaa0de562 + apim-request-id: 7430b870-77ff-4955-a3bd-49863552fb77 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 21:18:27 GMT + date: Wed, 06 Oct 2021 21:05:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '28' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_string_index_type_not_fail_v3.yaml index 498f10b1e9d5..680b31643f66 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_string_index_type_not_fail_v3.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: cd6cd44a-92d9-44a5-9f0a-aeeb0b64ac79 + apim-request-id: ad037180-12da-4ed2-9547-42f09e5dd98c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:18:33 GMT + date: Wed, 06 Oct 2021 21:05:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5232' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.0/entities/linking?showStats=false + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.0/entities/linking?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_too_many_documents.yaml index c450569c519c..8e71369e92dd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_too_many_documents.yaml @@ -12,17 +12,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: 9cb7ccc7-1c78-4bae-9a8e-9be215c90675 + apim-request-id: 1c729312-7012-439f-ace2-201dfa72a7b0 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:33 GMT + date: Wed, 06 Oct 2021 21:05:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -30,5 +30,5 @@ interactions: status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_user_agent.yaml index dd045d85624d..798428d77207 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_user_agent.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 4cfcd916-8289-42d8-8c96-9973b2e6ea66 + apim-request-id: 6b142281-f910-4930-9cf0-08ccb4181ec8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:33 GMT + date: Wed, 06 Oct 2021 21:05:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '9' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_dont_use_language_hint.yaml index eaa919ac7e35..e83bae5c7a6c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: d42ccb55-c85f-48ec-b9a1-2bb8cd99b121 + apim-request-id: 02c42fb0-0dff-46e5-9c2f-d87510b03b55 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:35 GMT + date: Wed, 06 Oct 2021 21:05:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint.yaml index 247d2b020b18..7bf1809db372 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -25,15 +25,15 @@ interactions: Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 821f5b76-19ee-4ce6-b44e-c1befea36d68 + apim-request-id: 6d46294d-0b59-4991-b87a-676add600e1b content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:35 GMT + date: Wed, 06 Oct 2021 21:05:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index b1aa5b6009de..1951d6920527 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 589e54f7-f92b-4ab9-b5a2-a7e48881a7b1 + apim-request-id: 9c98ae90-079e-4f38-9873-335820fc9856 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:35 GMT + date: Wed, 06 Oct 2021 21:05:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_input.yaml index a24e94833e7e..713a707682df 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,9 +25,9 @@ interactions: Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 900ad1bb-6fea-48c0-af44-c4fcdaf8e309 + apim-request-id: a7247655-db73-41ed-bb73-acb6309a8a0c content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:18:36 GMT + date: Wed, 06 Oct 2021 21:05:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -35,5 +35,5 @@ interactions: status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 420131135829..700ec9ee1300 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 5e68a767-7dca-453c-bcb3-8d40421e0d76 + apim-request-id: 0d1d4ea1-a390-4c93-9721-f105661d21d4 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:18:35 GMT + date: Wed, 06 Oct 2021 21:05:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '32' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_dict.yaml index ff51fa67f65a..3dc172be65f9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_dict.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My @@ -28,13 +28,13 @@ interactions: 998.214.865-68 your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - beb98127-49ae-4b73-874e-eaf7a8fe0e5b + - 87eb4cf6-608c-4f55-8345-4c9fa1d4b7c7 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:18:48 GMT + - Wed, 06 Oct 2021 21:05:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '273' + - '27' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_text_document_input.yaml index 9020cb35a1c0..4203fd3107db 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_text_document_input.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My @@ -28,13 +28,13 @@ interactions: 998.214.865-68 your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 66183429-f6d9-4c35-9e8a-f0a0e6a2c1d4 + - 24c76c34-e939-404f-9a8a-7d96b074cb26 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:18:48 GMT + - Wed, 06 Oct 2021 21:05:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '412' + - '34' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_credentials.yaml index ce25bc824391..f1bfd9c582d7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_credentials.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 3fdf5d26-e2b4-42f9-bc32-e89a9dd07ebf + - db69694c-bfd3-410e-bb3f-4065c2624221 content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:18:49 GMT + - Wed, 06 Oct 2021 21:05:30 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_model_version_error.yaml index 733255b84abc..7453d7fa1337 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_model_version_error.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid @@ -24,11 +24,11 @@ interactions: For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - bc52a20a-ffe7-4bb2-b2ea-e9bd618ceb5a + - 359e09fb-37d7-41ac-9fb1-4680960f5bca content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:18:50 GMT + - Wed, 06 Oct 2021 21:05:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit.yaml index 3bdaef81b145..20151e02b2d0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 0dceb30d-34a2-4bd3-a9a8-73025c626c72 + - 687a858b-00cb-4507-87b9-fa2047a8e66e content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:18:50 GMT + - Wed, 06 Oct 2021 21:05:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -779,7 +779,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '12' + - '14' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit_error.yaml index 58f7650df657..badcac6488b9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - e532e3c1-90ba-40d9-9571-33f4a8a6aee2 + - 3a5c213e-e238-4fbc-b4c5-d99a95b12772 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:18:52 GMT + - Wed, 06 Oct 2021 21:05:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -744,7 +744,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '20' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter.yaml index 9c4291fc9eb4..177aa2053594 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"My name is *************, my SSN in @@ -24,13 +24,13 @@ interactions: Montoya","category":"Person","offset":11,"length":13,"confidenceScore":0.99},{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85},{"text":"333-3333","category":"PhoneNumber","offset":71,"length":8,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - d7321118-14ae-4d1a-b946-2b87197c5e47 + - 73289f18-0438-40d9-ab9e-831d934d0bda content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:18:53 GMT + - Wed, 06 Oct 2021 21:05:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '359' + - '32' status: code: 200 message: OK @@ -57,22 +57,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber response: body: string: '{"documents":[{"redactedText":"My name is Inigo Montoya, my SSN in *********** and my phone number is 333-3333.","id":"0","entities":[{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - efd792fc-5dd7-4d3b-9c48-05698b574dbc + - e1c47b7d-aef5-498a-b00b-03230632fb54 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:18:53 GMT + - Wed, 06 Oct 2021 21:05:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -80,7 +80,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '77' + - '35' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter_with_domain_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter_with_domain_filter.yaml index c97c0d9012ea..b7b24c68cbe9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter_with_domain_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter_with_domain_filter.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber response: body: string: '{"documents":[{"redactedText":"My name is Inigo Montoya, my SSN in *********** and my phone number is 333-3333.","id":"0","entities":[{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - ffaac5dc-6d7f-4086-8a1e-c3224f0b52d9 + - 0faa0dc3-58b0-4794-b558-b917bd1d39b2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:18:54 GMT + - Wed, 06 Oct 2021 21:05:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '76' + - '39' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_client_passed_default_language_hint.yaml index 5614fd2c12dd..89a1c4aebc68 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_client_passed_default_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 08f3855f-3d86-4989-a08c-599220c9b7dc + - d98926de-c8b9-4b30-a6cf-1b28db0940c3 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:18:54 GMT + - Wed, 06 Oct 2021 21:05:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '69' + - '24' status: code: 200 message: OK @@ -61,9 +61,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -71,13 +71,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 57ac0e7d-095b-4643-8dfa-3b6989e0d4e1 + - 23d94ffe-2054-4782-b501-d1c5efdc274d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:18:54 GMT + - Wed, 06 Oct 2021 21:05:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -85,7 +85,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '26' status: code: 200 message: OK @@ -106,9 +106,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -116,13 +116,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - bde22212-fabe-4f9c-997f-3dc74d105eef + - bc61cbec-f8f9-4819-ab43-ae4fe0fc8d23 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:18:54 GMT + - Wed, 06 Oct 2021 21:05:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -130,7 +130,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '74' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml index 53f5719ea28e..1e3798d82045 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Hello world","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - d01f5512-5db7-473b-b91a-14e472ab8608 + - 9090d663-4fed-45a0-a49b-c75d0cd26617 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:18:55 GMT + - Wed, 06 Oct 2021 21:05:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '59' + - '19' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_disable_service_logs.yaml index 9b1e5c941cd2..8aa1a51e772b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_disable_service_logs.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Test for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 4519616d-c553-4e37-b61d-19da8542e650 + - f3611dca-de37-4d3a-84ab-88bb8a9e61bd content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:18:55 GMT + - Wed, 06 Oct 2021 21:05:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '20' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_no_result_attribute.yaml index 9c688f156349..021dbbe488e0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_no_result_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 4ff1defc-3b0f-4af3-8667-d8eb61c56bfc + - f50a9720-1679-46fa-8caf-838f9a059471 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:18:56 GMT + - Wed, 06 Oct 2021 21:05:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_nonexistent_attribute.yaml index 4e6b2be374fa..46bb14d78f46 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 9cc7ee4d-0c3c-4d46-9548-eceecf0a8642 + - da526092-6295-4a2b-9e61-a63fe8a42f8f content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:18:57 GMT + - Wed, 06 Oct 2021 21:05:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_errors.yaml index f095d6b994b4..a85dbd7638c5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -33,11 +33,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 66b5724a-6667-41bd-af37-fa7787ee2489 + - 97c6c524-4390-44eb-9530-eb2c657c1a06 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:18:57 GMT + - Wed, 06 Oct 2021 21:05:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_warnings.yaml index 33716d2a9fff..add3096d46b6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_warnings.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This won''t actually create a warning :''(","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 60723155-2ecd-4d8a-b879-f4f95e429167 + - e6e087fb-c768-4896-9a3c-d2a0964d77b0 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:18:57 GMT + - Wed, 06 Oct 2021 21:05:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '43' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_duplicate_ids_error.yaml index 7f4d4a742a4a..97522778b8e1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 8d4ef8e1-5af5-4b8a-86dc-fe0a1092aa2e + - 6f1f8140-5f13-4e16-a10f-d551c43f8ba9 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:18:58 GMT + - Wed, 06 Oct 2021 21:05:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '4' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_empty_credential_class.yaml index 3fbbc563accc..c56b2c9e716d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_empty_credential_class.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -24,13 +24,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 31dc20ff-c06c-4354-a47d-53c3e0279a35 + - ab303e23-b036-4a84-bf75-0d6c911fde4c content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:18:59 GMT + - Wed, 06 Oct 2021 21:05:35 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_explicit_set_string_index_type.yaml index 3d778446f699..5267ab01077c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_explicit_set_string_index_type.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"redactedText":"Hello world","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - bf6c388a-6b4d-4588-b2e2-cedd71e1df26 + - 9e3af2dc-363a-416c-a4e1-ce1a5219b25d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:18:59 GMT + - Wed, 06 Oct 2021 21:05:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '33' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_all_errors.yaml index ff73360dad15..33fa9c63db91 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_all_errors.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -29,11 +29,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 5dfad707-5922-46bf-8d9d-09bc4133075a + - 6094fb4d-0dc0-4137-add4-9cb8f4950b7f content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:19:00 GMT + - Wed, 06 Oct 2021 21:05:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_some_errors.yaml index cd6997f685b4..55854c01a58b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_some_errors.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Is 998.214.865-68 your Brazilian CPF @@ -29,13 +29,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 6e1be0b4-ed72-44df-9cfa-68d4f40a1173 + - 9ecc2d51-aa17-473f-bf08-71157e14b434 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:19:00 GMT + - Wed, 06 Oct 2021 21:05:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '43' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_docs.yaml index 03e4d17d3be6..4ffeef5b05aa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_docs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - efb4a9de-035d-42cf-b18e-752156fe049d + - 4d10618f-6264-46a5-8aa9-fd9a70a6f33f content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:19:01 GMT + - Wed, 06 Oct 2021 21:05:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '1' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_method.yaml index 042ce8ff8a3f..2c2ed180268f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_method.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - b5e657ac-922a-406e-b689-2ab67c0ba128 + - ef1e57d7-5671-46cb-9c0f-621e0aa7f551 content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:19:01 GMT + - Wed, 06 Oct 2021 21:05:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '6' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_english.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_english.yaml index 05d0ed9b6f76..6c72692e80bf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_english.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_english.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"redactedText":"********** @@ -24,13 +24,13 @@ interactions: Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.95},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 2439cda3-8691-4112-bd03-fa312e38a7de + - c9a177ab-5b3c-41ef-9acd-b7309b197b0e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:19:02 GMT + - Wed, 06 Oct 2021 21:05:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '34' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_out_of_order_ids.yaml index aee76d13d6cd..798eb1975060 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_out_of_order_ids.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 98a96024-e9c7-4eb9-baba-0951c994f985 + - 9a6fd375-aaac-4578-9f27-a4222cc7b9e1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 21:19:03 GMT + - Wed, 06 Oct 2021 21:05:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '55' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_output_same_order_as_input.yaml index b00fd0712243..c6bd43bef5b1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"one","id":"1","entities":[],"warnings":[]},{"redactedText":"two","id":"2","entities":[],"warnings":[]},{"redactedText":"three","id":"3","entities":[],"warnings":[]},{"redactedText":"four","id":"4","entities":[],"warnings":[]},{"redactedText":"five","id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - bda3f67d-ff23-4531-b10d-871ea15677aa + - e9e1baaf-e0f0-4849-8329-97cb14265228 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Mon, 02 Aug 2021 21:19:03 GMT + - Wed, 06 Oct 2021 21:05:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '242' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_pass_cls.yaml index 62eb28f3bb9d..2925cc589ec5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Test passing cls to endpoint","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 9df75387-2a8c-4b5e-95fe-e8cc11219d38 + - 12293a2f-6291-42ed-a76a-ebc69d1ddddc content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:19:04 GMT + - Wed, 06 Oct 2021 21:05:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '147' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_passing_only_string.yaml index 7977bdc33185..c980106b0e1c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_passing_only_string.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"My @@ -31,13 +31,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 315ed1ae-753b-49f4-b8ed-afa1d6fc7c50 + - 85554dd2-e608-4f2c-b411-2959fb38e13b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:04 GMT + - Wed, 06 Oct 2021 21:05:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '143' + - '30' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_per_item_dont_use_language_hint.yaml index f16ade540392..187ed62c26ca 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_per_item_dont_use_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 65e25b8c-6986-4ea7-a7e0-7b49048a32e5 + - 9e2df3ca-c2ed-4e50-8f6f-17f0b4088be2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:05 GMT + - Wed, 06 Oct 2021 21:05:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '63' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_phi_domain_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_phi_domain_filter.yaml index 14f3f12e3d69..34947eec8a17 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_phi_domain_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_phi_domain_filter.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I work at ********* and my phone number is ************","id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":10,"length":9,"confidenceScore":0.95},{"text":"333-333-3333","category":"PhoneNumber","offset":43,"length":12,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - f9272972-84e2-4d1a-a99a-ad70865cec4c + - 32eda87d-4285-4849-bb1c-1e2c1958b494 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:19:06 GMT + - Wed, 06 Oct 2021 21:05:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text.yaml index bb2fbff1dc8f..53218876b1c2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"My SSN is ***********.","id":"0","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - b2086784-47cd-44e3-ac35-556a1c7c980b + - c783a5f6-fd9c-47c8-8696-ff95e2d9e92e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Mon, 02 Aug 2021 21:19:07 GMT + - Wed, 06 Oct 2021 21:05:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '42' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_rotate_subscription_key.yaml index fd506e1db337..a20b0b13a6da 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_rotate_subscription_key.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 512a3e77-10b6-4f41-b282-233a94ea4cda + - 4528ab88-3555-4dd0-a5b4-754b0801de5b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:07 GMT + - Wed, 06 Oct 2021 21:05:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '42' + - '26' status: code: 200 message: OK @@ -61,9 +61,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription @@ -71,13 +71,13 @@ interactions: subscription and use a correct regional API endpoint for your resource."}}' headers: apim-request-id: - - 9d9d6d95-aca8-4a02-ba27-c5b25292909b + - 990c2aa1-54a7-4b67-a88c-b16b5736101e content-length: - '224' content-type: - application/json date: - - Mon, 02 Aug 2021 21:19:07 GMT + - Wed, 06 Oct 2021 21:05:38 GMT status: code: 401 message: PermissionDenied @@ -98,9 +98,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -108,13 +108,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 3f1c4833-9536-4b38-8bd6-b42ead516008 + - 234f3647-4187-46df-93a7-a6a08b047942 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:07 GMT + - Wed, 06 Oct 2021 21:05:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -122,7 +122,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '47' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_show_stats_and_model_version.yaml index fdb279cacedb..4dc95c07802f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_show_stats_and_model_version.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - abc0f333-202c-4bf8-832d-4a16e82487f2 + - eaa22568-4239-4e97-a6ad-6b89326df9b7 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Mon, 02 Aug 2021 21:19:08 GMT + - Wed, 06 Oct 2021 21:05:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '47' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_too_many_documents.yaml index 8ae0468aa848..f32acebc76d4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_too_many_documents.yaml @@ -16,20 +16,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 3e6b4dee-56ed-4b76-890c-c189d9c234b8 + - 493bfb81-c6bb-46e2-8ed0-16d11403c7dd content-type: - application/json; charset=utf-8 date: - - Mon, 02 Aug 2021 21:19:08 GMT + - Wed, 06 Oct 2021 21:05:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '9' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_user_agent.yaml index 0dd1187840a0..b14735e820a3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_user_agent.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - e33d9042-0ce5-4d5a-8e01-8ec8ac330866 + - 9055f47e-f31b-4adb-b46e-c09453beb633 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:09 GMT + - Wed, 06 Oct 2021 21:05:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_dont_use_language_hint.yaml index 30f18e207634..b916811415f8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_dont_use_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This was the best day of my life.","id":"0","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant was not as good as I hoped.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 113bbf4a-ac28-40c9-b192-b6e938e2ef40 + - 3ec7d903-38b4-4a90-bd37-d9ae428120b8 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:09 GMT + - Wed, 06 Oct 2021 21:05:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '62' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint.yaml index 0f0fe752c347..11479cbb7ce5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This was the best day of my life.","id":"0","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant was not as good as I hoped.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 914cfa28-5b27-47cf-b53e-31308bc498e8 + - e54c8305-3e1d-40d2-af55-3ee1df7d8642 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:10 GMT + - Wed, 06 Oct 2021 21:05:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '61' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index fa22971e0592..bf0358f96f92 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 7dc55d0d-10c7-4a40-9918-abecf0236ab7 + - b36c2cb6-e21c-48b2-a7b8-7a9a2f948aef content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:11 GMT + - Wed, 06 Oct 2021 21:05:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_input.yaml index d0de0a4a239c..913509311d59 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\"\ @@ -30,13 +30,13 @@ interactions: :\"2021-01-15\"}" headers: apim-request-id: - - 5382a1a7-f583-433f-8931-f7d5be601591 + - c4bdf579-eadc-410d-a092-f3315dacb29d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:11 GMT + - Wed, 06 Oct 2021 21:05:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '32' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 0dde6f04653c..3b5f0c609393 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\"\ @@ -30,13 +30,13 @@ interactions: :\"2021-01-15\"}" headers: apim-request-id: - - bf6151f4-48bb-4d15-a7e5-5459146d0c4b + - fea262ee-7292-48d4-bfa6-65f0d56dcc28 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Mon, 02 Aug 2021 21:19:12 GMT + - Wed, 06 Oct 2021 21:05:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '359' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_dict.yaml index 38ccf8bbfb99..00f480bd5247 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_dict.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My @@ -23,16 +23,16 @@ interactions: of your personal check.","id":"2","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 1b9b82ca-be09-48aa-82b6-0994e22e4f3b + apim-request-id: 23f43ecc-6021-4442-92af-6405867bfd20 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:23 GMT + date: Wed, 06 Oct 2021 21:05:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '231' + x-envoy-upstream-service-time: '31' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_text_document_input.yaml index 4263b54c4985..1c2c11299c7d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_text_document_input.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My @@ -23,16 +23,16 @@ interactions: of your personal check.","id":"2","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 161301a1-8b9b-4aca-b241-388e0683800a + apim-request-id: 3f2a7738-09bf-4553-be6d-88de7a785334 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:24 GMT + date: Wed, 06 Oct 2021 21:05:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '273' + x-envoy-upstream-service-time: '37' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_credentials.yaml index 99060103682f..78ff9bb238d1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_credentials.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 611ea3a3-fe4d-4dc2-a917-69f483b8e236 + apim-request-id: de39d748-701b-4e9a-9a61-c435ab20c44a content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:19:24 GMT + date: Wed, 06 Oct 2021 21:05:41 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_model_version_error.yaml index 978fc2def136..1499912a0400 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_model_version_error.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid model version. Possible values are: latest,2019-10-01,2020-02-01,2020-04-01,2020-07-01,2021-01-15. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: 7dcc61d1-28a4-408c-95ac-4cac04543263 + apim-request-id: 9e8651aa-d993-4a6d-b42b-67d5f9d8eac1 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:25 GMT + date: Wed, 06 Oct 2021 21:05:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '5' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit.yaml index fd0596191b47..7c0d9d3dfd43 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit.yaml @@ -754,23 +754,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: 63ddc92a-6edb-4ac4-b6d4-76ee1f7e9176 + apim-request-id: 14b70432-a0b0-4587-a14f-2c0c0d1b6955 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:26 GMT + date: Wed, 06 Oct 2021 21:05:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '95' + x-envoy-upstream-service-time: '11' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit_error.yaml index 80da9a0220f9..451e4dcffa98 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: ced41174-d954-42b6-b0b9-f5fe68a6a479 + apim-request-id: c053aa5d-f22a-4938-b7b2-5c303f8a5274 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:26 GMT + date: Wed, 06 Oct 2021 21:05:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '17' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter.yaml index d2b2cd6b52e9..08715721b22b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter.yaml @@ -10,27 +10,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"My name is *************, my SSN in *********** and my phone number is ********.","id":"0","entities":[{"text":"Inigo Montoya","category":"Person","offset":11,"length":13,"confidenceScore":0.99},{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85},{"text":"333-3333","category":"PhoneNumber","offset":71,"length":8,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 070eaca2-dbf5-4d8e-9bdb-d7c81f04b87f + apim-request-id: 72903777-9703-4370-9ec1-209fe85f771d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:27 GMT + date: Wed, 06 Oct 2021 21:05:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '36' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "0", "text": "My name is Inigo Montoya, my SSN in 243-56-0987 and my phone number is 333-3333.", "language": "en"}]}' @@ -42,24 +42,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber response: body: string: '{"documents":[{"redactedText":"My name is Inigo Montoya, my SSN in *********** and my phone number is 333-3333.","id":"0","entities":[{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 5d2f07c0-6ba8-49c9-ad44-0a582efdf502 + apim-request-id: 9c53ef0b-6cd1-436c-9fb8-ee346fe9c6b5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:27 GMT + date: Wed, 06 Oct 2021 21:05:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '56' + x-envoy-upstream-service-time: '35' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter_with_domain_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter_with_domain_filter.yaml index 8714de7dd486..d962e369a286 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter_with_domain_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter_with_domain_filter.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber response: body: string: '{"documents":[{"redactedText":"My name is Inigo Montoya, my SSN in *********** and my phone number is 333-3333.","id":"0","entities":[{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: faea001c-c446-44e1-8d62-07474105a5d2 + apim-request-id: d7bcc008-1dcd-4e79-b5f3-b3358f42c0ed content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:28 GMT + date: Wed, 06 Oct 2021 21:05:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '111' + x-envoy-upstream-service-time: '42' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_client_passed_default_language_hint.yaml index 42089e84918c..46bad91086a5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_client_passed_default_language_hint.yaml @@ -12,27 +12,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: c21627eb-2b41-489b-8284-ffe84b6816b7 + apim-request-id: caaea443-81a2-4981-ab56-900c59b14057 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:28 GMT + date: Wed, 06 Oct 2021 21:05:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -46,27 +46,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 89b8de7f-c21f-40fe-b29a-8655e256a564 + apim-request-id: 0c877107-01da-4a69-b94f-630f52304727 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:28 GMT + date: Wed, 06 Oct 2021 21:05:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '61' + x-envoy-upstream-service-time: '27' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -80,25 +80,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 603a41f6-d389-4cb1-9ba8-547236651943 + apim-request-id: 28e042d6-0181-40d6-9ec1-69bc2b827dfc content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:28 GMT + date: Wed, 06 Oct 2021 21:05:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '34' + x-envoy-upstream-service-time: '28' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index 57869423a162..95151c0adce0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Hello world","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 02aa4057-b6af-49e3-a8ef-1de56f3172c7 + apim-request-id: a1e62586-2f30-4dc4-b2a1-83e2ee10742c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:29 GMT + date: Wed, 06 Oct 2021 21:05:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '34' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_disable_service_logs.yaml index fc9834eeb898..289c8d17ab4e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_disable_service_logs.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Test for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: a495efce-ea57-48f5-a131-e418924bc8ff + apim-request-id: 3a0488ce-5ec9-431b-8a5f-e411b4975729 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:29 GMT + date: Wed, 06 Oct 2021 21:05:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '38' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_no_result_attribute.yaml index d6569755896f..31c39634c37a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: ab4162e2-298b-4a79-8b80-264d443ca6c7 + apim-request-id: 965566e6-1a07-43aa-95ea-d988481530fa content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:29 GMT + date: Wed, 06 Oct 2021 21:05:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_nonexistent_attribute.yaml index a20810c587a2..ceba191b8af8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,18 +9,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: e3d7f289-f499-4240-bed2-e076f60688e5 + apim-request-id: 82d5b0ba-3309-43d5-9baf-9071a72bae14 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:30 GMT + date: Wed, 06 Oct 2021 21:05:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -28,5 +28,5 @@ interactions: status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_errors.yaml index 2421272de5ec..d68f3937b261 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -28,15 +28,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 5497af95-7a3f-42bb-90d9-f3eacfc0496d + apim-request-id: 9910aaef-e7bd-4d1f-8592-22e899acfbb3 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:30 GMT + date: Wed, 06 Oct 2021 21:05:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_warnings.yaml index 06b3a0bddd71..17343c918177 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_warnings.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This won''t actually create a warning :''(","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: e9991b16-605e-4fb0-b540-0701bb68cc34 + apim-request-id: cadca668-818a-44bc-9309-8ee539f45a02 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:30 GMT + date: Wed, 06 Oct 2021 21:05:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '38' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_duplicate_ids_error.yaml index 17f214b96b47..9f85866ec770 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: dd5bc21e-0baf-497b-9b7d-dac5799f2779 + apim-request-id: 0b8bf1fe-6e0e-4ad2-88ee-b21a6378ef3b content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:31 GMT + date: Wed, 06 Oct 2021 21:05:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '8' + x-envoy-upstream-service-time: '5' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_empty_credential_class.yaml index 4cf34203f31f..622590a2d172 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_empty_credential_class.yaml @@ -10,21 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 5eeae319-cd31-4e74-9a38-02813e9bd209 + apim-request-id: b95c1e74-155f-41d1-8c5b-5b93aafb828b content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:19:32 GMT + date: Wed, 06 Oct 2021 21:05:45 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_explicit_set_string_index_type.yaml index 4a5222366603..d9d2ef7cfddc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_explicit_set_string_index_type.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"redactedText":"Hello world","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 7146ebab-e286-4204-8385-a8669aaca537 + apim-request-id: 9065c65c-748e-49e3-a2b3-6f74c36e11fe content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:32 GMT + date: Wed, 06 Oct 2021 21:05:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_all_errors.yaml index 0b475ba5ae05..cb05493be5fa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_all_errors.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -24,9 +24,9 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 5373eea3-4a0f-4039-80c9-088ea1840015 + apim-request-id: dcdab0d4-8bac-4900-b5de-e1811de58f84 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:32 GMT + date: Wed, 06 Oct 2021 21:05:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -34,5 +34,5 @@ interactions: status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_some_errors.yaml index ef69eaf3b0f6..97133223a2e2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_some_errors.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Is 998.214.865-68 your Brazilian CPF @@ -24,16 +24,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 865634fd-6550-457a-9a4a-b85f554d7a42 + apim-request-id: ad89564d-2521-404f-aa9f-231b9b2559e3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:33 GMT + date: Wed, 06 Oct 2021 21:05:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '41' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_docs.yaml index 1fc58364651f..a65b7345a16b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_docs.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: language code. Supported languages: de,en,es,fr,it,ja,ko,pt-BR,pt-PT,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 51fbaa43-0970-4834-b1e4-0d0f306f3bc0 + apim-request-id: 6011c659-5259-41a4-a88b-4c26e3aeb5be content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:33 GMT + date: Wed, 06 Oct 2021 21:05:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_method.yaml index f7d7ef188498..a3f1544624c2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_method.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -20,9 +20,9 @@ interactions: language code. Supported languages: de,en,es,fr,it,ja,ko,pt-BR,pt-PT,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 8f5dd642-bb97-4dd7-a781-bebf942092ff + apim-request-id: 3759e13e-b83b-4889-9a88-dfee22296d49 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:34 GMT + date: Wed, 06 Oct 2021 21:05:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -30,5 +30,5 @@ interactions: status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_language_kwarg_english.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_language_kwarg_english.yaml index 15b4f8a648b5..4735ccf078f6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_language_kwarg_english.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_language_kwarg_english.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"redactedText":"********** is the *** of *********.","id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.95},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 965c559c-ac8a-4400-bf89-b6f672f392ee + apim-request-id: ae21aa4d-33b2-407a-9eec-1a49a63dd9b6 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:35 GMT + date: Wed, 06 Oct 2021 21:05:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_out_of_order_ids.yaml index c77b0a9aa68b..49c35a6c9186 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 6c8483d5-bd47-4d3f-98dc-1d196e18ab3e + apim-request-id: ae04eb89-0c76-496e-ba54-7a23975afb2b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 21:19:34 GMT + date: Wed, 06 Oct 2021 21:05:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '43' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_output_same_order_as_input.yaml index aea74d752cb4..7b4abc55306a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"one","id":"1","entities":[],"warnings":[]},{"redactedText":"two","id":"2","entities":[],"warnings":[]},{"redactedText":"three","id":"3","entities":[],"warnings":[]},{"redactedText":"four","id":"4","entities":[],"warnings":[]},{"redactedText":"five","id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 285193ad-f610-4fb3-a6b6-761a909e73a4 + apim-request-id: 36ce39f3-310e-417b-b7a5-e587df4c6129 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Mon, 02 Aug 2021 21:19:36 GMT + date: Wed, 06 Oct 2021 21:05:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '193' + x-envoy-upstream-service-time: '30' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_pass_cls.yaml index dec786543d70..69532680b696 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Test passing cls to endpoint","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 78f8e5f6-eec4-4a5a-8099-0600fc2f8a63 + apim-request-id: 486d2fbf-8f9b-4ba7-b55c-1d1683fbdab4 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:36 GMT + date: Wed, 06 Oct 2021 21:05:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_passing_only_string.yaml index b0ccf9b61356..05781b56d3fd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_passing_only_string.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"My @@ -26,16 +26,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 6b05ea93-d96a-498a-a4f5-990ed8edde6d + apim-request-id: b8681a60-2eb9-4ca4-8fd6-63eedd13ab0a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:37 GMT + date: Wed, 06 Oct 2021 21:05:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '88' + x-envoy-upstream-service-time: '33' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_per_item_dont_use_language_hint.yaml index 47dec181218e..af5e796af0ec 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_per_item_dont_use_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 749193c7-afdf-4e3c-a7c8-40e029d81247 + apim-request-id: fb62d956-0863-4a94-8e13-5dfb5cabb6df content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:37 GMT + date: Wed, 06 Oct 2021 21:05:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '58' + x-envoy-upstream-service-time: '32' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_phi_domain_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_phi_domain_filter.yaml index 3a8357285cb4..8d48709de32a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_phi_domain_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_phi_domain_filter.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I work at ********* and my phone number is ************","id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":10,"length":9,"confidenceScore":0.95},{"text":"333-333-3333","category":"PhoneNumber","offset":43,"length":12,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 41c37b9f-f184-454a-9702-0faf0b1ecced + apim-request-id: 3d2c020a-5272-4b4d-b799-dc368b7c0f22 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:38 GMT + date: Wed, 06 Oct 2021 21:05:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '226' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text.yaml index 5389c13068f3..8b4eb3f0354f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"My SSN is ***********.","id":"0","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: bf429218-b94a-49b0-93af-e47cabbb7a9f + apim-request-id: eb018fb6-a6d4-4582-8155-bf444acaaf00 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Mon, 02 Aug 2021 21:19:38 GMT + date: Wed, 06 Oct 2021 21:05:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_rotate_subscription_key.yaml index f741a2a5a148..857ba21e991f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_rotate_subscription_key.yaml @@ -12,27 +12,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: d73ff0ff-f68a-417b-9055-4f9d781ec1e9 + apim-request-id: b6d5872c-b190-4fde-b34d-52412e3841ec content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:38 GMT + date: Wed, 06 Oct 2021 21:05:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '45' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -46,23 +46,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"401","message":"Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 0e81fea3-a6b8-40d3-9c3f-0c959fe5b086 + apim-request-id: fd048194-e1bf-4e22-bdbb-ec3c5efdecfe content-length: '224' content-type: application/json - date: Mon, 02 Aug 2021 21:19:39 GMT + date: Wed, 06 Oct 2021 21:05:49 GMT status: code: 401 message: PermissionDenied - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -76,25 +76,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 77760a30-e6c6-4242-9221-0d08d928e94f + apim-request-id: 491f3e86-ae80-4345-b28e-d48cadaf686f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:39 GMT + date: Wed, 06 Oct 2021 21:05:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '37' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_show_stats_and_model_version.yaml index 03d8de38a23f..721df05bedc8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 11999f40-3f15-4c8a-8948-8845da6e7265 + apim-request-id: ca7824fa-04b3-4dc8-9d73-b8fc82bac736 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Mon, 02 Aug 2021 21:19:39 GMT + date: Wed, 06 Oct 2021 21:05:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' + x-envoy-upstream-service-time: '42' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_too_many_documents.yaml index 65035ff93fca..23b3763bef6d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_too_many_documents.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: a98bcb4d-9d04-485c-a1e3-691f24ce8cc9 + apim-request-id: 3cba63b8-6230-4826-9773-e18cb892cbe8 content-type: application/json; charset=utf-8 - date: Mon, 02 Aug 2021 21:19:40 GMT + date: Wed, 06 Oct 2021 21:05:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '5' status: code: 400 message: Bad Request - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_user_agent.yaml index c954174d50ba..3f25289dfb14 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_user_agent.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 914aaab7-9f7e-4ffa-b89b-f0d3788fbb9e + apim-request-id: 528fe3ce-d65e-417b-96b3-88fd170b4877 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:41 GMT + date: Wed, 06 Oct 2021 21:05:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '56' + x-envoy-upstream-service-time: '27' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_dont_use_language_hint.yaml index ebe3bf5fe3e1..8b68de3c3e80 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This was the best day of my life.","id":"0","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at. It was too expensive.","id":"1","entities":[],"warnings":[]},{"redactedText":"The restaurant was not as good as I hoped.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 2e984ff9-62dd-40b3-ae16-6a0ff01fa611 + apim-request-id: 1390001c-6cd2-40a2-bc82-cd2d750d68e6 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:40 GMT + date: Wed, 06 Oct 2021 21:05:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '70' + x-envoy-upstream-service-time: '27' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint.yaml index 85e4e335ae30..416dbf4b0b78 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This was the best day of my life.","id":"0","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at. It was too expensive.","id":"1","entities":[],"warnings":[]},{"redactedText":"The restaurant was not as good as I hoped.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 57ddc675-db56-40e0-b29b-8f5c2176bafd + apim-request-id: 41c9d09e-986f-4a25-b88f-37eff84968f7 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:42 GMT + date: Wed, 06 Oct 2021 21:05:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '29' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 731ce7c95a2c..3142b8f3182b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 0f5d0e0b-093d-46c0-884b-1393a724a8e1 + apim-request-id: 1dfe1542-f210-4182-916d-4ef66c23c964 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:42 GMT + date: Wed, 06 Oct 2021 21:05:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '59' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_input.yaml index 1df638422f54..e8bf5abd3303 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\"\ @@ -25,16 +25,16 @@ interactions: \",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ :\"2021-01-15\"}" headers: - apim-request-id: 6d0a6a3f-4a4e-4cf4-8adf-98d3cf481327 + apim-request-id: fa7935e1-57f1-4cc1-a49c-4dfe686f6a81 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:42 GMT + date: Wed, 06 Oct 2021 21:05:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 130ee9768b46..cd838f750c66 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.2.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.2.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\"\ @@ -25,16 +25,16 @@ interactions: \",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ :\"2021-01-15\"}" headers: - apim-request-id: c8d3dd5e-7ac4-4b1c-9465-dd376ede46f0 + apim-request-id: 642adfc9-714f-47f4-ab74-bf1ebe721d98 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Mon, 02 Aug 2021 21:19:43 GMT + date: Wed, 06 Oct 2021 21:05:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '293' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://tacanaryjava.cognitiveservices.azure.com//text/analytics/v3.2-preview.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://javatextanalyticstestresources.cognitiveservices.azure.com//text/analytics/v3.2-preview.2/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py index 8ef031857bea..0260142bc8e4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py @@ -35,7 +35,13 @@ RecognizePiiEntitiesResult, ExtractSummaryAction, PiiEntityCategory, - ExtractSummaryResult + ExtractSummaryResult, + SingleCategoryClassifyAction, + MultiCategoryClassifyAction, + RecognizeCustomEntitiesAction, + SingleCategoryClassifyResult, + MultiCategoryClassifyResult, + RecognizeCustomEntitiesResult ) # pre-apply the client_cls positional argument so it needn't be explicitly passed below @@ -670,8 +676,19 @@ def test_too_many_documents(self, client): assert excinfo.value.status_code == 400 @TextAnalyticsPreparer() - @TextAnalyticsClientPreparer() - def test_disable_service_logs(self, client): + def test_disable_service_logs( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_single_category_classify_project_name, + textanalytics_single_category_classify_deployment_name, + textanalytics_multi_category_classify_project_name, + textanalytics_multi_category_classify_deployment_name, + textanalytics_custom_entities_project_name, + textanalytics_custom_entities_deployment_name + ): + + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) actions = [ RecognizeEntitiesAction(disable_service_logs=True), ExtractKeyPhrasesAction(disable_service_logs=True), @@ -679,6 +696,21 @@ def test_disable_service_logs(self, client): RecognizeLinkedEntitiesAction(disable_service_logs=True), AnalyzeSentimentAction(disable_service_logs=True), ExtractSummaryAction(disable_service_logs=True), + SingleCategoryClassifyAction( + project_name=textanalytics_single_category_classify_project_name, + deployment_name=textanalytics_single_category_classify_deployment_name, + disable_service_logs=True + ), + MultiCategoryClassifyAction( + project_name=textanalytics_multi_category_classify_project_name, + deployment_name=textanalytics_multi_category_classify_deployment_name, + disable_service_logs=True + ), + RecognizeCustomEntitiesAction( + project_name=textanalytics_custom_entities_project_name, + deployment_name=textanalytics_custom_entities_deployment_name, + disable_service_logs=True + ) ] for action in actions: @@ -764,20 +796,129 @@ def test_partial_success_for_actions(self, client): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() - def test_multiple_of_same_action_fail(self, client): - docs = [{"id": "1", "language": "en", "text": "I did not like the hotel we stayed at."}, - {"id": "2", "language": "en", "text": "I did not like the hotel we stayed at."}] + def test_multiple_of_same_action(self, client): + docs = [ + {"id": "28", "text": "My SSN is 859-98-0987. Here is another sentence."}, + {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number? Here is another sentence."}, + {"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + ] - with pytest.raises(ValueError) as e: - client.begin_analyze_actions( - docs, - actions=[ - RecognizePiiEntitiesAction(domain_filter="phi"), - RecognizePiiEntitiesAction(), - ], - polling_interval=self._interval(), - ).result() - assert "Multiple of the same action is not currently supported." in str(e.value) + actions = [ + AnalyzeSentimentAction(), + RecognizePiiEntitiesAction(), + RecognizeEntitiesAction(), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(order_by="Rank"), + RecognizePiiEntitiesAction(categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]), + ExtractKeyPhrasesAction(), + RecognizeEntitiesAction(), + AnalyzeSentimentAction(show_opinion_mining=True), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(max_sentence_count=1), + ExtractKeyPhrasesAction(), + ] + + response = client.begin_analyze_actions( + docs, + actions=actions, + polling_interval=self._interval(), + ).result() + + action_results = list(response) + assert len(action_results) == len(docs) + assert len(action_results[0]) == len(actions) + assert len(action_results[1]) == len(actions) + assert len(action_results[2]) == len(actions) + + for idx, action_result in enumerate(action_results): + if idx == 0: + doc_id = "28" + elif idx == 1: + doc_id = "3" + else: + doc_id = "5" + + assert isinstance(action_result[0], AnalyzeSentimentResult) + assert not all([sentence.mined_opinions for sentence in action_result[0].sentences]) + assert action_result[0].id == doc_id + + assert isinstance(action_result[1], RecognizePiiEntitiesResult) + assert action_result[1].id == doc_id + + assert isinstance(action_result[2], RecognizeEntitiesResult) + assert action_result[2].id == doc_id + + assert isinstance(action_result[3], RecognizeLinkedEntitiesResult) + assert action_result[3].id == doc_id + + assert isinstance(action_result[4], ExtractSummaryResult) + previous_score = 1.0 + for sentence in action_result[4].sentences: + assert sentence.rank_score <= previous_score + previous_score = sentence.rank_score + assert action_result[4].id == doc_id + + assert isinstance(action_result[5], RecognizePiiEntitiesResult) + assert action_result[5].id == doc_id + if doc_id == "28": + assert action_result[5].entities + else: + assert not action_result[5].entities + + assert isinstance(action_result[6], ExtractKeyPhrasesResult) + assert action_result[6].id == doc_id + + assert isinstance(action_result[7], RecognizeEntitiesResult) + assert action_result[7].id == doc_id + + assert isinstance(action_result[8], AnalyzeSentimentResult) + assert [sentence.mined_opinions for sentence in action_result[0].sentences] + assert action_result[8].id == doc_id + + assert isinstance(action_result[9], RecognizeLinkedEntitiesResult) + assert action_result[9].id == doc_id + + assert isinstance(action_result[10], ExtractSummaryResult) + assert len(action_result[10].sentences) == 1 + + assert isinstance(action_result[11], ExtractKeyPhrasesResult) + assert action_result[11].id == doc_id + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + def test_multiple_of_same_action_with_partial_results(self, client): + docs = [{"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "text": ""}] + + actions = [ + ExtractSummaryAction(max_sentence_count=3), + RecognizePiiEntitiesAction(), + ExtractSummaryAction(max_sentence_count=5) + ] + + response = client.begin_analyze_actions( + docs, + actions=actions, + polling_interval=self._interval(), + ).result() + + action_results = list(response) + assert len(action_results) == len(docs) + assert len(action_results[0]) == len(actions) + assert len(action_results[1]) == len(actions) + + # first doc + assert isinstance(action_results[0][0], ExtractSummaryResult) + assert action_results[0][0].id == "5" + assert isinstance(action_results[0][1], RecognizePiiEntitiesResult) + assert action_results[0][1].id == "5" + assert isinstance(action_results[0][2], ExtractSummaryResult) + assert action_results[0][2].id == "5" + + # second doc + assert action_results[1][0].is_error + assert action_results[1][1].is_error + assert action_results[1][2].is_error @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() @@ -887,3 +1028,223 @@ def test_extract_summary_partial_results(self, client): assert not document_results[1][0].is_error assert isinstance(document_results[1][0], ExtractSummaryResult) + + @TextAnalyticsPreparer() + def test_single_category_classify( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_single_category_classify_project_name, + textanalytics_single_category_classify_deployment_name + ): + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component."}, + {"id": "3", "language": "en", "text": "I need a reservation for an indoor restaurant in China. Please don't stop the music. Play music and add it to my playlist"}, + ] + + response = client.begin_analyze_actions( + docs, + actions=[ + SingleCategoryClassifyAction( + project_name=textanalytics_single_category_classify_project_name, + deployment_name=textanalytics_single_category_classify_deployment_name + ) + ], + show_stats=True, + polling_interval=self._interval(), + ).result() + + document_results = list(response) + for doc_result in document_results: + for result in doc_result: + assert result.id + assert not result.is_error + assert not result.warnings + assert result.statistics + assert result.classification.category + assert result.classification.confidence_score + + @TextAnalyticsPreparer() + def test_multi_category_classify( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_multi_category_classify_project_name, + textanalytics_multi_category_classify_deployment_name + ): + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component."}, + {"id": "3", "language": "en", "text": "I need a reservation for an indoor restaurant in China. Please don't stop the music. Play music and add it to my playlist"}, + ] + + response = client.begin_analyze_actions( + docs, + actions=[ + MultiCategoryClassifyAction( + project_name=textanalytics_multi_category_classify_project_name, + deployment_name=textanalytics_multi_category_classify_deployment_name + ) + ], + show_stats=True, + polling_interval=self._interval(), + ).result() + + document_results = list(response) + for doc_result in document_results: + for result in doc_result: + assert result.id + assert not result.is_error + assert not result.warnings + assert result.statistics + for classification in result.classifications: + assert classification.category + assert classification.confidence_score + + @TextAnalyticsPreparer() + def test_recognize_custom_entities( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_custom_entities_project_name, + textanalytics_custom_entities_deployment_name + ): + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component."}, + {"id": "3", "language": "en", "text": "I need a reservation for an indoor restaurant in China. Please don't stop the music. Play music and add it to my playlist"}, + ] + + response = client.begin_analyze_actions( + docs, + actions=[ + RecognizeCustomEntitiesAction( + project_name=textanalytics_custom_entities_project_name, + deployment_name=textanalytics_custom_entities_deployment_name + ) + ], + show_stats=True, + polling_interval=self._interval(), + ).result() + + document_results = list(response) + for doc_result in document_results: + for result in doc_result: + assert result.id + assert not result.is_error + assert not result.warnings + assert result.statistics + for entity in result.entities: + assert entity.text + assert entity.category + assert entity.offset is not None + assert entity.length is not None + assert entity.confidence_score is not None + + @pytest.mark.skip("https://dev.azure.com/msazure/Cognitive%20Services/_workitems/edit/12409536 and https://github.com/Azure/azure-sdk-for-python/issues/21369") + @TextAnalyticsPreparer() + def test_custom_partial_error( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_single_category_classify_project_name, + textanalytics_single_category_classify_deployment_name, + textanalytics_multi_category_classify_project_name, + textanalytics_multi_category_classify_deployment_name, + textanalytics_custom_entities_project_name, + textanalytics_custom_entities_deployment_name + ): + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": ""}, + ] + + response = client.begin_analyze_actions( + docs, + actions=[ + SingleCategoryClassifyAction( + project_name=textanalytics_single_category_classify_project_name, + deployment_name=textanalytics_single_category_classify_deployment_name + ), + MultiCategoryClassifyAction( + project_name=textanalytics_multi_category_classify_project_name, + deployment_name=textanalytics_multi_category_classify_deployment_name + ), + RecognizeCustomEntitiesAction( + project_name=textanalytics_custom_entities_project_name, + deployment_name=textanalytics_custom_entities_deployment_name + ) + ], + show_stats=True, + polling_interval=self._interval(), + ).result() + + document_results = list(response) + assert len(document_results) == 2 + assert isinstance(document_results[0][0], SingleCategoryClassifyResult) + assert isinstance(document_results[0][1], MultiCategoryClassifyResult) + assert isinstance(document_results[0][2], RecognizeCustomEntitiesResult) + assert document_results[1][0].is_error + assert document_results[1][1].is_error + assert document_results[1][2].is_error + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + def test_analyze_continuation_token(self, client): + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component."}, + {"id": "3", "text": ""}, + {"id": "4", "language": "en", "text": "I need a reservation for an indoor restaurant in China. Please don't stop the music. Play music and add it to my playlist"}, + ] + + actions = [ + RecognizeEntitiesAction(), + RecognizePiiEntitiesAction(), + AnalyzeSentimentAction(), + ExtractKeyPhrasesAction(), + ] + + initial_poller = client.begin_analyze_actions( + docs, + actions=actions, + show_stats=True, + polling_interval=self._interval(), + ) + + cont_token = initial_poller.continuation_token() + + poller = client.begin_analyze_actions( + None, + None, + continuation_token=cont_token, + polling_interval=self._interval(), + ) + response = poller.result() + + action_results = list(response) + assert len(action_results) == len(docs) + action_order = [ + _AnalyzeActionsType.RECOGNIZE_ENTITIES, + _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES, + _AnalyzeActionsType.ANALYZE_SENTIMENT, + _AnalyzeActionsType.EXTRACT_KEY_PHRASES, + ] + document_order = ["1", "2", "3", "4"] + for doc_idx, document_results in enumerate(action_results): + assert len(document_results) == 4 + for action_idx, document_result in enumerate(document_results): + if doc_idx == 2: + assert document_result.id == document_order[doc_idx] + assert document_result.is_error + else: + assert document_result.id == document_order[doc_idx] + assert document_result.statistics + assert self.document_result_to_action_type(document_result) == action_order[action_idx] + + initial_poller.wait() # necessary so azure-devtools doesn't throw assertion error diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py index c05a7db09bfb..1c53214dd311 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py @@ -34,7 +34,13 @@ ExtractKeyPhrasesResult, PiiEntityCategory, ExtractSummaryAction, - ExtractSummaryResult + ExtractSummaryResult, + SingleCategoryClassifyAction, + MultiCategoryClassifyAction, + RecognizeCustomEntitiesAction, + SingleCategoryClassifyResult, + MultiCategoryClassifyResult, + RecognizeCustomEntitiesResult ) # pre-apply the client_cls positional argument so it needn't be explicitly passed below @@ -710,8 +716,18 @@ async def test_too_many_documents(self, client): assert excinfo.value.status_code == 400 @TextAnalyticsPreparer() - @TextAnalyticsClientPreparer() - async def test_disable_service_logs(self, client): + async def test_disable_service_logs( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_single_category_classify_project_name, + textanalytics_single_category_classify_deployment_name, + textanalytics_multi_category_classify_project_name, + textanalytics_multi_category_classify_deployment_name, + textanalytics_custom_entities_project_name, + textanalytics_custom_entities_deployment_name + ): + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) actions = [ RecognizeEntitiesAction(disable_service_logs=True), ExtractKeyPhrasesAction(disable_service_logs=True), @@ -719,6 +735,21 @@ async def test_disable_service_logs(self, client): RecognizeLinkedEntitiesAction(disable_service_logs=True), AnalyzeSentimentAction(disable_service_logs=True), ExtractSummaryAction(disable_service_logs=True), + SingleCategoryClassifyAction( + project_name=textanalytics_single_category_classify_project_name, + deployment_name=textanalytics_single_category_classify_deployment_name, + disable_service_logs=True + ), + MultiCategoryClassifyAction( + project_name=textanalytics_multi_category_classify_project_name, + deployment_name=textanalytics_multi_category_classify_deployment_name, + disable_service_logs=True + ), + RecognizeCustomEntitiesAction( + project_name=textanalytics_custom_entities_project_name, + deployment_name=textanalytics_custom_entities_deployment_name, + disable_service_logs=True + ) ] for action in actions: @@ -803,20 +834,135 @@ async def test_partial_success_for_actions(self, client): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() - async def test_multiple_of_same_action_fail(self, client): - docs = [{"id": "1", "language": "en", "text": "I did not like the hotel we stayed at."}, - {"id": "2", "language": "en", "text": "I did not like the hotel we stayed at."}] + async def test_multiple_of_same_action(self, client): + docs = [ + {"id": "28", "text": "My SSN is 859-98-0987. Here is another sentence."}, + {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number? Here is another sentence."}, + {"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + ] - with pytest.raises(ValueError) as e: - await client.begin_analyze_actions( + actions = [ + AnalyzeSentimentAction(), + RecognizePiiEntitiesAction(), + RecognizeEntitiesAction(), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(order_by="Rank"), + RecognizePiiEntitiesAction(categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]), + ExtractKeyPhrasesAction(), + RecognizeEntitiesAction(), + AnalyzeSentimentAction(show_opinion_mining=True), + RecognizeLinkedEntitiesAction(), + ExtractSummaryAction(max_sentence_count=1), + ExtractKeyPhrasesAction(), + ] + async with client: + response = await (await client.begin_analyze_actions( docs, - actions=[ - RecognizePiiEntitiesAction(domain_filter="phi"), - RecognizePiiEntitiesAction(), - ], + actions=actions, polling_interval=self._interval(), - ) - assert "Multiple of the same action is not currently supported." in str(e.value) + )).result() + + action_results = [] + async for p in response: + action_results.append(p) + assert len(action_results) == len(docs) + assert len(action_results[0]) == len(actions) + assert len(action_results[1]) == len(actions) + assert len(action_results[2]) == len(actions) + + for idx, action_result in enumerate(action_results): + if idx == 0: + doc_id = "28" + elif idx == 1: + doc_id = "3" + else: + doc_id = "5" + + assert isinstance(action_result[0], AnalyzeSentimentResult) + assert not all([sentence.mined_opinions for sentence in action_result[0].sentences]) + assert action_result[0].id == doc_id + + assert isinstance(action_result[1], RecognizePiiEntitiesResult) + assert action_result[1].id == doc_id + + assert isinstance(action_result[2], RecognizeEntitiesResult) + assert action_result[2].id == doc_id + + assert isinstance(action_result[3], RecognizeLinkedEntitiesResult) + assert action_result[3].id == doc_id + + assert isinstance(action_result[4], ExtractSummaryResult) + previous_score = 1.0 + for sentence in action_result[4].sentences: + assert sentence.rank_score <= previous_score + previous_score = sentence.rank_score + assert action_result[4].id == doc_id + + assert isinstance(action_result[5], RecognizePiiEntitiesResult) + assert action_result[5].id == doc_id + if doc_id == "28": + assert action_result[5].entities + else: + assert not action_result[5].entities + + assert isinstance(action_result[6], ExtractKeyPhrasesResult) + assert action_result[6].id == doc_id + + assert isinstance(action_result[7], RecognizeEntitiesResult) + assert action_result[7].id == doc_id + + assert isinstance(action_result[8], AnalyzeSentimentResult) + assert [sentence.mined_opinions for sentence in action_result[0].sentences] + assert action_result[8].id == doc_id + + assert isinstance(action_result[9], RecognizeLinkedEntitiesResult) + assert action_result[9].id == doc_id + + assert isinstance(action_result[10], ExtractSummaryResult) + assert len(action_result[10].sentences) == 1 + + assert isinstance(action_result[11], ExtractKeyPhrasesResult) + assert action_result[11].id == doc_id + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + async def test_multiple_of_same_action_with_partial_results(self, client): + docs = [{"id": "5", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "text": ""}] + + actions = [ + ExtractSummaryAction(max_sentence_count=3), + RecognizePiiEntitiesAction(), + ExtractSummaryAction(max_sentence_count=5) + ] + + async with client: + response = await (await client.begin_analyze_actions( + docs, + actions=actions, + polling_interval=self._interval(), + )).result() + + action_results = [] + async for p in response: + action_results.append(p) + + assert len(action_results) == len(docs) + assert len(action_results[0]) == len(actions) + assert len(action_results[1]) == len(actions) + + # first doc + assert isinstance(action_results[0][0], ExtractSummaryResult) + assert action_results[0][0].id == "5" + assert isinstance(action_results[0][1], RecognizePiiEntitiesResult) + assert action_results[0][1].id == "5" + assert isinstance(action_results[0][2], ExtractSummaryResult) + assert action_results[0][2].id == "5" + + # second doc + assert action_results[1][0].is_error + assert action_results[1][1].is_error + assert action_results[1][2].is_error @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() @@ -935,3 +1081,240 @@ async def test_extract_summary_partial_results(self, client): assert not document_results[1][0].is_error assert isinstance(document_results[1][0], ExtractSummaryResult) + + @TextAnalyticsPreparer() + async def test_single_category_classify( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_single_category_classify_project_name, + textanalytics_single_category_classify_deployment_name + ): + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component."}, + {"id": "3", "language": "en", "text": "I need a reservation for an indoor restaurant in China. Please don't stop the music. Play music and add it to my playlist"}, + ] + + async with client: + response = await (await client.begin_analyze_actions( + docs, + actions=[ + SingleCategoryClassifyAction( + project_name=textanalytics_single_category_classify_project_name, + deployment_name=textanalytics_single_category_classify_deployment_name + ), + ], + show_stats=True, + polling_interval=self._interval(), + )).result() + + document_results = [] + async for doc in response: + document_results.append(doc) + for doc_result in document_results: + for result in doc_result: + assert result.id + assert not result.is_error + assert not result.warnings + assert result.statistics + assert result.classification.category + assert result.classification.confidence_score + + @TextAnalyticsPreparer() + async def test_multi_category_classify( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_multi_category_classify_project_name, + textanalytics_multi_category_classify_deployment_name + ): + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component."}, + {"id": "3", "language": "en", "text": "I need a reservation for an indoor restaurant in China. Please don't stop the music. Play music and add it to my playlist"}, + ] + + async with client: + response = await (await client.begin_analyze_actions( + docs, + actions=[ + MultiCategoryClassifyAction( + project_name=textanalytics_multi_category_classify_project_name, + deployment_name=textanalytics_multi_category_classify_deployment_name + ), + ], + show_stats=True, + polling_interval=self._interval(), + )).result() + + document_results = [] + async for doc in response: + document_results.append(doc) + + for doc_result in document_results: + for result in doc_result: + assert result.id + assert not result.is_error + assert not result.warnings + assert result.statistics + for classification in result.classifications: + assert classification.category + assert classification.confidence_score + + @TextAnalyticsPreparer() + async def test_recognize_custom_entities( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_custom_entities_project_name, + textanalytics_custom_entities_deployment_name + ): + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component."}, + {"id": "3", "language": "en", "text": "I need a reservation for an indoor restaurant in China. Please don't stop the music. Play music and add it to my playlist"}, + ] + + async with client: + response = await (await client.begin_analyze_actions( + docs, + actions=[ + RecognizeCustomEntitiesAction( + project_name=textanalytics_custom_entities_project_name, + deployment_name=textanalytics_custom_entities_deployment_name + ) + ], + show_stats=True, + polling_interval=self._interval(), + )).result() + + document_results = [] + async for doc in response: + document_results.append(doc) + + for doc_result in document_results: + for result in doc_result: + assert result.id + assert not result.is_error + assert not result.warnings + assert result.statistics + for entity in result.entities: + assert entity.text + assert entity.category + assert entity.offset is not None + assert entity.length is not None + assert entity.confidence_score is not None + + @pytest.mark.skip("https://dev.azure.com/msazure/Cognitive%20Services/_workitems/edit/12409536 and https://github.com/Azure/azure-sdk-for-python/issues/21369") + @TextAnalyticsPreparer() + async def test_custom_partial_error( + self, + textanalytics_custom_text_endpoint, + textanalytics_custom_text_key, + textanalytics_single_category_classify_project_name, + textanalytics_single_category_classify_deployment_name, + textanalytics_multi_category_classify_project_name, + textanalytics_multi_category_classify_deployment_name, + textanalytics_custom_entities_project_name, + textanalytics_custom_entities_deployment_name + ): + client = TextAnalyticsClient(textanalytics_custom_text_endpoint, AzureKeyCredential(textanalytics_custom_text_key)) + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": ""}, + ] + async with client: + response = await (await client.begin_analyze_actions( + docs, + actions=[ + SingleCategoryClassifyAction( + project_name=textanalytics_single_category_classify_project_name, + deployment_name=textanalytics_single_category_classify_deployment_name + ), + MultiCategoryClassifyAction( + project_name=textanalytics_multi_category_classify_project_name, + deployment_name=textanalytics_multi_category_classify_deployment_name + ), + RecognizeCustomEntitiesAction( + project_name=textanalytics_custom_entities_project_name, + deployment_name=textanalytics_custom_entities_deployment_name + ) + ], + show_stats=True, + polling_interval=self._interval(), + )).result() + + document_results = [] + async for doc in response: + document_results.append(doc) + + assert len(document_results) == 2 + assert isinstance(document_results[0][0], SingleCategoryClassifyResult) + assert isinstance(document_results[0][1], MultiCategoryClassifyResult) + assert isinstance(document_results[0][2], RecognizeCustomEntitiesResult) + assert document_results[1][0].is_error + assert document_results[1][1].is_error + assert document_results[1][2].is_error + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + async def test_analyze_continuation_token(self, client): + docs = [ + {"id": "1", "language": "en", "text": "A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities."}, + {"id": "2", "language": "en", "text": "David Schmidt, senior vice president--Food Safety, International Food Information Council (IFIC), Washington, D.C., discussed the physical activity component."}, + {"id": "3", "text": ""}, + {"id": "4", "language": "en", "text": "I need a reservation for an indoor restaurant in China. Please don't stop the music. Play music and add it to my playlist"}, + ] + + actions = [ + RecognizeEntitiesAction(), + RecognizePiiEntitiesAction(), + AnalyzeSentimentAction(), + ExtractKeyPhrasesAction(), + ] + async with client: + initial_poller = await client.begin_analyze_actions( + docs, + actions=actions, + show_stats=True, + polling_interval=self._interval(), + ) + + cont_token = initial_poller.continuation_token() + + poller = await client.begin_analyze_actions( + None, + None, + continuation_token=cont_token, + polling_interval=self._interval(), + ) + response = await poller.result() + + action_results = [] + async for action_result in response: + action_results.append(action_result) + + assert len(action_results) == len(docs) + action_order = [ + _AnalyzeActionsType.RECOGNIZE_ENTITIES, + _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES, + _AnalyzeActionsType.ANALYZE_SENTIMENT, + _AnalyzeActionsType.EXTRACT_KEY_PHRASES, + ] + document_order = ["1", "2", "3", "4"] + for doc_idx, document_results in enumerate(action_results): + assert len(document_results) == 4 + for action_idx, document_result in enumerate(document_results): + if doc_idx == 2: + assert document_result.id == document_order[doc_idx] + assert document_result.is_error + else: + assert document_result.id == document_order[doc_idx] + assert document_result.statistics + assert self.document_result_to_action_type(document_result) == action_order[action_idx] + + await initial_poller.wait() # necessary so azure-devtools doesn't throw assertion error diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare.py index b4ccdfba9769..074da697f306 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare.py @@ -430,3 +430,38 @@ def callback(resp): disable_service_logs=True, raw_response_hook=callback, ).result() + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + def test_healthcare_continuation_token(self, client): + initial_poller = client.begin_analyze_healthcare_entities( + documents=[ + {"id": "1", "text": "Baby not likely to have Meningitis. In case of fever in the mother, consider Penicillin for the baby too."}, + {"id": "2", "text": "patients must have histologically confirmed NHL"}, + {"id": "3", "text": ""}, + {"id": "4", "text": "The patient was diagnosed with Parkinsons Disease (PD)"} + ], + show_stats=True, + polling_interval=self._interval(), + ) + + cont_token = initial_poller.continuation_token() + poller = client.begin_analyze_healthcare_entities( + None, + continuation_token=cont_token, + polling_interval=self._interval(), + ) + response = poller.result() + + results = list(response) + document_order = ["1", "2", "3", "4"] + for doc_idx, result in enumerate(results): + if doc_idx == 2: + assert result.id == document_order[doc_idx] + assert result.is_error + else: + assert result.id == document_order[doc_idx] + assert result.statistics + assert result.entities + + initial_poller.wait() # necessary so azure-devtools doesn't throw assertion error \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare_async.py index e22c034c133a..d8a1624a8057 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare_async.py @@ -475,3 +475,42 @@ def callback(resp): disable_service_logs=True, raw_response_hook=callback, )).result() + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + async def test_healthcare_continuation_token(self, client): + async with client: + initial_poller = await client.begin_analyze_healthcare_entities( + documents=[ + {"id": "1", "text": "Baby not likely to have Meningitis. In case of fever in the mother, consider Penicillin for the baby too."}, + {"id": "2", "text": "patients must have histologically confirmed NHL"}, + {"id": "3", "text": ""}, + {"id": "4", "text": "The patient was diagnosed with Parkinsons Disease (PD)"} + ], + show_stats=True, + polling_interval=self._interval(), + ) + + cont_token = initial_poller.continuation_token() + poller = await client.begin_analyze_healthcare_entities( + None, + continuation_token=cont_token, + polling_interval=self._interval(), + ) + response = await poller.result() + + results = [] + async for result in response: + results.append(result) + + document_order = ["1", "2", "3", "4"] + for doc_idx, result in enumerate(results): + if doc_idx == 2: + assert result.id == document_order[doc_idx] + assert result.is_error + else: + assert result.id == document_order[doc_idx] + assert result.statistics + assert result.entities + + await initial_poller.wait() # necessary so azure-devtools doesn't throw assertion error diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py index 0e4e49bf83a7..9d404a1e524d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py @@ -12,11 +12,11 @@ # pre-apply the client_cls positional argument so it needn't be explicitly passed below TextAnalyticsClientPreparer = functools.partial(_TextAnalyticsClientPreparer, TextAnalyticsClient) -class TestRecognizeEntities(TextAnalyticsTest): +class TestMultiApi(TextAnalyticsTest): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() def test_default_api_version(self, client): - assert "v3.2-preview.1" in client._client._client._base_url + assert "v3.2-preview.2" in client._client._client._base_url @TextAnalyticsPreparer() @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0}) @@ -31,4 +31,4 @@ def test_v3_1_api_version(self, client): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_2_PREVIEW}) def test_v3_2_api_version(self, client): - assert "v3.2-preview.1" in client._client._client._base_url + assert "v3.2-preview.2" in client._client._client._base_url diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py index aa4a916e4735..80f9bdc3b0e0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py @@ -12,11 +12,11 @@ # pre-apply the client_cls positional argument so it needn't be explicitly passed below TextAnalyticsClientPreparer = functools.partial(_TextAnalyticsClientPreparer, TextAnalyticsClient) -class TestRecognizeEntities(TextAnalyticsTest): +class TestMultiApiAsync(TextAnalyticsTest): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() def test_default_api_version(self, client): - assert "v3.2-preview.1" in client._client._client._base_url + assert "v3.2-preview.2" in client._client._client._base_url @TextAnalyticsPreparer() @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0}) @@ -31,4 +31,4 @@ def test_v3_1_api_version(self, client): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_2_PREVIEW}) def test_v3_2_api_version(self, client): - assert "v3.2-preview.1" in client._client._client._base_url + assert "v3.2-preview.2" in client._client._client._base_url diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/testcase.py b/sdk/textanalytics/azure-ai-textanalytics/tests/testcase.py index 7d49ea26d2fb..ea3349ae8c62 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/testcase.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/testcase.py @@ -31,6 +31,14 @@ 'textanalytics', textanalytics_test_endpoint="https://westus2.api.cognitive.microsoft.com/", textanalytics_test_api_key="fakeZmFrZV9hY29jdW50X2tleQ==", + textanalytics_custom_text_endpoint="https://westus2.api.cognitive.microsoft.com/", + textanalytics_custom_text_key="fakeZmFrZV9hY29jdW50X2tleQ==", + textanalytics_single_category_classify_project_name="single_category_classify_project_name", + textanalytics_single_category_classify_deployment_name="textanalytics_single_category_classify_deployment_name", + textanalytics_multi_category_classify_project_name="textanalytics_multi_category_classify_project_name", + textanalytics_multi_category_classify_deployment_name="textanalytics_multi_category_classify_deployment_name", + textanalytics_custom_entities_project_name="textanalytics_custom_entities_project_name", + textanalytics_custom_entities_deployment_name="textanalytics_custom_entities_deployment_name", ) diff --git a/sdk/textanalytics/test-resources.json b/sdk/textanalytics/test-resources.json index f94060cd61e8..3f7279172b1c 100644 --- a/sdk/textanalytics/test-resources.json +++ b/sdk/textanalytics/test-resources.json @@ -101,14 +101,6 @@ "TEXTANALYTICS_TEST_ENDPOINT": { "type": "string", "value": "[variables('azureTextAnalyticsUrl')]" - }, - "AZURE_TEXT_ANALYTICS_KEY": { - "type": "string", - "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts', variables('textAnalyticsBaseName')), variables('cognitiveApiVersion')).key1]" - }, - "AZURE_TEXT_ANALYTICS_ENDPOINT": { - "type": "string", - "value": "[variables('azureTextAnalyticsUrl')]" } } } diff --git a/sdk/textanalytics/tests.yml b/sdk/textanalytics/tests.yml index b5ffb1e0e8a1..7f2287fd3323 100644 --- a/sdk/textanalytics/tests.yml +++ b/sdk/textanalytics/tests.yml @@ -13,6 +13,24 @@ stages: AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id) AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret) AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id) + # temporary env vars for custom text features + TEXTANALYTICS_CUSTOM_TEXT_ENDPOINT: $(js-textanalytics-test-service-endpoint) + TEXTANALYTICS_CUSTOM_TEXT_KEY: $(js-textanalytics-api-key-new) + TEXTANALYTICS_SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME: $(js-single-category-classify-project-name) + TEXTANALYTICS_SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME: $(js-single-category-classify-deployment-name) + TEXTANALYTICS_MULTI_CATEGORY_CLASSIFY_PROJECT_NAME: $(js-multi-category-classify-project-name) + TEXTANALYTICS_MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME: $(js-multi-category-classify-deployment-name) + TEXTANALYTICS_CUSTOM_ENTITIES_PROJECT_NAME: $(js-recognize-custom-entities-project-name) + TEXTANALYTICS_CUSTOM_ENTITIES_DEPLOYMENT_NAME: $(js-recognize-custom-entities-deployment-name) + # temporary env vars for custom text samples + AZURE_TEXT_ANALYTICS_ENDPOINT: $(js-textanalytics-test-service-endpoint) + AZURE_TEXT_ANALYTICS_KEY: $(js-textanalytics-api-key-new) + SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME: $(js-single-category-classify-project-name) + SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME: $(js-single-category-classify-deployment-name) + MULTI_CATEGORY_CLASSIFY_PROJECT_NAME: $(js-multi-category-classify-project-name) + MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME: $(js-multi-category-classify-deployment-name) + CUSTOM_ENTITIES_PROJECT_NAME: $(js-recognize-custom-entities-project-name) + CUSTOM_ENTITIES_DEPLOYMENT_NAME: $(js-recognize-custom-entities-deployment-name) TEST_MODE: 'RunLiveNoRecord' AZURE_SKIP_LIVE_RECORDING: 'True' AZURE_TEST_RUN_LIVE: 'true' diff --git a/shared_requirements.txt b/shared_requirements.txt index b1657bf0ff7a..3b2a34f8d3fa 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -150,7 +150,7 @@ backports.functools-lru-cache >= 1.6.4; python_version == "2.7" #override azure-keyvault-keys azure-core<2.0.0,>=1.7.0 #override azure-keyvault-secrets azure-core<2.0.0,>=1.7.0 #override azure-ai-textanalytics msrest>=0.6.21 -#override azure-ai-textanalytics azure-core<2.0.0,>=1.14.0 +#override azure-ai-textanalytics azure-core<2.0.0,>=1.16.0 #override azure-ai-language-questionanswering azure-core<2.0.0,>=1.19.0 #override azure-ai-language-questionanswering msrest>=0.6.21 #override azure-search-documents azure-core<2.0.0,>=1.19.0